Sha256: 18ae3d74ab41c9ebe75c0e19d6b8a0997dd331e95260b7e13df5748064fd795f

Contents?: true

Size: 829 Bytes

Versions: 132

Compression:

Stored size: 829 Bytes

Contents

<% if can? *navigate_module(navigation) %>
  <%= content_tag :div, class: main_navigation_css_classes(navigation), data: navigation["data"] do %>
    <%= link_to url_for_module(alchemy_module) do %>
      <% if navigation["image"] %>
        <%= image_tag(navigation["image"]) %>
      <% elsif navigation["inline_image"] %>
        <span class="icon fa-fw">
          <%== navigation["inline_image"] %>
        </span>
      <% elsif navigation["icon"] %>
        <i class="module icon fas fa-<%= navigation["icon"] %> fa-lg fa-fw"></i>
      <% else %>
        <i class="module icon fas fa-table fa-lg fa-fw"></i>
      <% end %>
      <label><%= Alchemy.t(navigation['name']) %></label>
    <% end %>
    <%= render 'alchemy/admin/partials/sub_navigation',
      entries: navigation['sub_navigation'] %>
  <% end %>
<% end %>

Version data entries

132 entries across 132 versions & 1 rubygems

Version Path
alchemy_cms-4.4.2 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.4.1 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.4.0 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.3.2 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.2.4 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.3.1 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.2.3 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.3.0 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.2.2 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.2.1 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.2.0 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
alchemy_cms-4.2.0.rc1 app/views/alchemy/admin/partials/_main_navigation_entry.html.erb