|
@ -8,16 +8,56 @@ |
|
|
|
|
|
|
|
|
{% block navbar %} |
|
|
{% block navbar %} |
|
|
<nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark"> |
|
|
<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> |
|
|
|
|
|
|
|
|
<a href="/"><div class="navbar-brand"><svg |
|
|
|
|
|
width="24" |
|
|
|
|
|
height="24" |
|
|
|
|
|
fill="none" |
|
|
|
|
|
stroke="currentColor" |
|
|
|
|
|
stroke-width="2" |
|
|
|
|
|
stroke-linecap="round" |
|
|
|
|
|
stroke-linejoin="round" |
|
|
|
|
|
style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;"> |
|
|
|
|
|
<use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#arrow-left"/> |
|
|
|
|
|
</svg></div></a> |
|
|
<form class="form-inline ml-auto"> |
|
|
<form class="form-inline ml-auto"> |
|
|
{# <div class="custom-control custom-switch"> |
|
|
{# <div class="custom-control custom-switch"> |
|
|
<input type="checkbox" class="custom-control-input" id="darkSwitch" /> |
|
|
<input type="checkbox" class="custom-control-input" id="darkSwitch" /> |
|
|
<label class="custom-control-label" for="darkSwitch">Dark Mode</label> |
|
|
<label class="custom-control-label" for="darkSwitch">Dark Mode</label> |
|
|
</div> |
|
|
</div> |
|
|
<div class="navbar-text" style="margin-right: 20px; ">{{ user['userName'] }}</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> |
|
|
|
|
|
|
|
|
<a class="toolbar-button" href="#"><svg |
|
|
|
|
|
width="24" |
|
|
|
|
|
height="24" |
|
|
|
|
|
fill="none" |
|
|
|
|
|
stroke="currentColor" |
|
|
|
|
|
stroke-width="2" |
|
|
|
|
|
stroke-linecap="round" |
|
|
|
|
|
stroke-linejoin="round" |
|
|
|
|
|
style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;"> |
|
|
|
|
|
<use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#type"/> |
|
|
|
|
|
</svg></a> |
|
|
|
|
|
<a class="toolbar-button" href="/archive/{{ article[0] }}"><svg |
|
|
|
|
|
width="24" |
|
|
|
|
|
height="24" |
|
|
|
|
|
fill="none" |
|
|
|
|
|
stroke="currentColor" |
|
|
|
|
|
stroke-width="2" |
|
|
|
|
|
stroke-linecap="round" |
|
|
|
|
|
stroke-linejoin="round" |
|
|
|
|
|
style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;"> |
|
|
|
|
|
<use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#archive"/> |
|
|
|
|
|
</svg></a> |
|
|
|
|
|
<a class="toolbar-button" href="/delete/{{ article[0] }}" style="padding-right: 1rem;"><svg |
|
|
|
|
|
width="24" |
|
|
|
|
|
height="24" |
|
|
|
|
|
fill="none" |
|
|
|
|
|
stroke="currentColor" |
|
|
|
|
|
stroke-width="2" |
|
|
|
|
|
stroke-linecap="round" |
|
|
|
|
|
stroke-linejoin="round" |
|
|
|
|
|
style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;"> |
|
|
|
|
|
<use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#trash"/> |
|
|
|
|
|
</svg></a> |
|
|
</form> |
|
|
</form> |
|
|
</nav> |
|
|
</nav> |
|
|
{% endblock %} |
|
|
{% endblock %} |
|
@ -51,10 +91,8 @@ |
|
|
|
|
|
|
|
|
{% block scripts %} |
|
|
{% block scripts %} |
|
|
{{ super() }} |
|
|
{{ super() }} |
|
|
<script src="https://unpkg.com/feather-icons"></script> |
|
|
|
|
|
<script> |
|
|
<script> |
|
|
$('#article img').css('max-width', '100%'); |
|
|
$('#article img').css('max-width', '100%'); |
|
|
$('#article img').css('height', 'auto'); |
|
|
$('#article img').css('height', 'auto'); |
|
|
feather.replace(); |
|
|
|
|
|
</script> |
|
|
</script> |
|
|
{% endblock %} |
|
|
{% endblock %} |