Commit e4b72248 authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Phil Hughes

Only render signout screen when user is signed out

parent c9041508
...@@ -8,16 +8,17 @@ ...@@ -8,16 +8,17 @@
= image_tag 'illustrations/issues.svg' = image_tag 'illustrations/issues.svg'
.col-xs-12 .col-xs-12
.text-content .text-content
- if has_button && current_user - if current_user
%h4 %h4
= _("The Issue Tracker is the place to add things that need to be improved or solved in a project") = _("The Issue Tracker is the place to add things that need to be improved or solved in a project")
%p %p
= _("Issues can be bugs, tasks or ideas to be discussed. Also, issues are searchable and filterable.") = _("Issues can be bugs, tasks or ideas to be discussed. Also, issues are searchable and filterable.")
.text-center - if has_button
- if project_select_button .text-center
= render 'shared/new_project_item_select', path: 'issues/new', label: 'New issue', type: :issues - if project_select_button
- else = render 'shared/new_project_item_select', path: 'issues/new', label: 'New issue', type: :issues
= link_to 'New issue', button_path, class: 'btn btn-success', title: 'New issue', id: 'new_issue_link' - else
= link_to 'New issue', button_path, class: 'btn btn-success', title: 'New issue', id: 'new_issue_link'
- else - else
%h4.text-center= _("There are no issues to show") %h4.text-center= _("There are no issues to show")
%p %p
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment