nav is converted to text so it has less wonkiness

This commit is contained in:
chimchooree
2023-05-08 20:10:45 -05:00
parent e094dbae62
commit 8b39b64629
2 changed files with 18 additions and 15 deletions
+12 -12
View File
@@ -17,18 +17,18 @@
<div class="diary-dir-left">
% # << is always active link pointing to 0
<a href=/diary/0>
<img src="/static/img/dia/nav_ll.png" alt="&lt;&lt;">
&lt;&lt;
</a>
% # < points to 0 if page 0 or below
% if page <= 0:
<a href=/diary/0>
<img src="/static/img/dia/nav_l.png" alt="&lt;">
&lt;
</a>
% # < points to previous page otherwise
% else:
<a href=/diary/{{page - 1}}>
<img src="/static/img/dia/nav_l.png" alt="&lt;">
&lt;&lt;
</a>
% end
</div>
@@ -72,18 +72,18 @@
% # > points to max if page is at or above maximum
% if page >= max_pages:
<a href=/diary/{{max_pages}}>
<img src="/static/img/dia/nav_r.png" alt="&gt;">
&gt;
</a>
% # > point to next page otherwise
% else:
<a href=/diary/{{page + 1}}>
<img src="/static/img/dia/nav_r.png" alt="&gt;">
&gt;
</a>
% end
% # >> is always active link to maximum page
<a href=/diary/{{max_pages}}>
<img src="/static/img/dia/nav_rr.png" alt="&gt;&gt;">
&gt;&gt;
</a>
</div>
</div>
@@ -146,18 +146,18 @@
<div class="diary-dir-left">
% # << is always active link pointing to 0
<a href=/diary/0>
<img src="/static/img/dia/nav_ll.png" alt="&lt;&lt;">
&lt;&lt;
</a>
% # < points to 0 if page 0 or below
% if page <= 0:
<a href=/diary/0>
<img src="/static/img/dia/nav_l.png" alt="&lt;">
&lt;
</a>
% # < points to previous page otherwise
% else:
<a href=/diary/{{page - 1}}>
<img src="/static/img/dia/nav_l.png" alt="&lt;">
&lt;
</a>
% end
</div>
@@ -202,17 +202,17 @@
% # > points to max if page is at or above maximum
% if page >= max_pages:
<a href=/diary/{{max_pages}}>
<img src="/static/img/dia/nav_r.png" alt="&gt;">
&gt;
</a>
% # > point to next page otherwise
% else:
<a href=/diary/{{page + 1}}>
<img src="/static/img/dia/nav_r.png" alt="&gt;">
&gt;
</a>
% end
% # >> is always active link to maximum page
<a href=/diary/{{max_pages}}>
<img src="/static/img/dia/nav_rr.png" alt="&gt;&gt;">
&gt;&gt;
</a>
</div>
</div>