From f54d5bd78007dae089c3cecd26c5f6b8efd3e90a Mon Sep 17 00:00:00 2001 From: Daniel Szabo Date: Sun, 31 Jul 2022 19:41:19 +0100 Subject: [PATCH] Add pasta ID + pasta URL to pasta page. Fix #36 --- templates/pasta.html | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/templates/pasta.html b/templates/pasta.html index a3eee04..67794be 100644 --- a/templates/pasta.html +++ b/templates/pasta.html @@ -1,19 +1,27 @@ {% include "header.html" %} -Raw Text Content -{% if pasta.file.is_some() %} -Attached file - '{{pasta.file.as_ref().unwrap().name}}' [{{pasta.file.as_ref().unwrap().size}}] -{%- endif %} -{% if pasta.editable %} -Edit -{%- endif %} -Remove -{% if args.highlightsyntax %} -
{{pasta.content_syntax_highlighted()}}
-{%- else %} -
{{pasta.content_not_highlighted()}}
-{%- endif %} - +
+ Raw Text Content + {% if pasta.file.is_some() %} + Attached file + '{{pasta.file.as_ref().unwrap().name}}' [{{pasta.file.as_ref().unwrap().size}}] + {%- endif %} + {% if pasta.editable %} + Edit + {%- endif %} + Remove +
+
+ {{pasta.id_as_animals()}} +
+
+
+ {% if args.highlightsyntax %} +
{{pasta.content_syntax_highlighted()}}
+ {%- else %} +
{{pasta.content_not_highlighted()}}
+ {%- endif %} +