| 1 |
<% meta_noindex %> |
| 2 |
<% meta_nofollow %> |
| 3 |
|
| 4 |
<%= render :partial => "projects/ac_project_header", :locals => { :tab => PRJ_TAB_GIT, :subtab => PRJ_TAB_GIT_COMMIT, :project => @project, :pagetitle => @title } %> |
| 5 |
|
| 6 |
<%= render :partial => "commit_infobox" -%> |
| 7 |
<div class="commit_message"><%= simple_format(h(@commit.message)) -%></div> |
| 8 |
<br /> |
| 9 |
|
| 10 |
<% if @diffs.blank? -%> |
| 11 |
<p> |
| 12 |
This is the initial commit in this repository, |
| 13 |
<%= link_to "browse the initial tree state", tree_path(@commit.id) -%>. |
| 14 |
</p> |
| 15 |
<% else -%> |
| 16 |
<% cache({:diffmode => @diffmode}) do -%> |
| 17 |
|
| 18 |
<h3>Diff Statistics</h3> |
| 19 |
<%= render_diff_stats(@commit.stats) -%> |
| 20 |
<br /> |
| 21 |
<br /> |
| 22 |
|
| 23 |
<h3>File Differences</h3> |
| 24 |
<% @diffs.each do |file| -%> |
| 25 |
<a name="<%= h(file.a_path) -%>"></a> |
| 26 |
<h4><%=h(file.a_path) -%></h4> |
| 27 |
<%= render_diff(file.diff, @diffmode) -%> |
| 28 |
|
| 29 |
<% end -%> |
| 30 |
<% end -%> |
| 31 |
<% end -%> |
| 32 |
|
| 33 |
<%= render :partial => "projects/ac_project_footer" %> |