removes extra if check

This commit is contained in:
Nur Rony 2016-12-12 13:02:08 +06:00
parent 0bde5c946a
commit c877b152d1
1 changed files with 4 additions and 5 deletions

View File

@ -8,11 +8,10 @@
= render 'shared/issuable/nav', type: :issues
- if current_user
.nav-controls
- if current_user
= link_to url_for(params.merge(format: :atom, private_token: current_user.private_token)), class: 'btn' do
= icon('rss')
%span.icon-label
Subscribe
= link_to url_for(params.merge(format: :atom, private_token: current_user.private_token)), class: 'btn' do
= icon('rss')
%span.icon-label
Subscribe
= render 'shared/new_project_item_select', path: 'issues/new', label: "New Issue"
= render 'shared/issuable/filter', type: :issues