Add timestamp col to commits table in the mr#show
[gitorious:mainline.git] / app / views / merge_requests / show / _commits.html.erb
1 <table class="table gts-mr-commit-table">
2   <colgroup>
3     <col class="sha-col"/>
4     <col class="commit-msg-col"/>
5     <col class="commit-date-col"/>
6   </colgroup>
7   <% commits.map { |commit| CommitPresenter.new(repository, commit) }.each do |commit| %>
8     <tr>
9       <td>
10         <%= link_to(commit.short_oid, project_repository_commit_path(repository.project, repository, commit.id)) %>
11       </td>
12       <td>
13         <%= commit.short_message %>
14       </td>
15       <td title="<%= commit.committed_date.utc %>">
16         <%= time_ago_in_words(commit.committed_date) %> ago
17       </td>
18     </tr>
19   <% end %>
20 </table>