🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

-rw-r--r-- templates/base/repo/foreach.blob.html


      1 {% extends "../template.html.include" %}
      2 
      3 {%- block title %}{{ name }} - {{ blob }}{% endblock %}
      4 
      5 {%- block content %}
      6 <p>{{ blob.mode_symbolic }} {{ blob }}</p><hr>
      7 
      8 {% if blob.is_binary %}
      9 (File is binary)
     10 {% else %}
     11 <pre>{% for line in split(blob.contents, '\n') %}
     12 <a href="#l{{ loop.index }}" class="line" id="l{{ loop.index }}">{{ printf("%5v", loop.index) }}</a>  {{ line }}
     13 {% endfor %}</pre>
     14 {% endif %}
     15 {% endblock %}
     16