Sha256: c55f3a164cc7a8171881f342ff6305878baaf932d84823898a46b3853e789715

Contents?: true

Size: 1.35 KB

Versions: 117

Compression:

Stored size: 1.35 KB

Contents

<tr data-id="<%= membership.id %>">
  <td class="px-6 py-4 whitespace-nowrap">
    <%= link_to [:account, membership], class: 'block flex items-center group hover:no-underline no-underline' do %>
      <div class="flex-shrink-0 h-10 w-10">
        <%= image_tag membership_profile_photo_url(membership), title: membership.label_string, class: 'h-10 w-10 rounded-full' %>
      </div>

      <div class="ml-3">
        <span class="group-hover:underline"><%= membership.label_string %></span>
        <% if membership.unclaimed? %>
          <span class="ml-1.5 px-2 inline-flex text-xs text-green-800 bg-green-light border border-green-800 rounded-md">
            Invited
          </span>
        <% end %>
      </div>
    <% end %>
  </td>

  <td>
    <% if membership.roles_without_defaults.any? %>
      <%= membership.roles_without_defaults.map { |role| t("memberships.fields.role_ids.options.#{role.key}.label") }.to_sentence %>
    <% else %>
      <%= t("memberships.fields.role_ids.options.default.label") %>
    <% end %>
  </td>
  <td class="text-right">
    <% if membership.unclaimed? %>
      <%= button_to t('.buttons.resend'), resend_account_invitation_path(membership.invitation.uuid), class: 'button-secondary button-smaller' %>
    <% end %>
    <%= link_to t('.buttons.show'), [:account, membership], class: 'button-secondary button-smaller' %>
  </td>
</tr>

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
bullet_train-1.3.13 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.12 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.11 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.10 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.9 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.8 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.7 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.6 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.5 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.4 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.3 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.2 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.1 app/views/account/memberships/_membership.html.erb
bullet_train-1.3.0 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.27 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.26 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.25 app/views/account/memberships/_membership.html.erb