Sha256: 1b28b9a028869513c172a8376628b641583ed241fca51cfaa3c9c1facfb6cfdc

Contents?: true

Size: 1.24 KB

Versions: 15

Compression:

Stored size: 1.24 KB

Contents

<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('page.listing', model: t('activerecord.models.subscription')) -%></h1>
<div id="content_list">

<table class="table table-striped index">
  <tr>
    <th><%= t('page.title') -%></th>
    <th><%= t('activerecord.attributes.subscription.subscribes_count') -%></th>
    <th></th>
  </tr>

<%- @subscriptions.each do |subscription| -%>
  <tr class="line<%= cycle("0", "1") -%>">
    <td><%= link_to subscription.title, subscription -%></td>
    <td><%= subscription.works.size -%></td>
    <td>
      <% if can? :delete, subscription %>
        <%= link_to t('page.edit'), edit_subscription_path(subscription) -%>
        <%= link_to t('page.destroy'), subscription, data: {confirm: t('page.are_you_sure')}, method: :delete -%>
      <% end %>
    </td>
  </tr>
<%- end -%>
</table>

<%= paginate(@subscriptions) -%>

</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <ul>
    <%- if @work -%>
      <li><%= link_to t('page.add', model: t('activerecord.models.work')), subscriptions_path -%></li>
    <%- else -%>
      <li><%= link_to t('page.new', model: t('activerecord.models.subscription')), new_subscription_path -%></li>
    <%- end -%>
  </ul>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
enju_library-0.1.2 app/views/subscriptions/index.html.erb
enju_library-0.1.1 app/views/subscriptions/index.html.erb
enju_library-0.1.0 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre45 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre44 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre43 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre42 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre41 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre40 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre39 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre38 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre37 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre36 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre35 app/views/subscriptions/index.html.erb
enju_library-0.1.0.pre34 app/views/subscriptions/index.html.erb