| 1 |
<% users_by_email = @repository.users_by_commits(@commits) %> |
| 2 |
<ul class="commit_list"> |
| 3 |
<% @commits.each do |commit| -%> |
| 4 |
<% user = users_by_email[commit.author.email] %> |
| 5 |
<li class="commit_item"> |
| 6 |
<div> |
| 7 |
<a href=""><%= link_to h(commit.id_abbrev), |
| 8 |
project_repository_commit_path(@project, @repository, commit.id) -%></a> |
| 9 |
by <strong><%= user ? link_to(user.login, user_path(user)) : h(commit.author.name) -%></strong> <%=h time_ago_in_words(commit.authored_date) -%> ago |
| 10 |
</div> |
| 11 |
<%= gravatar_frame(commit.author.email, :size => 32) %> |
| 12 |
<div class="commit_message"> <%= link_to simple_format(h(commit.short_message)), project_repository_commit_path(@project, @repository, commit.id) -%></div> |
| 13 |
<div class="clear_left"></div> |
| 14 |
</li> |
| 15 |
<% end -%> |
| 16 |
</ul> |