sanger/sequencescape

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

Summary

Maintainability
Test Coverage

<%- add :about, I18n.t("studies.about") %>
<% add :back_menu, I18n.t("navigation.menu.back_to_study") => study_path(@study) -%>

<div id='content-links'>
 <%= link_to "Full details", properties_study_path(@study) -%>
</div>

<div class="page-header"><h1><%= @study.name %></h1></div>
<div class='subtitle'>
  Study <%= @study.id %> &middot; Created on <%= @study.created_at.to_formatted_s(:long) %> &middot; <%= @study.state.capitalize %>
</div>

<h2>Platforms</h2>

<div class='quota'>
  <table width='100%' cellpadding='3'>
    <thead>
      <tr>
        <th>Platform</th>
        <th>Submissions</th>
      </tr>
    </thead>
  </table>
</div>
<br />
<br />
<div class='setup'>
  <table width='100%'>

    <tr>
      <td class='setup_item'>
        This study is <%= @study.study_status %> for processing.
      </td>
      <td class='setup_item'>
      <% if can? :activate, @study %>
        <%= link_to status_link_title(@study), study_status_study_path(@study), method: :get %>
      <% end %>
      </td>
    </tr>
  </table>

  <div id="template_form_body">
    <% unless @study.nil? -%>
      <%= render partial: "shared/properties", locals: { item: @study } %>
    <% end -%>
  </div>
</div>
<br />
<br />
<div class='setup'>
  <table width='100%'>

    <tr>
      <td class='setup_item'>
        This study is <%= @study.study_status %> for processing.
      </td>
      <td class='setup_item'>
      <% if can? :activate, @study %>
        <%= link_to status_link_title(@study), study_status_study_path(@study), method: :get %>
      <% end %>
      </td>
    </tr>
  </table>
</div>