diff options
author | Dmitriy Zaporozhets <dzaporozhets@gitlab.com> | 2015-03-25 01:02:34 +0000 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-03-24 18:15:22 -0700 |
commit | b68f9beffe8afce738eda23b1e69250fe7cd3200 (patch) | |
tree | 73c8ec1e879460ff73750276ef16bda56c854160 /app/views | |
parent | c91162c53eae1849bfffb479fa76868f5d11d42b (diff) | |
download | gitlab-ce-b68f9beffe8afce738eda23b1e69250fe7cd3200.tar.gz |
Merge branch 'milestone_and_labels_links' into 'master'
Milestones and labels can be used even when issues are disabled.
When Issues are disabled for a project Milestones and Labels can still be used for Merge Requests.
See merge request !1739
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/milestones/show.html.haml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml index 110d8967342..25cc0030965 100644 --- a/app/views/projects/milestones/show.html.haml +++ b/app/views/projects/milestones/show.html.haml @@ -60,11 +60,12 @@ Participants %span.badge= @users.count - .pull-right - = link_to new_namespace_project_issue_path(@project.namespace, @project, issue: { milestone_id: @milestone.id }), class: "btn btn-grouped", title: "New Issue" do - %i.fa.fa-plus - New Issue - = link_to 'Browse Issues', namespace_project_issues_path(@milestone.project.namespace, @milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link btn-grouped" + - if @project.issues_enabled + .pull-right + = link_to new_namespace_project_issue_path(@project.namespace, @project, issue: { milestone_id: @milestone.id }), class: "btn btn-grouped", title: "New Issue" do + %i.fa.fa-plus + New Issue + = link_to 'Browse Issues', namespace_project_issues_path(@milestone.project.namespace, @milestone.project, milestone_id: @milestone.id), class: "btn edit-milestone-link btn-grouped" .tab-content .tab-pane.active#tab-issues |