18F/identity-dashboard

View on GitHub
app/views/teams/index.html.erb

Summary

Maintainability
Test Coverage
<h1 class="usa-display">My teams</h1>
<p class="usa-intro">You are a member of these teams and have access to these apps.</p>
<div>
  <% if @teams.count > 0 %>
    <%=
      button_to(
          t('headings.teams.new_team'),
          new_team_path,
          method: :get,
          class: "usa-button margin-top-4 margin-bottom-4",
          ) if can_create_teams? (current_user)
    %>
    <%= render 'teams_list' %>
  <% else %>
    <%= render "teams/no_teams" %>
  <% end %>
</div>