MiraitSystems/enju_trunk

View on GitHub
app/views/accepts/show.html.erb

Summary

Maintainability
Test Coverage
<div id="content_detail" class="ui-corner-all ui-widget-content">
<h1 class="title"><%= t('page.showing', model: t('activerecord.models.accept')) -%></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>

<p>
  <strong><%= t('activerecord.models.item') -%>:</strong>
  <% if @accept.item %>
    <%= link_to @accept.item.item_identifier, @accept.item -%>
    (<%= link_to @accept.item.manifestation.original_title, @accept.item.manifestation %>)
  <% end %>
</p>

<p>
  <strong><%= t('activerecord.models.user') -%>:</strong>
  <%= link_to @accept.librarian.username, @accept.librarian.profile if @accept.librarian.try(:profile) -%>
</p>

<p>
  <strong><%= t('page.created_at') -%>:</strong>
  <%=l @accept.created_at %>
</p>

</div>
</div>

<div id="submenu" class="ui-corner-all ui-widget-content">
  <ul>
    <li><%= back_to_index(flash[:page_info]) -%></li>
  </ul>
</div>