Sha256: 68040a1261b1e882334e9e1256a6ec9894891ab7646c1ae8b71035c4e7bdd570

Contents?: true

Size: 1.45 KB

Versions: 1

Compression:

Stored size: 1.45 KB

Contents

<div class="hero-body">
  <% @organs.each do |organ| %>
    <div class="box">
      <div class="media is-middle">
        <div class="media-left">
          <%= image_tag organ.logo.variant(resize_to_limit: [150, 150]), class: 'image is-48x48' if organ.logo.attached? %>
        </div>
        <div class="media-content">
          <strong><%= organ.name %></strong>
        </div>
        <div class="media-right">
        </div>
      </div>
      <% organ.members.each do |member| %>
        <div class="card">
          <div class="card-content">
            <div class="media">
              <div class="media-left">
                <%= image_tag member.avatar.variant(resize_to_limit: [150, 150]), class: 'image is-48x48' if member.avatar.attached? %>
              </div>
              <div class="media-content">
                <span><%= member.departments.first&.full_name %></span>
                <span><%= member.name %></span>
              </div>
            </div>
          </div>
          <div class="card-footer">
            <%= link_to '我的', { controller: '/me/home', host: organ.host, member_id: member.id }, class: 'card-footer-item' %>
          </div>
        </div>
      <% end %>
    </div>
  <% end %>
  <div class="media">
    <div class="media-content">
      <%= link_to({ controller: 'organs', action: 'new' }) do %>
        <i class="fas fa-plus"></i><span><%= t('org.board.organs.new.title') %></span>
      <% end %>
    </div>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_org-0.0.1 app/views/org/board/organs/index.html.erb