Update links to milestones

This commit is contained in:
Riyad Preukschas 2012-07-22 14:37:46 +02:00
parent e6bb4f1491
commit 0aee7c94d0
2 changed files with 8 additions and 11 deletions

View file

@ -46,9 +46,7 @@
- if @issue.milestone - if @issue.milestone
- milestone = @issue.milestone - milestone = @issue.milestone
%cite.cgray and attached to milestone %cite.cgray and attached to milestone
= link_to project_milestone_path(milestone.project, milestone) do %strong= link_to truncate(milestone.title, :length => 20), project_milestone_path(milestone.project, milestone)
%strong
= truncate(milestone.title, :length => 20)
.right .right
- @issue.labels.each do |label| - @issue.labels.each do |label|

View file

@ -6,9 +6,8 @@
= link_to 'Browse Issues', project_issues_path(milestone.project, :milestone_id => milestone.id), :class => "btn small grouped" = link_to 'Browse Issues', project_issues_path(milestone.project, :milestone_id => milestone.id), :class => "btn small grouped"
- if can? current_user, :admin_milestone, milestone.project - if can? current_user, :admin_milestone, milestone.project
= link_to 'Edit', edit_project_milestone_path(milestone.project, milestone), :class => "btn small edit-milestone-link grouped" = link_to 'Edit', edit_project_milestone_path(milestone.project, milestone), :class => "btn small edit-milestone-link grouped"
= link_to project_milestone_path(milestone.project, milestone) do %h4
%h4.row_title = link_to truncate(milestone.title, :length => 100), project_milestone_path(milestone.project, milestone), :class => "row_title"
= truncate(milestone.title, :length => 100)
%small %small
= milestone.expires_at = milestone.expires_at
%br %br