Sha256: 7823dd6d5b848e7aa3153a6d41fc766e431e012347d490b488206b5966ce2c05

Contents?: true

Size: 1.91 KB

Versions: 5

Compression:

Stored size: 1.91 KB

Contents

<% current_tab = @selected_tab.to_s %>
<% content_for :head do %>
  <%= auto_discovery_link_tag(:rss, sufia.url_for(params.merge(format: 'rss')), title: "RSS for results") %>
  <%= auto_discovery_link_tag(:atom, sufia.url_for(params.merge(format: 'atom')), title: "Atom for results") %>
<% end %>

<%= javascript_tag do %>
  <%= render partial: 'scripts', formats: [:js] %>
<% end %>

<% @page_title = "#{current_tab.capitalize} listing" %>

<h1 class="sr-only">My Files, Collections, Highlights, and Files Shared with Me</h1>
<ul class="nav nav-tabs" id="my_nav" role="navigation">
  <span class="sr-only">You are currently listing your <%= current_tab.pluralize %> .  You have <%= @response.docs.count %> <%= current_tab.pluralize(@response.docs.count)%> </span>
  <li class="<%= "active" if @selected_tab == :files %>">
    <%= link_to t('sufia.dashboard.my.files'), sufia.dashboard_files_path %>
  </li>
  <li class="<%= "active" if @selected_tab == :collections %>">
    <%= link_to t('sufia.dashboard.my.collections'), sufia.dashboard_collections_path %>
  </li>
  <li class="<%= "active" if @selected_tab == :highlighted %>">
    <%= link_to t('sufia.dashboard.my.highlights'), sufia.dashboard_highlights_path %>
  </li>
  <li class="<%= "active" if @selected_tab == :shared %>">
    <%= link_to t('sufia.dashboard.my.shares'), sufia.dashboard_shares_path %>
  </li>
</ul>

<%= render 'search_header' %>

<h2 class="sr-only"><%= @page_title %></h2>
<%= render partial: 'document_list' %>

<% content_for :sidebar do %>
  <span class="sr-only">Upload Files or Create Collection</span>
  <%= link_to t('sufia.dashboard.upload_html'), sufia.new_generic_file_path, class: "btn btn-primary" %>
  <%= link_to t('sufia.dashboard.create_collection_html'), collections.new_collection_path, id: "hydra-collection-add", class: "btn btn-primary" %>
  <%= render partial: 'facets', locals: {current_tab: current_tab} %>
<% end %>

<%= render 'results_pagination' %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sufia-6.6.1 app/views/my/index.html.erb
sufia-6.6.0 app/views/my/index.html.erb
sufia-6.5.0 app/views/my/index.html.erb
sufia-6.4.0 app/views/my/index.html.erb
sufia-6.3.0 app/views/my/index.html.erb