-
Notifications
You must be signed in to change notification settings - Fork 0
/
commit.erb
40 lines (32 loc) · 992 Bytes
/
commit.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<article id="commit_<%= hash %>">
<header>
<dl>
<dt>commit</dt>
<% if rendering_collection %>
<dd><a href="<%= relative_url %>"><%= hash %></a></dd>
<% else %>
<dd><%= hash %></dd>
<% end %>
<dt>Author:</dt>
<dd><%= CGI.escapeHTML(author) %></dd>
<dt>Date:</dt>
<dd><%= date %></dd>
<dt>Reply:</dt>
<dd><a href="<%= github_url %>">GitHub</a></dd>
<% if !rendering_collection %>
<dt>Home:</dt>
<dd><a href="/#commit_<%= hash %>">allow-empty</a></dd>
<% if next_commit %>
<dt>Next:</dt>
<dd><a href="<%= next_commit.relative_url %>"><%= next_commit.hash %></a></dd>
<% end %>
<% if prev_commit %>
<dt>Prev:</dt>
<dd><a href="<%= prev_commit.relative_url %>"><%= prev_commit.hash %></a></dd>
<% end %>
<% end %>
</dl>
<h1><%= title %></h1>
</header>
<main><%= render_body %></main>
</article>