% c++ #include "content.h" %>
<% c++ #include "util.h" %>
<% skin git %>
<% view master uses content::master %>
<% template render() %>
<%= title %> · git
<% include content_body() %>
<% end template %>
<% template content_body() %><% end template %>
<% end view %>
<% view frontpage uses content::frontpage extends master %>
<% template content_body() %>
Multi Git Frontend
Serving <%= repo_count %> repositories.
Browse repositories →
<% end template %>
<% end view %>
<% view repo_list uses content::repo_list extends master %>
<% template content_body() %>
Repositories
<% foreach r in repos %><% item %>
- <%= r %>
<% end item %><% empty %>
- No repositories found.
<% end %>
<% end template %>
<% end view %>
<% view repo_home uses content::repo_home extends master %>
<% template content_body() %>
<%= repo %>
default branch: <%= default_branch %> · commit <%= commit_oid %>
files ·
log
<% if (content.readme_name.length() > 0) %>
Loading README…
<%= readme_text %>
<% else %>
No README found.
<% end %>
<% end template %>
<% end view %>
<% view tree_view uses content::tree_view extends master %>
<% template content_body() %>
<%= repo %><% if (content.path.length() > 0) %>/<%= path %><% end %>
<% if (content.tags.size() > 0) %>
tags: <% foreach t in tags %><% item %><%= t %> <% end item %><% end foreach %>
<% end %>
<% if (not content.is_root) %>
| .. | |
<% end %>
<% foreach e in entries %><% item %>
|
<% if e.is_dir %>
<%= e.name %>/
<% else %>
<% if e.is_submodule %>
<%= e.name %> @ <%= e.oid %>
<% else %>
<%= e.name %>
<% end %>
<% end %>
|
<% if e.is_dir %><% else %><% if e.is_submodule %><% else %><% c++ out() << util::human_size(e.size); %><% end %><% end %> |
<% end item %><% empty %>
| empty tree |
<% end %>
<% end template %>
<% end view %>
<% view file_view uses content::file_view extends master %>
<% template content_body() %>
<%= path %>
<% if (content.tags.size() > 0) %>
tags: <% foreach t in tags %><% item %><%= t %> <% end item %><% end foreach %>
<% end %>
raw ·
blame ·
history
<% if is_image %>

<% if not empty text %>
<%= text %>
<% end %>
<% else %>
<% if is_binary %>
Binary file (<% c++ out() << util::human_size(content.size); %>) —
view raw
<% else %>
<% if is_markdown %>
Loading…
<%= text %>
<% else %>
<%= text %>
<% end %>
<% end %>
<% end %>
<% end template %>
<% end view %>
<% view blame_view uses content::blame_view extends master %>
<% template content_body() %>
blame: <%= path %>
normal view ·
raw
<% foreach l in lines %><% item %>
| <%= l.short_oid %> |
<%= l.author %> |
<%= l.number %> |
<%= l.content %> |
<% end item %><% end foreach %>
<% end template %>
<% end view %>
<% view log_view uses content::log_view extends master %>
<% template content_body() %>
log: <%= repo %>
<% foreach c in commits %><% item %>
| <%= c.short_oid %> |
<%= c.summary %> |
<%= c.author_name %> |
<% c++ out() << util::format_time(c.time); %> |
<% end item %><% empty %>
| no commits |
<% end %>
<% end template %>
<% end view %>
<% view object_view uses content::object_view extends master %>
<% template content_body() %>
object <%= object.oid %>
type: <%= object.type_name %>
<% if (content.object.kind == ObjectKind::Tree) %>
<% foreach e in object.entries %><% item %>
| <%= e.name %> |
<%= e.oid %> |
<% end item %><% end foreach %>
<% else %>
<%= object.body %>
<% end %>
<% end template %>
<% end view %>
<% view tags_view uses content::tags_view extends master %>
<% template content_body() %>
tags: <%= repo %>
<% end template %>
<% end view %>
<% view tag_view uses content::tag_view extends master %>
<% template content_body() %>
tag: <%= tag.name %>
<% if tag.annotated %>annotated<% else %>lightweight<% end %> ·
points to <%= tag.short_oid %>
· <% c++ out() << util::format_time(content.tag.time); %>
· browse files
<% if (content.tag.tagger_name.length() > 0) %>
tagger: <%= tag.tagger_name %><% end %>
<% if (content.tag.message.length() > 0) %>
<%= tag.message %>
<% end %>
<% end template %>
<% end view %>
<% view branches_view uses content::branches_view extends master %>
<% template content_body() %>
branches: <%= repo %>
<% foreach b in branches %><% item %>
| <%= b.short_oid %> |
<%= b.name %><% if b.is_default %> (default)<% end %> |
log |
browse files |
<% c++ out() << util::format_time(b.time); %> |
<% end item %><% empty %>
| no branches |
<% end %>
<% end template %>
<% end view %>
<% view commit_view uses content::commit_view extends master %>
<% template content_body() %>
commit <%= commit.short_oid %>
<% if (not content.on_default_branch) %>
<% if (content.branches.size() > 0) %>
branches: <% foreach b in branches %><% item %><%= b.name %> <% end item %><% end foreach %>
<% else %>
not on any branch
<% end %>
<% end %>
<%= commit.author_name %><% if (content.commit.author_email.length() > 0) %> <<%= commit.author_email %>><% end %> ·
<% c++ out() << util::format_time(content.commit.time); %>
<%= commit.oid %>
patch
· browse files
<% foreach p in commit.parents %><% item %>
parent <%= p %><% end item %><% end foreach %>
<%= commit.message %>
Changed files
<% foreach f in commit.files %><% item %>
| <%= f.status %> |
<% if (f.status == 'D') %>
<%= f.path %>
<% else %>
<%= f.path %>
<% end %>
<% if (content.commit.first_parent.length() > 0 and (f.status == 'M' or f.status == 'D')) %>
before
<% end %>
|
<% end item %><% empty %>
| no changes |
<% end %>
<% foreach d in commit.diff %><% item %>
<%= d.content %>
<% end item %><% end foreach %>
<% end template %>
<% end view %>
<% end skin %>