<aside class="bg-dark text-white p-4 rounded">
  <h1 class="h4 mb-0"><%= project.name %></h1>
  <small class="font-weight-bold text-primary text-uppercase"><%= project.client_name %></small>
  <nav class="mt-3">
    <ul class="nav nav-pills nav-pills-dark flex-column">
      <li class="nav-item">
        <%= link_to fa_icon("folder fw", text: t(".files")), project, class: class_string("nav-link" => true, active: sidenav_files_nav_link_active?(project)) %>
      </li>
    </ul>
  </nav>
  <hr class="divider-light mx-n4">
  <nav>
    <ul class="nav nav-pills nav-pills-dark flex-column">
      <li class="nav-item">
        <%= link_to [project, :contract_templates], class: class_string("nav-link", "active" => %w(contract_templates release_template_imports).include?(controller_name)) do %>
          <%= lock_icon_for Current.account, :releaseme %>
          <%= product_wordmark :release_me, class: class_string("d-inline-block", "disabled" => !Current.account.releaseme_enabled?) %>
        <% end %>
      </li>
      <li class="nav-item">
        <%= link_to [project, :broadcasts], class: class_string("nav-link", "active" => controller_name == "broadcasts") do %>
          <%= lock_icon_for(Current.account, :directme) %>
          <%= product_wordmark :direct_me, class: class_string("d-inline-block", "disabled" => !Current.account.directme_enabled?) %>
        <% end %>
      </li>
      <li class="nav-item">
        <%= link_to "#", class: "nav-link" do %>
          <%= lock_icon_for(Current.account, :editme) %>
          <%= product_wordmark :edit_me, class: "d-inline-block disabled" %>
        <% end %>
      </li>
      <li class="nav-item">
        <%= link_to [project, :videos], class: class_string("nav-link", "active" => controller_name == "videos") do %>
          <%= lock_icon_for(Current.account, :deliverme) %>
          <%= product_wordmark :deliver_me, class: class_string("d-inline-block", "disabled" => !Current.account.deliverme_enabled?) %>
        <% end %>
      </li>
    </ul>
  </nav>
  <hr class="divider-light mx-n4">
  <div class="d-flex justify-content-between">
    <%= pluralize project.members.size, t(".team_member") %>
    <%= link_to fa_icon("gear"), [project, :project_memberships], class: "text-muted" %>
  </div>
  <ul class="list-unstyled d-flex flex-row flex-wrap justify-content-start align-items-center">
    <% project.members.each do |member| %>
      <li class="list-inline-item mt-2"><%= image_or_text_avatar(member) %></li>
    <% end %>
  </ul>
</aside>
