Sha256: f5dde8ff4b5d4813084902b983bacec783a5500027c353ec152237690ed146df

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 KB

Contents

<nav class="navbar is-light" role="navigation" aria-label="main navigation">
  <div class="navbar-brand">
    <%= link_to image_tag(Boxroom.configuration.logo, alt: 'Boxroom'), root_path, {class: 'navbar-item'} %>

    <button class="button navbar-burger">
      <span></span>
      <span></span>
      <span></span>
    </button>
  </div>

  <div class="navbar-menu">
    <div class="navbar-start">
      <% if signed_in? -%>
          <%= link_to t(:folders), folders_path, class: 'navbar-item' %>
          <% if boxroom_current_user.member_of_admins? -%>
              <% if Boxroom.configuration.show_users %>
                  <%= link_to t(:users), users_path, class: 'navbar-item' %>
              <% end %>
              <% if Boxroom.configuration.show_groups %>
                  <%= link_to t(:groups), groups_path, class: 'navbar-item' %>
              <% end %>
              <% if Boxroom.configuration.show_shared_files %>
                  <%= link_to t(:shared_files), share_links_path, class: 'navbar-item' %>
              <% end %>
          <% end -%>
      <% end -%>
    </div>

    <div class="navbar-end">
      <% if signed_in? -%>
          <div class="navbar-item">
            <%= t :hello %>, <b><%= boxroom_current_user.name %></b>
          </div>
          <% if Boxroom.configuration.show_settings %>
              <%= link_to t(:settings), edit_user_path(boxroom_current_user), class: 'navbar-item' %>
          <% end %>
          <div class="navbar-item">
            <%= link_to t(:sign_out), signout_path, method: :delete, class: 'button is-danger' %>
          </div>
      <% end %>
    </div>
  </div>
</nav>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
boxroom-0.0.5 app/views/boxroom/shared/_header.html.erb
boxroom-0.0.4 app/views/boxroom/shared/_header.html.erb
boxroom-0.0.3 app/views/boxroom/shared/_header.html.erb
boxroom-0.0.2 app/views/boxroom/shared/_header.html.erb