diff options
author | George Andrinopoulos <geoandri@gmail.com> | 2017-02-08 22:57:23 +0200 |
---|---|---|
committer | George Andrinopoulos <geoandri@gmail.com> | 2017-03-02 16:37:04 +0200 |
commit | 9cc7d93641fd261c1d337aeebad7dca69a779b6c (patch) | |
tree | 5e4e7f6eced1735e852db3d8e5fa8a4e478295f1 /app/views/projects/milestones | |
parent | c5b29ed6f36779dbb96f4cdc7b1b0bce8bb8dc5e (diff) | |
download | gitlab-ce-9cc7d93641fd261c1d337aeebad7dca69a779b6c.tar.gz |
Hide issue info when project issues are disabled
Diffstat (limited to 'app/views/projects/milestones')
-rw-r--r-- | app/views/projects/milestones/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/milestones/show.html.haml b/app/views/projects/milestones/show.html.haml index 06a31698ee6..212ca61a095 100644 --- a/app/views/projects/milestones/show.html.haml +++ b/app/views/projects/milestones/show.html.haml @@ -47,7 +47,7 @@ = preserve do = markdown_field(@milestone, :description) - - if @milestone.total_items_count(current_user).zero? + - if can?(current_user, :read_issue, @project) && @milestone.total_items_count(current_user).zero? .alert.alert-success.prepend-top-default %span Assign some issues to this milestone. - elsif @milestone.complete?(current_user) && @milestone.active? |