Sha256: 173b4ae8e3d57b97dcf2f622512b153f1d15f3fac34c9b0f285cc65861c1e3e9

Contents?: true

Size: 1.43 KB

Versions: 104

Compression:

Stored size: 1.43 KB

Contents

<% context ||= @team %>
<% hide_actions ||= false %>
<% hide_back ||= false %>

<%= cable_ready_updates_for context, :memberships do %>
  <%= render 'account/shared/box' do |box| %>
    <% box.title t(".contexts.#{context.class.name.underscore}.header") %>
    <% box.description do %>
      <%= raw t(".contexts.#{context.class.name.underscore}.#{@memberships.any? ? 'description' : 'description_empty'}") %>
      <%= render "shared/limits/index", model: @memberships.model %>
    <% end %>

    <% box.table do %>
      <% if @memberships.any? %>
        <table class="table">
          <thead>
            <tr>
              <th><%= t('memberships.singular') %></th>
              <th><%= t('memberships.fields.role_ids.heading') %></th>
              <%# 🚅 super scaffolding will insert new field headers above this line. %>
              <th></th>
            </tr>
          </thead>
          <tbody data-model="Membership" data-scope="current">
            <%= yield %>
          </tbody>
        </table>
      <% end %>
    <% end %>

    <% unless hide_actions %>
      <% box.actions do %>
        <%= link_to t('invitations.buttons.new'), new_account_team_invitation_path(@team, cancel_path: account_team_memberships_path(@team)), class: "#{first_button_primary}" %>
        <%= link_to t('global.buttons.back'), [:account, context], class: "#{first_button_primary} back" unless hide_back %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
bullet_train-1.8.4 app/views/account/memberships/_index.html.erb
bullet_train-1.8.3 app/views/account/memberships/_index.html.erb
bullet_train-1.8.2 app/views/account/memberships/_index.html.erb
bullet_train-1.8.1 app/views/account/memberships/_index.html.erb
bullet_train-1.8.0 app/views/account/memberships/_index.html.erb
bullet_train-1.7.23 app/views/account/memberships/_index.html.erb
bullet_train-1.7.22 app/views/account/memberships/_index.html.erb
bullet_train-1.7.21 app/views/account/memberships/_index.html.erb
bullet_train-1.7.20 app/views/account/memberships/_index.html.erb
bullet_train-1.7.19 app/views/account/memberships/_index.html.erb
bullet_train-1.7.18 app/views/account/memberships/_index.html.erb
bullet_train-1.7.17 app/views/account/memberships/_index.html.erb
bullet_train-1.7.16 app/views/account/memberships/_index.html.erb
bullet_train-1.7.15 app/views/account/memberships/_index.html.erb
bullet_train-1.7.14 app/views/account/memberships/_index.html.erb
bullet_train-1.7.13 app/views/account/memberships/_index.html.erb
bullet_train-1.7.12 app/views/account/memberships/_index.html.erb
bullet_train-1.7.11 app/views/account/memberships/_index.html.erb
bullet_train-1.7.10 app/views/account/memberships/_index.html.erb
bullet_train-1.7.9 app/views/account/memberships/_index.html.erb