summaryrefslogtreecommitdiff
path: root/app/views/groups/milestones/index.html.haml
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-25 13:30:23 +0200
committerMarin Jankovski <marin@gitlab.com>2014-06-30 09:44:30 +0200
commite1afea777a6f0d2e28adc2765c9445cb10bd25f8 (patch)
tree948325c45d2bed91fa2f5e8b6a6217918ccb3fab /app/views/groups/milestones/index.html.haml
parentaaba993352d65ad645215083cd6a4a46006f4b32 (diff)
downloadgitlab-ce-e1afea777a6f0d2e28adc2765c9445cb10bd25f8.tar.gz
Show title of milestone.
Diffstat (limited to 'app/views/groups/milestones/index.html.haml')
-rw-r--r--app/views/groups/milestones/index.html.haml19
1 files changed, 15 insertions, 4 deletions
diff --git a/app/views/groups/milestones/index.html.haml b/app/views/groups/milestones/index.html.haml
index 8ba325d94a4..a9cf06b817d 100644
--- a/app/views/groups/milestones/index.html.haml
+++ b/app/views/groups/milestones/index.html.haml
@@ -15,7 +15,18 @@
.col-md-3.responsive-side
= render 'groups/filter', entity: 'milestones'
.col-md-9
- - if @milestones.blank?
- .nothing-here-block No milestones to show
- - else
- = render 'groups/milestones/milestone'
+ .panel.panel-default
+ %ul.well-list
+ - if @milestones.blank?
+ %li
+ .nothing-here-block No milestones to show
+ - else
+ - @milestones.group_by(&:title).each do |milestone|
+ %li{class: "milestone milestone-open", id: 1 }
+ .pull-right
+ = link_to root_path, class: "btn btn-small edit-milestone-link btn-grouped" do
+ %i.icon-edit
+ Edit
+ = link_to 'Close Milestone', root_path, method: :put, remote: true, class: "btn btn-small btn-remove"
+ %h4
+ = link_to_gfm truncate(milestone.first, length: 100), root_path