|
{% extends "bootstrap/base.html" %}
|
|
{% block title %}Read TI Later{% endblock %}
|
|
|
|
{% block styles %}
|
|
{{super()}}
|
|
<link rel="stylesheet" href="{{url_for('.static', filename='style.css')}}">
|
|
{% endblock %}
|
|
|
|
{% block navbar %}
|
|
<nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark">
|
|
<a href="/"><div class="navbar-brand"><i data-feather="arrow-left" style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;"></i></div></a>
|
|
<form class="form-inline ml-auto">
|
|
{# <div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" id="darkSwitch" />
|
|
<label class="custom-control-label" for="darkSwitch">Dark Mode</label>
|
|
</div>
|
|
<div class="navbar-text" style="margin-right: 20px; ">{{ user['userName'] }}</div> #}
|
|
<a class="toolbar-button" href="#"><i data-feather="type"></i></a>
|
|
<a class="toolbar-button" href="/archive/{{ article[0] }}"><i data-feather="archive"></i></a>
|
|
<a class="toolbar-button" href="/delete/{{ article[0] }}" style="padding-right: 1rem;"><i data-feather="trash"></i></a>
|
|
</form>
|
|
</nav>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container" style="margin-top: 15px">
|
|
<div id="error-alert" class="alert alert-danger" role="alert" style="display: none;">
|
|
This is a danger alert—check it out!
|
|
</div>
|
|
<form>
|
|
<div class="row justify-content-center">
|
|
{# <div class="col-lg-6">
|
|
<label for="formGroupExampleInput4">URL</label>
|
|
<input id="link-form" type="text" class="form-control" placeholder="https://example.com">
|
|
<br>
|
|
<button type="button" class="btn btn-primary" onclick="addUrl();">Add</button>
|
|
<br>
|
|
<br>
|
|
</div> #}
|
|
<div class="col-lg-12">
|
|
<div style="padding: 10px;" id="article">
|
|
<h1 style="text-align: center;">{{ article[3] }}</h1>
|
|
<a href="{{ article[1] }}" class="text-info" target="_blank" style="display: block; text-align: center; margin-bottom: 20px;">View Original</a>
|
|
{{ article[2] | safe}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script src="https://unpkg.com/feather-icons"></script>
|
|
<script>
|
|
$('#article img').css('max-width', '100%');
|
|
$('#article img').css('height', 'auto');
|
|
feather.replace();
|
|
</script>
|
|
{% endblock %}
|