summaryrefslogtreecommitdiff
path: root/app/views/shared/empty_states
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-12-18 15:54:44 +0000
committerPhil Hughes <me@iamphill.com>2017-12-18 15:54:44 +0000
commite4b72248c243d66c19e300ed88532c5c795877cd (patch)
tree41db08fa557cf4ce94c45417117f49c673b3f6af /app/views/shared/empty_states
parentc90415085d4ecf7c71c8474a4ffdb27167ab2c19 (diff)
downloadgitlab-ce-e4b72248c243d66c19e300ed88532c5c795877cd.tar.gz
Only render signout screen when user is signed out
Diffstat (limited to 'app/views/shared/empty_states')
-rw-r--r--app/views/shared/empty_states/_issues.html.haml13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/shared/empty_states/_issues.html.haml b/app/views/shared/empty_states/_issues.html.haml
index e039a73cd3b..62437f5fc9d 100644
--- a/app/views/shared/empty_states/_issues.html.haml
+++ b/app/views/shared/empty_states/_issues.html.haml
@@ -8,16 +8,17 @@
= image_tag 'illustrations/issues.svg'
.col-xs-12
.text-content
- - if has_button && current_user
+ - if current_user
%h4
= _("The Issue Tracker is the place to add things that need to be improved or solved in a project")
%p
= _("Issues can be bugs, tasks or ideas to be discussed. Also, issues are searchable and filterable.")
- .text-center
- - if project_select_button
- = render 'shared/new_project_item_select', path: 'issues/new', label: 'New issue', type: :issues
- - else
- = link_to 'New issue', button_path, class: 'btn btn-success', title: 'New issue', id: 'new_issue_link'
+ - if has_button
+ .text-center
+ - if project_select_button
+ = render 'shared/new_project_item_select', path: 'issues/new', label: 'New issue', type: :issues
+ - else
+ = link_to 'New issue', button_path, class: 'btn btn-success', title: 'New issue', id: 'new_issue_link'
- else
%h4.text-center= _("There are no issues to show")
%p