Sha256: 01bac3f2b3118da2cd51e122c6025151a179fe51cb98ff38fd9eac1ddc2569b4

Contents?: true

Size: 1.76 KB

Versions: 1

Compression:

Stored size: 1.76 KB

Contents

<div class="box">
<% @cards.each do |card| %>
  <div class="card is-radiusless" style="background-image: url(<%= rails_blob_url(card.card_template.cover) %>); background-size: cover; background-repeat: no-repeat">
    <div class="card-header">
      <p class="card-header-title"><%= card.card_template.name %></p>
    </div>
    <div class="card-content">
      <p><%= card.card_uuid %></p>
    </div>
    <div class="card-content">
      <div class="header"></div>
      <div class="description">
        <div class="level is-flex">
          <div class="level-left">
            <div class="level-item"><time data-controller="time"><%= card.effect_at.to_s(:rfc822) %></time></div>
          </div>
          <div class="level-right mt-0">
            <div class="level-item"><time data-controller="time"><%= card.expire_at.to_s(:rfc822) %></time></div>
          </div>
        </div>
      </div>
    </div>
    <div class="card-footer">
    </div>
  </div>
  <div class="panel is-radiusless">
    <div class="panel-block">
      <p><%= Trade::Card.human_attribute_name(:amount) %>:<%= card.amount %></p>
    </div>
    <div class="panel-block">
      <%= link_to '记录', { controller: 'card_logs', card_id: card.id }, class: 'card-footer-item' %>
    </div>
    <div class="panel-block">
      <%= link_to '充值', { controller: '/trade/advances', card_template_id: card.card_template_id }, class: 'card-footer-item' %>
    </div>
  </div>
<% end %>
<% @card_templates.each do |card_template| %>
  <div class="card is-radiusless" style="background-image: url(<%= rails_blob_url(card_template.cover) %>); background-size: cover; background-repeat: no-repeat">
    <div class="card-header">
      <p class="card-header-title"><%= card_template.name %></p>
    </div>
  </div>
<% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_trade-0.0.3 app/views/trade/my/cards/index.html.erb