-rw-r--r-- templates/base/template.html.include
1 {# This file is being used as a base template by all other files. #} 2 3 <!doctype html> 4 <html> 5 <head> 6 <meta charset="utf-8"> 7 <title>{% block title %}{% endblock %}</title> 8 <meta name="viewport" content="width=device-width, initial-scale=1"> 9 <link rel="stylesheet" type="text/css" href="{{ host }}/style.css"/> 10 </head> 11 12 <body> 13 {# This head only really applies to a specify repository, so the index page overrides it. #} 14 {% block head %} 15 <span id="back"><a href="{{ host }}">Back to index</a></span> 16 <h1>{{ name }}</h1> 17 <p><b>{{ description }}</b></p> 18 <p> 19 <span id="clone"><b>git clone <a href="{{ host }}/{{ name }}">{{ host }}/{{ name }}</a></b></span> 20 <div class="links"> 21 <a href="{{ host }}/{{ name }}/index.html">Log</a> | 22 <a href="{{ host }}/{{ name }}/files.html">Files</a> | 23 <a href="{{ host }}/{{ name }}/refs.html">Refs</a> 24 {% if readme %} 25 | <a href="{{ host }}/{{ name }}/blob/{{ readme.href }}">{{ readme.name }}</a> 26 {% endif %} 27 {% if license %} 28 | <a href="{{ host }}/{{ name }}/blob/{{ license.href }}">{{ license.name }}</a> 29 {% endif %} 30 </div> 31 </p> 32 {% endblock %} 33 34 {% block content %} 35 {% endblock %} 36 </body> 37 </html> 38