Sha256: 76bd16dd77dfb8fff332f59906925e233f8a91f1d957159792e19943aab0fd31
Contents?: true
Size: 1.49 KB
Versions: 1
Compression:
Stored size: 1.49 KB
Contents
<div id="content_detail" class="ui-corner-all ui-widget-content"> <h1 class="title"><%= t('page.listing', :model => t('activerecord.models.subject_type')) -%></h1> <div id="content_list"> <table class="table table-striped index"> <tr> <th id="position"></th> <th><%= t('activerecord.attributes.subject_type.name') -%></th> <th><%= t('activerecord.attributes.subject_type.display_name') -%></th> <th><%= t('activerecord.attributes.subject_type.note') -%></th> <th></th> </tr> <%- @subject_types.each do |subject_type| -%> <tr class="line<%= cycle("0", "1") -%>"> <td> <%- if can? :update, subject_type -%> <%= move_position(subject_type) -%> <%- end -%> </td> <td><%= link_to subject_type.name, subject_type -%></td> <td><%= link_to subject_type.display_name.localize, subject_type -%></td> <td><%= subject_type.note -%></td> <td> <%- if can? :update, subject_type -%> <%= link_to t('page.edit'), edit_subject_type_path(subject_type) -%> <% end %> <%- if can? :delete, subject_type -%> <%= link_to t('page.destroy'), subject_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%> <%- end -%> </td> </tr> <%- end -%> </table> </div> </div> <div id="submenu" class="ui-corner-all ui-widget-content"> <ul> <% if can? :create, SubjectType %> <li><%= link_to t('page.new', :model => t('activerecord.models.subject_type')), new_subject_type_path -%></li> <% end %> </ul> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_subject-0.1.0.pre25 | app/views/subject_types/index.html.erb |