Sha256: 4adff5ba41575c13b26592fd86de498862b4b045503c3b411ef7b15961792787

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

<nav id="nav" class="nav-primary hidden-xs nav-vertical">
  <ul class="nav" data-spy="affix" data-offset-top="50">
    <li class="active"><a href="index.html"><i class="fa fa-dashboard fa-lg"></i><span>Dashboard</span></a></li>
    <% if can? :read, WebAdmin::Post %>
      <%= menu_link I18n.t('controllers.web_admin/posts'), 'fa fa-file-text-o fa-lg', 'posts', posts_path %>
    <% end %>
    <% if can? :read, WebAdmin::Institutional %>
      <%= menu_link I18n.t('controllers.web_admin/institutionals'), 'fa fa-file-text-o fa-lg', 'institutionals',institutionals_path %>
    <% end %>
    <% if can? :read, WebAdmin::Video %>
      <%= menu_link I18n.t('controllers.web_admin/videos'), 'fa fa-video-camera fa-lg', 'videos', videos_path %>
    <% end %>
    <% if can? :read, WebAdmin::Album  %>
      <%= menu_link I18n.t('controllers.web_admin/albums'), 'fa fa-camera fa-lg', 'albums', albums_path %>
    <% end %>
    <% if can? :read, WebAdmin::Event  %>
      <%= menu_link I18n.t('controllers.web_admin/events'), 'fa fa-calendar fa-lg', 'events', events_path %>
    <% end %>
    <% if can? :read, WebAdmin::User %>
      <%= menu_link I18n.t('controllers.web_admin/users'), 'fa fa-user fa-lg', 'users', users_path %>
    <% end %>
  </ul>
</nav>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
web_admin-0.1.0 app/views/shared/_navbar.html.erb
web_admin-0.0.2 app/views/shared/_navbar.html.erb
web_admin-0.0.1 app/views/shared/_navbar.html.erb