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

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


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