Sha256: 227d4b347dfcec8b5735391e74768cf7c5846e79e91ca2874e74fa0db8e766b2

Contents?: true

Size: 1.38 KB

Versions: 3

Compression:

Stored size: 1.38 KB

Contents

    <tr>
      <% if display_thumbs %>
        <td class="col-sm-2">
          <%= link_to_profile recent_document.depositor("no depositor value") %>
          <%= link_to sufia.generic_file_path(recent_document) do %>
            <%= render_thumbnail_tag recent_document, { width: 45 } %>
          <% end %>
        </td>
      <% end %>
      <td>
        <h3>
          <span class="sr-only">Title</span><%= link_to truncate(recent_document.title_or_label, length: 28, separator: ' '), sufia.generic_file_path(recent_document.noid)  %>
          <% if display_access %>
              <% if recent_document.registered? %>
                 <span class="label label-info" title="<%=t('sufia.institution_name') %>"><%=t('sufia.institution_name') %></span>
              <% elsif recent_document.public? %>
                <span class="label label-success">Open Access</span>
              <% else %>
                <span class="label label-danger">Private</span>
              <% end %>
          <% end %>
        </h3>
        <p>
          <span class="sr-only">Filename</span><%= link_to truncate(recent_document.label, length: 25),
              sufia.generic_file_path(recent_document.noid), title: recent_document.label %><br />
          <span class="sr-only">Keywords</span><%= link_to_facet_list(recent_document.tags, 'tag', 'no keywords specified').html_safe %>
        </p>
      </td>
    </tr>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sufia-6.0.0.rc2 app/views/homepage/_recent_document.html.erb
sufia-6.0.0.rc1 app/views/homepage/_recent_document.html.erb
sufia-6.0.0.beta1 app/views/homepage/_recent_document.html.erb