hscc

Soure code of <https://hugo.soucy.cc>.
git clone git://soucy.cc/hscc.git
Log | Files | Refs

commit fc0de367d9a0cf4bf075ce6115b2557140efafac
parent 2fb4d0b142786d23aefb8b157f74204871bd4815
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Tue,  5 Oct 2021 21:06:02 -0400

Add a new condition for the back buttons

Diffstat:
Mtemplates/posttypes/note.html | 22++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/templates/posttypes/note.html b/templates/posttypes/note.html @@ -52,16 +52,18 @@ <% end %> </div> - <div> - <a class="button" href="/<%= date:sub(1,4) -%>" rel="up"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> - <span><span class="visuallyhidden">Retourner aux </span>publications</span> - </a> - <a class="button" href="/<%= date:sub(1,4) -%>/nt" rel="up"> - <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> - <span><span class="visuallyhidden">Retourner aux </span>notes</span> - </a> - </div> + <% if tonumber(time_created) > 20201101000000 then %> + <div> + <a class="button" href="/<%= date:sub(1,4) -%>" rel="up"> + <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> + <span><span class="visuallyhidden">Retourner aux </span>publications</span> + </a> + <a class="button" href="/<%= date:sub(1,4) -%>/nt" rel="up"> + <svg class="ico" height="24" width="24" role="image"><use href="#ico_chevron_left"></use></svg> + <span><span class="visuallyhidden">Retourner aux </span>notes</span> + </a> + </div> + <% end %> </footer> <a