Permalink
Browse files

remove superfluous parentheses in '_navigation.html.erb'

  • Loading branch information...
1 parent 72b2284 commit d864ae3637e8796fecac2ee2050c2bcebf42d0dc @DanielKehoe DanielKehoe committed May 10, 2012
View
8 files/navigation/devise/_navigation.html.erb
@@ -2,20 +2,20 @@
<ul class="nav">
<% if user_signed_in? %>
<li>
- <%= link_to('Logout', destroy_user_session_path, :method=>'delete') %>
+ <%= link_to 'Logout', destroy_user_session_path, :method=>'delete' %>
</li>
<% else %>
<li>
- <%= link_to('Login', new_user_session_path) %>
+ <%= link_to 'Login', new_user_session_path %>
</li>
<% end %>
<% if user_signed_in? %>
<li>
- <%= link_to('Edit account', edit_user_registration_path) %>
+ <%= link_to 'Edit account', edit_user_registration_path %>
</li>
<% else %>
<li>
- <%= link_to('Sign up', new_user_registration_path) %>
+ <%= link_to 'Sign up', new_user_registration_path %>
</li>
<% end %>
</ul>
View
10 files/navigation/devise/authorization/_navigation.html.erb
@@ -2,25 +2,25 @@
<ul class="nav">
<% if user_signed_in? %>
<li>
- <%= link_to('Logout', destroy_user_session_path, :method=>'delete') %>
+ <%= link_to 'Logout', destroy_user_session_path, :method=>'delete' %>
</li>
<% else %>
<li>
- <%= link_to('Login', new_user_session_path) %>
+ <%= link_to 'Login', new_user_session_path %>
</li>
<% end %>
<% if user_signed_in? %>
<li>
- <%= link_to('Edit account', edit_user_registration_path) %>
+ <%= link_to 'Edit account', edit_user_registration_path %>
</li>
<% if current_user.has_role? :admin %>
<li>
- <%= link_to('Admin', users_path) %>
+ <%= link_to 'Admin', users_path %>
</li>
<% end %>
<% else %>
<li>
- <%= link_to('Sign up', new_user_registration_path) %>
+ <%= link_to 'Sign up', new_user_registration_path %>
</li>
<% end %>
</ul>
View
4 files/navigation/omniauth/_navigation.html.erb
@@ -5,11 +5,11 @@
Logged in as <%= current_user.name %>
</li>
<li>
- <%= link_to('Logout', signout_path) %>
+ <%= link_to 'Logout', signout_path %>
</li>
<% else %>
<li>
- <%= link_to('Login', signin_path) %>
+ <%= link_to 'Login', signin_path %>
</li>
<% end %>
</ul>
View
10 files/navigation/subdomains/_navigation.html.erb
@@ -6,23 +6,23 @@
<% if request.subdomain.present? && request.subdomain != "www" %>
<% if user_signed_in? %>
<li>
- <%= link_to('Edit account', edit_user_registration_url) %>
+ <%= link_to 'Edit account', edit_user_registration_url %>
</li>
<li>
- <%= link_to('Logout', destroy_user_session_url, :method=>'delete') %>
+ <%= link_to 'Logout', destroy_user_session_url, :method=>'delete' %>
</li>
<% else %>
<li>
- <%= link_to('Login', new_user_session_url) %>
+ <%= link_to 'Login', new_user_session_url %>
</li>
<% end %>
<% else %>
<li>
- <%= link_to('Sign up', new_user_registration_url(:host => request.domain)) %>
+ <%= link_to 'Sign up', new_user_registration_url(:host => request.domain) %>
</li>
<% if user_signed_in? %>
<li>
- <%= link_to('Logout', destroy_user_session_url, :method=>'delete') %>
+ <%= link_to 'Logout', destroy_user_session_url, :method=>'delete' %>
</li>
<% end %>
<% end %>

0 comments on commit d864ae3

Please sign in to comment.