Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-24 00:22:36 +0300
committerRubén Dávila <rdavila84@gmail.com>2016-03-05 06:37:03 +0300
commited4808555877c668366d98a5408937712ad10d52 (patch)
tree1a11a41356487d978b6e0ecdf2a84ef20221d192 /app/views/projects/milestones/show.html.haml
parent834b5d49ecb486065e3ecbf8b36becb416eff366 (diff)
Refactor Merge Requests tab into a custom partial
* Add Labels tab to Groups * Add decorator for label so it's aware of Milestones.
Diffstat (limited to 'app/views/projects/milestones/show.html.haml')
-rw-r--r--app/views/projects/milestones/show.html.haml14
1 files changed, 1 insertions, 13 deletions
diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml
index 6ca66885eb4..4aa1a53e87e 100644
--- a/app/views/projects/milestones/show.html.haml
+++ b/app/views/projects/milestones/show.html.haml
@@ -100,16 +100,4 @@
.tab-pane#tab-participants
= render 'shared/milestones/participants_tab', users: @users
.tab-pane#tab-labels
- %ul.bordered-list.manage-labels-list
- - @labels.each do |label|
- %li
- = render_colored_label(label)
- - args = [@milestone.project.namespace, @milestone.project, milestone_title: @milestone.title, label_name: label.title]
- - options = args.extract_options!
-
- %span.issues-count
- = link_to namespace_project_issues_path(*args, options.merge(state: 'opened')) do
- = pluralize label.open_issues_count, 'open issue'
- %span.issues-count
- = link_to namespace_project_issues_path(*args, options.merge(state: 'closed')) do
- = pluralize label.closed_issues_count, 'closed issue'
+ = render 'shared/milestones/labels_tab', labels: @labels