Sha256: 07a7ed52ff2acc96d5361d99bc2688cc83cb923e38deaa20ac2df69e7bdcabc4

Contents?: true

Size: 1.16 KB

Versions: 14

Compression:

Stored size: 1.16 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">
    <%= link_to t('.buttons.show'), [:account, membership], class: 'button-secondary button-smaller' %>
  </td>
</tr>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bullet_train-1.2.24 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.23 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.22 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.21 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.20 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.19 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.18 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.17 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.16 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.15 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.14 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.13 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.12 app/views/account/memberships/_membership.html.erb
bullet_train-1.2.11 app/views/account/memberships/_membership.html.erb