Sha256: 5c4d01703961985ab8d5792ecae011689aeb3ea8ca1048dff853b4456a736620

Contents?: true

Size: 1.07 KB

Versions: 22

Compression:

Stored size: 1.07 KB

Contents

 <%= link_to 'Home', root_path %>
| <%= link_to 'Posts', posts_path %>
[ <%= link_to 'Bossy Boots', home_bossy_boots_path, class: current_user&.is_super_user? || current_user&.is_admin? ? "has-role" : "has-no-role" %>
| <%= link_to 'Use in Moderation', home_use_in_moderation_path, class: current_user&.is_super_user? || current_user&.is_moderator? ? "has-role" : "has-no-role" %>
| <%= link_to 'Use Me', home_use_me_path, class: current_user&.is_super_user? || current_user&.is_user? ? "has-role" : "has-no-role" %>
| <%= link_to 'I will be your Hero', home_super_hero_path, class: current_user&.is_super_user? ? "has-role" : "has-no-role" %>
]
<br>
<% if current_user %>
  <%= current_user.name.capitalize %> 
  <%= link_to "Edit Roles", edit_rolify_path(current_user) %>
  <% if current_user.roles.present? %><%= "(#{current_user.roles.map(&:name).join(', ')})" %><% end %>
| <%= link_to 'Sign Out', destroy_user_session_path, data: { turbo_method: :delete } %>

<% else %>
| <%= link_to 'Sign Up', new_user_registration_path %>
| <%= link_to 'Sign In', new_user_session_path %>
<% end%>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rails_app_generator-0.2.30 after_templates/addons/rolify/app/views/layouts/_navbar.html.erb
rails_app_generator-0.2.29 after_templates/addons/rolify/app/views/layouts/_navbar.html.erb