<% #-- # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies) # Copyright (C) 2008 Johan Sørensen # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2008 Tor Arne Vestbø # Copyright (C) 2009 Fabio Akita # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #++ %>
  • <% if @committer_user -%> <%= link_to(avatar_from_email(@commit.committer.email, { :size => 32 }), @committer_user) %> <% else -%> <%= avatar_from_email(@commit.committer.email, { :size => 32 }) %> <% end -%>
  • <% if @committer_user -%> <%= link_to h(@committer_user.title), @committer_user -%> <% else -%> <%=h @commit.committer.name -%> <%= render_email(@commit.committer.email) -%> <% end -%> <% if @commit.committer != @commit.author -%> (<%= t("views.commits.committer") %>) <% end -%>
  • <%= time_ago(@commit.committed_date) -%>
  • <% if @commit.committer != @commit.author -%>
  • <% if @author_user -%> <%= link_to(avatar_from_email(@commit.author.email, { :size => 32 }), @author_user) %> <% else -%> <%= avatar_from_email(@commit.author.email, { :size => 32 }) %> <% end -%>
  • <% if @author_user -%> <%= link_to h(@author_user.title), @author_user -%> <% else -%> <%=h @commit.author.name -%> <%= render_email(@commit.author.email) -%> <% end -%> (<%= t("views.commits.author") %>)
  • <%= time_ago(@commit.authored_date) -%>
  • <% end -%>
  • <%= t("views.commits.tree_sha1") %>: <%= link_to h(@commit.tree.id[0,7]), repo_owner_path(@repository, :project_repository_tree_path, @project, @repository, @commit.id) -%>
  • <% @commit.parents.each do |parent| -%>
  • <%= t("views.commits.parent_sha1") %>: <%= link_to h(parent.id[0,7]), repo_owner_path(@repository, :project_repository_commit_path, @project, @repository, parent) -%> (<%=h parent.short_message -%>)
  • <% end -%> <% unless @commit.merge? -%>
  • <%= link_to "raw diff", repo_owner_path(@repository, :project_repository_commit_path, @project, @repository, @commit.id, :format => :diff) -%> | <%= link_to "raw patch", repo_owner_path(@repository, :project_repository_commit_path, @project, @repository, @commit.id, :format => :patch) -%>
  • <% end -%>
<%= format_commit_message(h(@commit.message)) -%>