Commit f169998cef2319ab92f9da10fb9b36b07460a5da
- Date: Sun Mar 30 13:16:59 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: f169998cef2319ab92f9da10fb9b36b07460a5da
- Tree SHA1: 27b3277aee67847d58ab8ecbb47a01f2e559bd6b
Make commit message linkable, and only show the short message
Commit diff
| |   |
| 9 | 9 | by <strong><%= user ? link_to(user.login, user_path(user)) : h(commit.committer.name) -%></strong> <%=h time_ago_in_words(commit.committed_date) -%> ago |
| 10 | 10 | </div> |
| 11 | 11 | <%= gravatar_frame(commit.committer.email, :size => 32) %> |
| 12 | | <div class="commit_message"> <%= simple_format(h(commit.message)) -%></div> |
| 12 | <div class="commit_message"> <%= link_to simple_format(h(commit.short_message)), project_repository_commit_path(@project, @repository, commit.id) -%></div> |
| 13 | 13 | <div class="clear_left"></div> |
| 14 | 14 | </li> |
| 15 | 15 | <% end -%> |
| toggle raw diff |
--- a/app/views/logs/_log.html.erb
+++ b/app/views/logs/_log.html.erb
@@ -9,7 +9,7 @@
by <strong><%= user ? link_to(user.login, user_path(user)) : h(commit.committer.name) -%></strong> <%=h time_ago_in_words(commit.committed_date) -%> ago
</div>
<%= gravatar_frame(commit.committer.email, :size => 32) %>
- <div class="commit_message"> <%= simple_format(h(commit.message)) -%></div>
+ <div class="commit_message"> <%= link_to simple_format(h(commit.short_message)), project_repository_commit_path(@project, @repository, commit.id) -%></div>
<div class="clear_left"></div>
</li>
<% end -%> |