git.fiddlerwoaroof.com
twig/stats.twig
ffc9d555
 {% extends 'layout_page.twig' %}
 
 {% set page = 'stats' %}
 
6933b58c
 {% block title %}
   GitList
 {% endblock %}
ffc9d555
 
 {% block content %}
6933b58c
   {% include 'breadcrumb.twig' with {breadcrumbs: [{dir: 'Statistics', path:''}]} %}
ffc9d555
 
6933b58c
   <table class="table table-striped table-bordered">
     <thead>
       <tr>
         <th width="30%">File extensions ({{ stats.extensions|length }})</th>
         <th width="40%">Authors ({{ authors|length }})</th>
         <th width="30%">Other</th>
       </tr>
     </thead>
     <tbody>
       <tr>
         <td>
           <ul>
             {% for ext, amount in stats.extensions %}
               <li><strong>{{ ext }}</strong>: {{ amount }} files</li>
             {% endfor %}
           </ul>
         </td>
         <td>
           <ul>
             {% for author in authors %}
               <li><strong><a href="mailto:{{ author.email }}">{{ author.name }}</a></strong>: {{ author.commits }} commits</li>
             {% endfor %}
           </ul>
         </td>
         <td>
           <p>
           <strong>Total files:</strong> {{ stats.files }}
           </p>
ffc9d555
 
6933b58c
           <p>
           <strong>Total bytes:</strong> {{ stats.size }} bytes ({{ ((stats.size / 1024) / 1024) | number_format }} MB)
           </p>
         </td>
       </tr>
     </tbody>
   </table>
ffc9d555
 {% endblock %}