Sha256: b028058f21ed06def7a96ef5c6201da8bac1302f7ccbcca6c43d24bef07348bf

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

<% if presenter.work_presenters.present? %>
  <div class="panel panel-default raster_works">
    <div class="panel-heading">
      <h2><%= child_geo_works_type(presenter) %> Works</h2>
    </div>
    <table class="table">
      <thead>
        <tr>
          <th class="col-xs-3"></th>
          <th>Work Name</th>
        </tr>
      </thead>
      <tbody>
        <% presenter.work_presenters.each do |res| %>
          <tr class="file_set attributes">
            <td class="thumbnail" style="margin-bottom: 0px">
              <%= render_thumbnail_tag res %>
            </td>
            <td>
              <%= link_to res.title.first, polymorphic_path([main_app, res]) %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
<% elsif can? :edit, presenter.id %>
  <% if child_geo_works_type(presenter) %>
    <h2><%= child_geo_works_type(presenter) %> Works</h2>
    <p class="center"><em>This <%= presenter.human_readable_type %> has no <%= child_geo_works_type(presenter).downcase %> works associated with it.</em></p>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geo_concerns-0.0.5 app/views/geo_concerns/_related_geo_works.html.erb
geo_concerns-0.0.4 app/views/geo_concerns/_related_geo_works.html.erb