Commit 0aee7c94d011bb760523f1dfd3bd1e2e31ac0e49
1 parent
e6bb4f14
Exists in
master
and in
4 other branches
Update links to milestones
Showing
2 changed files
with
8 additions
and
11 deletions
Show diff stats
app/views/issues/show.html.haml
... | ... | @@ -46,9 +46,7 @@ |
46 | 46 | - if @issue.milestone |
47 | 47 | - milestone = @issue.milestone |
48 | 48 | %cite.cgray and attached to milestone |
49 | - = link_to project_milestone_path(milestone.project, milestone) do | |
50 | - %strong | |
51 | - = truncate(milestone.title, :length => 20) | |
49 | + %strong= link_to truncate(milestone.title, :length => 20), project_milestone_path(milestone.project, milestone) | |
52 | 50 | |
53 | 51 | .right |
54 | 52 | - @issue.labels.each do |label| | ... | ... |
app/views/milestones/_milestone.html.haml
... | ... | @@ -6,14 +6,13 @@ |
6 | 6 | = link_to 'Browse Issues', project_issues_path(milestone.project, :milestone_id => milestone.id), :class => "btn small grouped" |
7 | 7 | - if can? current_user, :admin_milestone, milestone.project |
8 | 8 | = link_to 'Edit', edit_project_milestone_path(milestone.project, milestone), :class => "btn small edit-milestone-link grouped" |
9 | - = link_to project_milestone_path(milestone.project, milestone) do | |
10 | - %h4.row_title | |
11 | - = truncate(milestone.title, :length => 100) | |
12 | - %small | |
13 | - = milestone.expires_at | |
14 | - %br | |
15 | - .progress.progress-success.span3 | |
16 | - .bar{:style => "width: #{milestone.percent_complete}%;"} | |
9 | + %h4 | |
10 | + = link_to truncate(milestone.title, :length => 100), project_milestone_path(milestone.project, milestone), :class => "row_title" | |
11 | + %small | |
12 | + = milestone.expires_at | |
13 | + %br | |
14 | + .progress.progress-success.span3 | |
15 | + .bar{:style => "width: #{milestone.percent_complete}%;"} | |
17 | 16 | |
18 | 17 | |
19 | 18 | | ... | ... |