Sha256: 4687bd1e9756237d7076b3dcd34f5b6b90929c5c8f3d224f86c872c135364374

Contents?: true

Size: 960 Bytes

Versions: 1

Compression:

Stored size: 960 Bytes

Contents

<% if current_user.organizations.any? %>
  <li class="has-dropdown">
    <% if @organization.blank? || @organization.new_record? %>
      <%= link_to current_user.email, projects_path %>
    <% else %>
      <%= link_to @organization.name, organization_path(@organization) %>
    <% end %>
    <ul class="dropdown">
      <% unless @organization.blank? || @organization.new_record? %>
        <li><%= link_to current_user.email, projects_path %></li>
      <% end %>
      <% current_user.organizations.each do |o| %>
        <% unless @organization == o %>
          <li><%= link_to o.name, organization_path(o) %></li>
        <% end %>
      <% end %>
      <li class="divider"></li>
      <li><%#= link_to fa_icon("plus-square", text: "New Organization", class: "fa-fw"), new_organization_path %></li>
    </ul>
  </li>
<% else %>
  <li><%#= link_to fa_icon("plus-square", text: "New Organization", class: "fa-fw"), new_organization_path %></li>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
self_systeem-0.1.0 test/dummy_app/app/views/shared/_organization_links.html.erb