<% c++ #include "content.h" %> <% c++ #include "util.h" %> <% skin git %> <% view repo_home uses content::repo_home extends master %> <% template content_body() %>

<%= repo %>

default branch: <%= default_branch %> · commit <%= commit_oid %>

files · log

<% if (content.clone_http.length() > 0 or content.clone_https.length() > 0) %>

Checkout

<% if (content.clone_http.length() > 0) %>

Non-GitHub git clone <%= clone_http %>

<% end %> <% if (content.clone_https.length() > 0) %>

HTTPS git clone <%= clone_https %>

SSH git clone <%= clone_ssh %>

<% end %>
<% end %> <% if (content.readme_name.length() > 0) %>
Loading README…
<% 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.query.length() > 0) %>

browsing at commit = <%= commit_oid %>

<% end %> <% 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 %> <% if (content.tags.size() > 0) %>

tags: <% foreach t in tags %><% item %><%= t %> <% end item %><% end foreach %>

<% end %> <% if (content.entries.size() > 0) %>

<% end %> <% if (not content.is_root) %> <% end %> <% foreach e in entries %><% item %> <% end item %><% empty %> <% end %>
..
<% 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 %>
empty tree
<% end template %> <% end view %> <% view file_view uses content::file_view extends master %> <% template content_body() %>

<%= path %>

<% if (content.query.length() > 0) %>

browsing at commit = <%= commit_oid %>

<% end %> <% 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 %> <% if (content.tags.size() > 0) %>

tags: <% foreach t in tags %><% item %><%= t %> <% end item %><% end foreach %>

<% end %>

raw · blame · history

<% if is_image %>

<%= filename %>

<% 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…
<% 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 %> <% end item %><% end foreach %>
<%= l.short_oid %> <%= l.author %> <%= l.number %>
<%= l.content %>
<% end template %> <% end view %> <% end skin %>