Sha256: 713b6c254158b296ae343b9eb9463905523f81c2a7fe8eb085b118362f036c77

Contents?: true

Size: 1.3 KB

Versions: 40

Compression:

Stored size: 1.3 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 policy(subscription).update? %>
        <%= link_to t('page.edit'), edit_subscription_path(subscription) -%>
      <% end %>
      <% if policy(subscription).destroy? %>
        <%= 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

40 entries across 38 versions & 2 rubygems

Version Path
enju_library-0.3.11 app/views/subscriptions/index.html.erb
enju_library-0.3.10 app/views/subscriptions/index.html.erb
enju_library-0.3.9 app/views/subscriptions/index.html.erb
enju_library-0.3.8 app/views/subscriptions/index.html.erb
enju_library-0.3.8.rc.2 app/views/subscriptions/index.html.erb
enju_library-0.3.8.rc.1 app/views/subscriptions/index.html.erb
enju_library-0.4.0.rc.1 app/views/subscriptions/index.html.erb
enju_library-0.3.7 app/views/subscriptions/index.html.erb
enju_library-0.3.6 app/views/subscriptions/index.html.erb
enju_library-0.4.0.beta.4 app/views/subscriptions/index.html.erb
enju_library-0.4.0.beta.3 app/views/subscriptions/index.html.erb
enju_library-0.4.0.beta.2 app/views/subscriptions/index.html.erb
enju_library-0.4.0.beta.1 app/views/subscriptions/index.html.erb
enju_library-0.3.5 app/views/subscriptions/index.html.erb
enju_library-0.3.4 app/views/subscriptions/index.html.erb
enju_library-0.3.3 app/views/subscriptions/index.html.erb
enju_library-0.3.2 app/views/subscriptions/index.html.erb
enju_library-0.3.1 app/views/subscriptions/index.html.erb
enju_library-0.3.0 app/views/subscriptions/index.html.erb
enju_library-0.3.0.rc.1 app/views/subscriptions/index.html.erb