templates/pages.tmpl
browsing at commit = 55fa1ac0b398c748c7e2421b855a1606790cafc9
<% c++ #include "content.h" %>
<% c++ #include "util.h" %>
<% skin git %>
<% view frontpage uses content::frontpage extends master %>
<% template content_body() %>
<h1>Multi Git Frontend</h1>
<p>Serving <%= repo_count %> repositories.</p>
<p><a href="/repos">Browse repositories →</a></p>
<% end template %>
<% end view %>
<% view about uses content::master extends master %>
<% template content_body() %>
<h1>About</h1>
<p>A lightweight, read-only web frontend for browsing and cloning local git repositories.</p>
<% end template %>
<% end view %>
<% view repo_list uses content::repo_list extends master %>
<% template content_body() %>
<h1>Repositories</h1>
<ul class="repo-list">
<% foreach r in repos %><% item %>
<li><a href="/repos/<%= r %>"><%= r %></a></li>
<% end item %><% empty %>
<li>No repositories found.</li>
<% end %>
</ul>
<% end template %>
<% end view %>
<% end skin %>