X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/6d0777840e50ce98f3d96629b4e92bbdccd3001c..cdaa5e28290fe0e9e73ca3a0557ee021a7ab404b:/data/templates/display.htm diff --git a/data/templates/display.htm b/data/templates/display.htm index 1f33b61..2ba490e 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -1,16 +1,49 @@ {% extends "base.htm" %} -{% block title %}{{description}}{% endblock %} +{% block title %} + {%if repo.getDescription %} + {{repo.getDescription}} + {%else%} + {{repo.id}} + {%endif%} +{% endblock %} {% block content %} -

{{description}}

-

edit

-{% for file in files %} -
-

{{file.filename}}

-

- raw -

-
{{file.content}}
+

{{repo.getDescription}}

+
+
+ edit +
+
+

Paste #{{repo.id}}

+
+
+
+ +
+
+
+ +{% for file in repo.getFiles %} +
+
+ raw +

{{file.getFilename}}

+
+
+ {{file.getHighlightedContent|raw}} +
{% endfor %} + +
+ +
+{% endblock %} + +{% block sidebar %} +sidebar FIXME {% endblock %}