|
|
@ -17,7 +17,11 @@ |
|
|
|
|
|
|
|
{% block navbar %} |
|
|
|
<nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark"> |
|
|
|
<a href="/"><div class="navbar-brand"><svg |
|
|
|
{% if article[5] == 1 %} |
|
|
|
<a href="{{url_for('archived')}}"><div class="navbar-brand"><svg |
|
|
|
{% else %} |
|
|
|
<a href="{{url_for('index')}}"><div class="navbar-brand"><svg |
|
|
|
{% endif %} |
|
|
|
width="24" |
|
|
|
height="24" |
|
|
|
fill="none" |
|
|
@ -34,7 +38,7 @@ |
|
|
|
<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="#"><svg |
|
|
|
<div class="toolbar-button"><svg |
|
|
|
width="24" |
|
|
|
height="24" |
|
|
|
fill="none" |
|
|
@ -44,8 +48,22 @@ |
|
|
|
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 |
|
|
|
</svg><svg |
|
|
|
width="16" |
|
|
|
height="16" |
|
|
|
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')}}#chevron-down"/> |
|
|
|
</svg></div> |
|
|
|
{% if article[5] == 1 %} |
|
|
|
<a class="toolbar-button" href="/unarchive/{{ article[0] }}" data-toggle="tooltip" data-placement="bottom" title="Unarchive"><svg |
|
|
|
{% else %} |
|
|
|
<a class="toolbar-button" href="/archive/{{ article[0] }}" data-toggle="tooltip" data-placement="bottom" title="Archive"><svg |
|
|
|
{% endif %} |
|
|
|
width="24" |
|
|
|
height="24" |
|
|
|
fill="none" |
|
|
@ -54,9 +72,13 @@ |
|
|
|
stroke-linecap="round" |
|
|
|
stroke-linejoin="round" |
|
|
|
style="line-height: 1.5; vertical-align: middle; margin-bottom: 4px;"> |
|
|
|
{% if article[5] == 1 %} |
|
|
|
<use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#plus-square"/> |
|
|
|
{% else %} |
|
|
|
<use xlink:href="{{url_for('.static', filename='feather-sprite.svg')}}#archive"/> |
|
|
|
{% endif %} |
|
|
|
</svg></a> |
|
|
|
<a class="toolbar-button" href="/delete/{{ article[0] }}" style="padding-right: 1rem;"><svg |
|
|
|
<a class="toolbar-button" href="/delete/{{ article[0] }}" style="padding-right: 1rem;" data-toggle="tooltip" data-placement="bottom" title="Trash"><svg |
|
|
|
width="24" |
|
|
|
height="24" |
|
|
|
fill="none" |
|
|
@ -103,5 +125,9 @@ |
|
|
|
<script> |
|
|
|
$('#article img').css('max-width', '100%'); |
|
|
|
$('#article img').css('height', 'auto'); |
|
|
|
|
|
|
|
$(function () { |
|
|
|
$('[data-toggle="tooltip"]').tooltip() |
|
|
|
}) |
|
|
|
</script> |
|
|
|
{% endblock %} |