Commit cbce4528d0e0aace791ed2d9d16176d29596a615
1 parent
14c97237
Exists in
master
and in
4 other branches
Update links to commits
Showing
3 changed files
with
14 additions
and
16 deletions
Show diff stats
app/views/commits/_commit.html.haml
... | ... | @@ -2,16 +2,15 @@ |
2 | 2 | .browse_code_link_holder |
3 | 3 | %p |
4 | 4 | %strong= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "right" |
5 | - = link_to project_commit_path(@project, :id => commit.id) do | |
6 | - %p | |
7 | - %code.left= commit.short_id | |
8 | - %strong.cgray= commit.author_name | |
9 | - – | |
10 | - = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 | |
11 | - %span.row_title= truncate(commit.title, :length => 50) | |
5 | + %p | |
6 | + %code.left= link_to commit.short_id, project_commit_path(@project, :id => commit.id) | |
7 | + %strong.cgray= commit.author_name | |
8 | + – | |
9 | + = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 | |
10 | + = link_to truncate(commit.title, :length => 50), project_commit_path(@project, :id => commit.id), :class => "row_title" | |
12 | 11 | |
13 | - %span.committed_ago | |
14 | - = time_ago_in_words(commit.committed_date) | |
15 | - ago | |
16 | - | |
12 | + %span.committed_ago | |
13 | + = time_ago_in_words(commit.committed_date) | |
14 | + ago | |
15 | + | |
17 | 16 | ... | ... |
app/views/events/_commit.html.haml
... | ... | @@ -2,9 +2,9 @@ |
2 | 2 | %li.wll.commit |
3 | 3 | = link_to project_commit_path(project, :id => commit.id) do |
4 | 4 | %p |
5 | - %code.left= commit.short_id | |
5 | + %code.left= link_to commit.short_id, project_commit_path(project, :id => commit.id) | |
6 | 6 | %strong.cgray= commit.author_name |
7 | 7 | – |
8 | 8 | = image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16 |
9 | - %span.row_title= truncate(commit.title, :length => 50) rescue "--broken encoding" | |
9 | + = link_to truncate(commit.title, :length => 50), project_commit_path(project, :id => commit.id), :class => "row_title" rescue "--broken encoding" | |
10 | 10 | ... | ... |
app/views/refs/blame.html.haml
... | ... | @@ -32,9 +32,8 @@ |
32 | 32 | = commit.author_name |
33 | 33 | %td.blame_commit |
34 | 34 | |
35 | - = link_to project_commit_path(@project, :id => commit.id) do | |
36 | - %code= commit.short_id | |
37 | - %span.row_title= truncate(commit.title, :length => 30) rescue "--broken encoding" | |
35 | + %code= link_to commit.short_id, project_commit_path(@project, :id => commit.id) | |
36 | + = link_to truncate(commit.title, :length => 30), project_commit_path(@project, :id => commit.id), :class => "row_title" rescue "--broken encoding" | |
38 | 37 | %td.lines |
39 | 38 | = preserve do |
40 | 39 | %pre | ... | ... |