summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-07-22 14:37:46 +0200
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-07-25 21:11:58 +0200
commit0aee7c94d011bb760523f1dfd3bd1e2e31ac0e49 (patch)
tree0fbdf1e80c505ca428f8fb2fc6775beed0340f23 /app
parente6bb4f1491e8a2420ff4965dc48ade144d87676e (diff)
downloadgitlab-ce-0aee7c94d011bb760523f1dfd3bd1e2e31ac0e49.tar.gz
Update links to milestones
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/show.html.haml4
-rw-r--r--app/views/milestones/_milestone.html.haml15
2 files changed, 8 insertions, 11 deletions
diff --git a/app/views/issues/show.html.haml b/app/views/issues/show.html.haml
index 8ffc9c2b662..4e8bcb89373 100644
--- a/app/views/issues/show.html.haml
+++ b/app/views/issues/show.html.haml
@@ -46,9 +46,7 @@
- if @issue.milestone
- milestone = @issue.milestone
%cite.cgray and attached to milestone
- = link_to project_milestone_path(milestone.project, milestone) do
- %strong
- = truncate(milestone.title, :length => 20)
+ %strong= link_to truncate(milestone.title, :length => 20), project_milestone_path(milestone.project, milestone)
.right
- @issue.labels.each do |label|
diff --git a/app/views/milestones/_milestone.html.haml b/app/views/milestones/_milestone.html.haml
index 9912cf9ed54..81ec92ef6bc 100644
--- a/app/views/milestones/_milestone.html.haml
+++ b/app/views/milestones/_milestone.html.haml
@@ -6,14 +6,13 @@
= 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
= 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.row_title
- = truncate(milestone.title, :length => 100)
- %small
- = milestone.expires_at
- %br
- .progress.progress-success.span3
- .bar{:style => "width: #{milestone.percent_complete}%;"}
+ %h4
+ = link_to truncate(milestone.title, :length => 100), project_milestone_path(milestone.project, milestone), :class => "row_title"
+ %small
+ = milestone.expires_at
+ %br
+ .progress.progress-success.span3
+ .bar{:style => "width: #{milestone.percent_complete}%;"}
&nbsp;