Blob of app/views/logs/show.html.erb (raw blob data)

1 <% @page_title = "Commits in #{@repository.name} in #{@project.title}" -%>
2 <h1>
3 Commitlog for <%= h(@repository.name) -%>:<%=h params[:id] -%> in <%= h(@project.title) -%>
4 </h1>
5
6 <div class="commit_graph">
7 <%= commit_graph_tag(@repository) %>
8 </div>
9
10 <%= render :partial => "log" -%>
11
12 <% content_for :submenu do -%>
13 <%= render :partial => "repositories/context_menu" -%>
14 <% end -%>
15
16 <% content_for :sidebar do -%>
17 <ul>
18 <li><strong>Project:</strong> <%= link_to h(@repository.project.title), @repository.project -%></li>
19 <li><strong>Maintainer:</strong> <%= link_to h(@repository.user.login), @repository.user -%></li>
20 <% unless @commits.blank? -%>
21 <li><strong>HEAD tree:</strong> <%= link_to h(@commits.first.tree.id[0,7]),
22 tree_path(@commits.first.id) -%></li>
23 <% end -%>
24 </ul>
25
26 <h5>Branches:</h5>
27 <ul>
28 <% @git.branches.sort{|a, b| a.name <=> b.name }.each do |branch| -%>
29 <li><%= link_to h(branch.name), log_path(branch.name) -%></li>
30 <% end -%>
31 </ul>
32
33 <% unless @git.tags.blank? -%>
34 <h5>Tags:</h5>
35 <ul>
36 <% @git.tags.sort{|a, b| a.name <=> b.name }.each do |tag| -%>
37 <li><%= link_to h(tag.name), commit_path(tag.commit.id) -%></li>
38 <% end -%>
39 </ul>
40 <% end -%>
41
42 <%= commit_graph_by_author_tag(@repository, params[:id]) %>
43 <% end -%>