sufia 7.0.0.beta2 → 7.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/sufia/admin/stats_behavior.rb +1 -0
- data/app/controllers/concerns/sufia/batch_uploads_controller_behavior.rb +1 -7
- data/app/controllers/concerns/sufia/works_controller_behavior.rb +1 -5
- data/app/forms/sufia/forms/collection_form.rb +8 -3
- data/app/helpers/sufia/sufia_helper_behavior.rb +10 -10
- data/app/models/concerns/sufia/ability.rb +8 -11
- data/app/models/concerns/sufia/file_set_behavior.rb +5 -0
- data/app/models/featured_work.rb +1 -1
- data/app/models/featured_work_list.rb +9 -6
- data/app/search_builders/sufia/homepage_search_builder.rb +6 -1
- data/app/search_builders/sufia/my_collections_search_builder.rb +4 -9
- data/app/search_builders/sufia/my_works_search_builder.rb +6 -5
- data/app/search_builders/sufia/search_builder.rb +0 -7
- data/app/views/_toolbar.html.erb +13 -29
- data/app/views/admin/_menu.html.erb +8 -0
- data/app/views/collections/_document_list.html.erb +1 -1
- data/app/views/collections/_edit_actions.html.erb +4 -3
- data/app/views/collections/_form.html.erb +18 -4
- data/app/views/collections/_media_display.html.erb +3 -1
- data/app/views/collections/_show_actions.html.erb +19 -5
- data/app/views/collections/_show_document_list_menu.html.erb +5 -5
- data/app/views/collections/_show_document_list_row.html.erb +3 -3
- data/app/views/collections/_work_action_menu.html.erb +4 -4
- data/app/views/collections/edit.html.erb +2 -2
- data/app/views/collections/show.html.erb +23 -26
- data/app/views/curation_concerns/base/_form_metadata.html.erb +1 -1
- data/app/views/curation_concerns/base/_form_relationships.html.erb +1 -1
- data/app/views/curation_concerns/base/_guts4form.html.erb +3 -1
- data/app/views/curation_concerns/file_sets/_descriptions.html.erb +1 -1
- data/app/views/curation_concerns/file_sets/edit.html.erb +1 -1
- data/app/views/curation_concerns/permissions/confirm.html.erb +1 -1
- data/app/views/dashboard/_index_partials/_contents.html.erb +1 -1
- data/app/views/dashboard/_index_partials/_proxy_rights.html.erb +3 -3
- data/app/views/dashboard/_index_partials/_transfers.html.erb +2 -2
- data/app/views/my/_collection_action_menu.html.erb +7 -7
- data/app/views/my/_index_partials/_default_group.html.erb +5 -5
- data/app/views/my/_index_partials/_list_collections.html.erb +13 -13
- data/app/views/my/_index_partials/_list_works.html.erb +2 -2
- data/app/views/my/_work_action_menu.html.erb +11 -8
- data/app/views/sufia/homepage/_featured.html.erb +4 -4
- data/app/views/sufia/homepage/_featured_fields.html.erb +2 -2
- data/app/views/sufia/homepage/_recent_document.html.erb +1 -1
- data/app/views/sufia/homepage/_sortable_featured.html.erb +7 -7
- data/app/views/transfers/index.html.erb +3 -3
- data/app/views/users/_contributions.html.erb +2 -2
- data/app/views/users/_trophy_edit.html.erb +1 -1
- data/config/locales/sufia.en.yml +82 -25
- data/config/routes.rb +3 -7
- data/lib/generators/sufia/assets_generator.rb +4 -0
- data/lib/generators/sufia/install_generator.rb +15 -2
- data/lib/generators/sufia/templates/sufia.scss +5 -0
- data/lib/generators/sufia/upgrade700_generator.rb +0 -8
- data/lib/sufia/version.rb +1 -1
- data/spec/controllers/admin_stats_controller_spec.rb +17 -10
- data/spec/controllers/generic_works_controller_spec.rb +2 -2
- data/spec/features/collection_spec.rb +3 -3
- data/spec/features/edit_file_spec.rb +5 -3
- data/spec/forms/sufia/collection_form_spec.rb +12 -3
- data/spec/models/ability_spec.rb +2 -0
- data/spec/models/featured_work_list_spec.rb +6 -6
- data/spec/presenters/work_usage_spec.rb +1 -1
- data/spec/search_builder/sufia/my_shares_search_builder_spec.rb +4 -2
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- data/spec/views/_toolbar.html.erb_spec.rb +11 -0
- data/spec/views/collections/_form.html.erb_spec.rb +1 -1
- data/spec/views/collections/_show_document_list_menu.html.erb_spec.rb +5 -5
- data/spec/views/collections/edit.html.erb_spec.rb +24 -0
- data/spec/views/collections/show.html.erb_spec.rb +32 -0
- data/spec/views/curation_concerns/base/_form.html.erb_spec.rb +2 -0
- data/spec/views/curation_concerns/permissions/confirm.html.erb_spec.rb +1 -8
- data/spec/views/my/_list_collections.html.erb_spec.rb +37 -0
- data/spec/views/my/_list_works.html.erb_spec.rb +1 -1
- data/spec/views/sufia/batch_uploads/_form.html.erb_spec.rb +2 -0
- data/sufia.gemspec +1 -1
- metadata +11 -6
- data/lib/generators/sufia/admin_stat_generator.rb +0 -14
- data/lib/generators/sufia/templates/sufia/stats_admin.rb +0 -10
@@ -7,12 +7,12 @@
|
|
7
7
|
</td>
|
8
8
|
<td>
|
9
9
|
<div class="media">
|
10
|
-
<%= link_to
|
10
|
+
<%= link_to document, class: "media-left" do %>
|
11
11
|
<%= render_thumbnail_tag document, { class: "hidden-xs file_listing_thumbnail" }, { suppress_link: true } %>
|
12
12
|
<% end %>
|
13
13
|
<div class="media-body">
|
14
14
|
<h4 class="media-heading">
|
15
|
-
<%= link_to document.title_or_label,
|
15
|
+
<%= link_to document.title_or_label, document, id: "src_copy_link#{id}", class: "#{'document-title' if document.title_or_label == document.label}" %>
|
16
16
|
<a href="#" class="small" title="Click for more details"><i id="expand_<%= id %>" class="glyphicon glyphicon-chevron-right"></i></a>
|
17
17
|
</h4>
|
18
18
|
<%= render_collection_links(document) %>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
<%= render_visibility_link(document) %>
|
25
25
|
</td>
|
26
26
|
<td class="text-center">
|
27
|
-
<%= render
|
27
|
+
<%= render'show_document_list_menu', document: document %>
|
28
28
|
</td>
|
29
29
|
</tr>
|
30
30
|
<tr id="detail_<%= id %>"> <!-- document detail"> -->
|
@@ -13,21 +13,21 @@
|
|
13
13
|
</li>
|
14
14
|
|
15
15
|
<li role="menuitem" tabindex="-1">
|
16
|
-
<%= link_to
|
16
|
+
<%= link_to [:edit, document] do %>
|
17
17
|
<i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
|
18
18
|
<span> Edit Work </span>
|
19
19
|
<% end %>
|
20
20
|
</li>
|
21
21
|
|
22
22
|
<li role="menuitem" tabindex="-1">
|
23
|
-
<%= link_to
|
23
|
+
<%= link_to document, method: :delete, data: { confirm: "Deleting a work from #{application_name} is permanent. Click OK to delete this work from #{application_name}, or Cancel to cancel this operation" } do %>
|
24
24
|
<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
|
25
|
-
<span>
|
25
|
+
<span>Delete Work</span>
|
26
26
|
<% end %>
|
27
27
|
</li>
|
28
28
|
|
29
29
|
<li role="menuitem" tabindex="-1">
|
30
|
-
<%= display_trophy_link
|
30
|
+
<%= display_trophy_link @user, document.id do |text| %>
|
31
31
|
<i class='glyphicon glyphicon-star'></i> <%= text %>
|
32
32
|
<% end %>
|
33
33
|
</li>
|
@@ -10,14 +10,14 @@
|
|
10
10
|
<%= render 'collections/form' %>
|
11
11
|
</div>
|
12
12
|
<div class="col-xs-12 col-sm-2">
|
13
|
-
<%= render 'collections/media_display',
|
13
|
+
<%= render 'collections/media_display', presenter: @collection %>
|
14
14
|
<%= render 'collections/edit_actions' %>
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
<% end %>
|
18
18
|
|
19
19
|
<div class="row m-t-3">
|
20
|
-
<h2 class="col-xs-12 col-sm-6"><%= t('sufia.collection.manage_items') %></h2>
|
20
|
+
<h2 class="col-xs-12 col-sm-6"><%= t('sufia.collection.edit.manage_items') %></h2>
|
21
21
|
<div class="col-xs-12 col-sm-6">
|
22
22
|
<%= render 'search_form', presenter: @collection %>
|
23
23
|
</div>
|
@@ -1,35 +1,32 @@
|
|
1
1
|
<% provide :page_title, construct_page_title(@presenter.title) %>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
<div itemscope itemtype="http://schema.org/CollectionPage" class="row">
|
3
|
+
<div class="col-sm-10 pull-right">
|
4
|
+
<header>
|
5
|
+
<%= render 'collection_title', presenter: @presenter %>
|
6
|
+
</header>
|
7
|
+
<%= render 'collection_description', presenter: @presenter %>
|
8
8
|
|
9
|
-
|
9
|
+
<% unless has_collection_search_parameters? %>
|
10
10
|
<%= render 'collections/show_descriptions' %>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<%= render
|
17
|
-
|
18
|
-
</div>
|
11
|
+
<% end %>
|
12
|
+
</div>
|
13
|
+
<div class="col-sm-2">
|
14
|
+
<%= render 'collections/media_display', presenter: @presenter %>
|
15
|
+
<% unless has_collection_search_parameters? %>
|
16
|
+
<%= render 'collections/show_actions', presenter: @presenter %>
|
17
|
+
<% end %>
|
19
18
|
</div>
|
20
|
-
|
21
|
-
<% if has_collection_search_parameters? %>
|
22
|
-
<% header_title = "Search Results within this Collection" %>
|
23
|
-
<% else %>
|
24
|
-
<% header_title = "Items in this Collection" %>
|
25
|
-
<% end %>
|
26
|
-
|
27
|
-
<div style="float: right">
|
28
|
-
<%= link_to t('sufia.collection.select_works'), sufia.dashboard_works_path %> | <%= link_to t('sufia.collection.add_work'), new_curation_concerns_generic_work_path %>
|
29
19
|
</div>
|
20
|
+
|
30
21
|
<div class="row">
|
31
22
|
<div class="col-xs-12">
|
32
|
-
<h2 class="col-xs-6 col-md-7 col-lg-6"
|
23
|
+
<h2 class="col-xs-6 col-md-7 col-lg-6">
|
24
|
+
<% if has_collection_search_parameters? %>
|
25
|
+
Search Results within this Collection
|
26
|
+
<% else %>
|
27
|
+
Items in this Collection
|
28
|
+
<% end %>
|
29
|
+
</h2>
|
33
30
|
<div class="col-xs-6 col-md-5 col-lg-6"><%= render 'search_form', presenter: @presenter %></div>
|
34
31
|
</div>
|
35
32
|
</div>
|
@@ -38,4 +35,4 @@
|
|
38
35
|
|
39
36
|
<%= render_document_index @member_docs %>
|
40
37
|
|
41
|
-
<%= render
|
38
|
+
<%= render 'paginate' %>
|
@@ -11,7 +11,9 @@
|
|
11
11
|
<% else %>
|
12
12
|
<li role="presentation">
|
13
13
|
<% end %>
|
14
|
-
<a href="#<%= tab %>" aria-controls="<%= tab %>" role="tab" data-toggle="tab"
|
14
|
+
<a href="#<%= tab %>" aria-controls="<%= tab %>" role="tab" data-toggle="tab">
|
15
|
+
<%= t("sufia.generic_works.edit.tab.#{tab}") %>
|
16
|
+
</a>
|
15
17
|
</li>
|
16
18
|
<% end %>
|
17
19
|
</ul>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div id="descriptions_display" class="tab-pane active">
|
2
2
|
<%= simple_form_for [sufia, @form], html: { multipart: true } do |f| %>
|
3
3
|
<%= hidden_field_tag('redirect_tab', 'descriptions') %>
|
4
|
-
<h1>
|
4
|
+
<h1>Descriptions</h1>
|
5
5
|
<% f.object.terms.each do |term| %>
|
6
6
|
<%= render_edit_field_partial(term, f: f) %>
|
7
7
|
<% end %>
|
@@ -10,6 +10,6 @@
|
|
10
10
|
</div>
|
11
11
|
<div class="form-actions panel-footer">
|
12
12
|
<%= button_to "Yes please.", main_app.copy_curation_concerns_permission_path(curation_concern), class: 'btn btn-primary' %>
|
13
|
-
<%= link_to "No. I'll update it manually.", main_app
|
13
|
+
<%= link_to "No. I'll update it manually.", [main_app, curation_concern], class: 'btn' %>
|
14
14
|
</div>
|
15
15
|
</div>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
|
20
20
|
<div class="panel panel-default" id="proxy_management">
|
21
21
|
<div class="panel-heading dashboard-panel">
|
22
|
-
<h3 class="panel-title "
|
22
|
+
<h3 class="panel-title "><%= t("sufia.dashboard.manage_proxies") %></h3>
|
23
23
|
</div>
|
24
24
|
<div class="panel-body">
|
25
25
|
<%= render partial: 'dashboard/_index_partials/proxy_rights' %>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<div class="clearfix proxy-rights">
|
2
2
|
|
3
3
|
<div class="col-xs-6 proxy-search">
|
4
|
-
<h3 class="panel-title"
|
5
|
-
<label class="sr-only" for="user"
|
4
|
+
<h3 class="panel-title"><%= t("sufia.dashboard.authorize_proxies") %></h3>
|
5
|
+
<label class="sr-only" for="user"><%= t("sufia.dashboard.proxy_user") %></label>
|
6
6
|
<%= hidden_field_tag :user, nil, data: { grantor: current_user.to_param } %>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="col-xs-6">
|
10
|
-
<h3 class="panel-title"
|
10
|
+
<h3 class="panel-title"><%= t("sufia.dashboard.current_proxies") %></h3>
|
11
11
|
<table class="table table-condensed table-striped" id="authorizedProxies">
|
12
12
|
<tbody>
|
13
13
|
<% @user.can_receive_deposits_from.each do |depositor| %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="row">
|
2
2
|
<div class="col-xs-12 col-sm-9">
|
3
|
-
<h4
|
3
|
+
<h4><%= t("sufia.dashboard.transfers_sent") %></h4>
|
4
4
|
</div>
|
5
5
|
<div class="col-xs-12 col-sm-3 transfer_link">
|
6
6
|
<%= link_to sufia.dashboard_works_path do %>
|
@@ -10,5 +10,5 @@
|
|
10
10
|
</div>
|
11
11
|
<%= render_sent_transfers %>
|
12
12
|
|
13
|
-
<h4
|
13
|
+
<h4><%= t("sufia.dashboard.transfers_received") %></h4>
|
14
14
|
<%= render_received_transfers %>
|
@@ -1,24 +1,24 @@
|
|
1
1
|
<div class="btn-group">
|
2
2
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= id %>" aria-haspopup="true">
|
3
|
-
<span class="sr-only"
|
4
|
-
|
3
|
+
<span class="sr-only"><%= t("sufia.dashboard.my.sr.press_to") %> </span>
|
4
|
+
<%= t("sufia.dashboard.my.action.select") %> <span class="caret" aria-hidden="true"></span>
|
5
5
|
</button>
|
6
6
|
<ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= id %>">
|
7
7
|
<li role="menuitem" tabindex="-1">
|
8
8
|
<%= link_to edit_collection_path(id),
|
9
9
|
class: 'itemicon itemedit',
|
10
|
-
title:
|
11
|
-
<i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
|
10
|
+
title: t("sufia.dashboard.my.action.edit_collection") do %>
|
11
|
+
<i class="glyphicon glyphicon-pencil" aria-hidden="true"></i> <%= t("sufia.dashboard.my.action.edit_collection") %>
|
12
12
|
<% end %>
|
13
13
|
</li>
|
14
14
|
<li role="menuitem" tabindex="-1">
|
15
15
|
<%= link_to collection_path(id),
|
16
16
|
class: 'itemicon itemtrash',
|
17
|
-
title:
|
17
|
+
title: t("sufia.dashboard.my.action.delete_collection"),
|
18
18
|
method: :delete,
|
19
19
|
data: {
|
20
|
-
confirm: "
|
21
|
-
<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
|
20
|
+
confirm: t("sufia.dashboard.my.action.collection_confirmation", application_name: application_name) } do %>
|
21
|
+
<i class="glyphicon glyphicon-trash" aria-hidden="true"></i> <%= t("sufia.dashboard.my.action.delete_collection") %>
|
22
22
|
<% end %>
|
23
23
|
</li>
|
24
24
|
</ul>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<table class="table table-striped">
|
2
|
-
<caption class="sr-only"
|
2
|
+
<caption class="sr-only"><%= t("sufia.dashboard.my.sr.listing") %> <%= application_name %></caption>
|
3
3
|
<% unless params[:display_type] == 'list' %>
|
4
4
|
<thead>
|
5
5
|
<tr>
|
6
6
|
<th><label for="check_all" class="sr-only"><%= t("sufia.dashboard.my.sr.check_all_label") %></label><%= render_check_all %></th>
|
7
|
-
<th
|
8
|
-
<th class="sorts-dash"><i id="<%= CatalogController.uploaded_field %>" class="<%=params[:sort]== "#{CatalogController.uploaded_field} desc" ? 'caret' : params[:sort]== "#{CatalogController.uploaded_field} asc" ? 'caret up' : ''%>"></i
|
9
|
-
<th
|
10
|
-
<th
|
7
|
+
<th><%= t("sufia.dashboard.my.heading.title") %></th>
|
8
|
+
<th class="sorts-dash"><i id="<%= CatalogController.uploaded_field %>" class="<%=params[:sort]== "#{CatalogController.uploaded_field} desc" ? 'caret' : params[:sort]== "#{CatalogController.uploaded_field} asc" ? 'caret up' : ''%>"></i><%= t("sufia.dashboard.my.heading.date_uploaded") %></th>
|
9
|
+
<th><%= t("sufia.dashboard.my.heading.visibility") %></th>
|
10
|
+
<th><%= t("sufia.dashboard.my.heading.action") %></th>
|
11
11
|
</tr>
|
12
12
|
</thead>
|
13
13
|
<% end %>
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<% id = document.id %>
|
2
2
|
<tr id="document_<%= id %>">
|
3
|
-
<td
|
4
|
-
<td
|
3
|
+
<td></td>
|
4
|
+
<td>
|
5
5
|
<div class="media">
|
6
6
|
<%= link_to document, class: "pull-left", "aria-hidden" => true do %>
|
7
7
|
<span class="fa fa-cubes collection-icon-small"></span>
|
8
8
|
<% end %>
|
9
9
|
<div class="media-body">
|
10
10
|
<div class="media-heading">
|
11
|
-
<%= link_to
|
11
|
+
<%= link_to document, id: "src_copy_link#{id}" do %>
|
12
12
|
<span class="sr-only"><%= t("sufia.dashboard.my.sr.show_label") %> </span>
|
13
13
|
<%= document.title_or_label %>
|
14
14
|
<% end %>
|
@@ -20,9 +20,9 @@
|
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
</td>
|
23
|
-
<td
|
24
|
-
<td
|
25
|
-
<%=
|
23
|
+
<td class="text-center"><%= document.create_date %> </td>
|
24
|
+
<td class="text-center">
|
25
|
+
<%= render_visibility_link(document) %>
|
26
26
|
</td>
|
27
27
|
<td class="text-center">
|
28
28
|
<%= render 'collection_action_menu', id: id %>
|
@@ -31,15 +31,15 @@
|
|
31
31
|
<tr id="detail_<%= id %>"> <!-- collection detail"> -->
|
32
32
|
<td colspan="6">
|
33
33
|
<dl class="expanded-details row">
|
34
|
-
<dt class="col-xs-3 col-lg-2"
|
35
|
-
<dd class="col-xs-9 col-lg-10"
|
36
|
-
<dt class="col-xs-3 col-lg-2"
|
34
|
+
<dt class="col-xs-3 col-lg-2"><%= t("sufia.dashboard.my.collection_list.description") %></dt>
|
35
|
+
<dd class="col-xs-9 col-lg-10"><%= document.description.first %></dd>
|
36
|
+
<dt class="col-xs-3 col-lg-2"><%= t("sufia.dashboard.my.collection_list.edit_access") %></dt>
|
37
37
|
<dd class="col-xs-9 col-lg-10">
|
38
38
|
<% if document.edit_groups.present? %>
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
<%= t("sufia.dashboard.my.collection_list.groups") %> <%= document.edit_groups.join(', ') %>
|
40
|
+
<br/>
|
41
|
+
<% end %>
|
42
|
+
<%= t("sufia.dashboard.my.collection_list.users") %> <%= document.edit_people.join(', ') %>
|
43
43
|
</dd>
|
44
44
|
</dl>
|
45
45
|
</td>
|
@@ -7,14 +7,14 @@
|
|
7
7
|
|
8
8
|
<td>
|
9
9
|
<div class='media'>
|
10
|
-
<%= link_to
|
10
|
+
<%= link_to document, class: 'media-left', 'aria-hidden' => true do %>
|
11
11
|
<%= render_thumbnail_tag document, { class: 'hidden-xs file_listing_thumbnail' }, { suppress_link: true } %>
|
12
12
|
<% end %>
|
13
13
|
|
14
14
|
<div class='media-body'>
|
15
15
|
<div class='media-heading'>
|
16
16
|
|
17
|
-
<%= link_to
|
17
|
+
<%= link_to document, id: "src_copy_link#{document.id}", class: 'document-title' do %>
|
18
18
|
<span class="sr-only">
|
19
19
|
<%= t("sufia.dashboard.my.sr.show_label") %>
|
20
20
|
</span>
|
@@ -1,24 +1,27 @@
|
|
1
1
|
<div class="btn-group">
|
2
2
|
|
3
3
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button" id="dropdownMenu_<%= document.id %>" aria-haspopup="true">
|
4
|
-
<span class="sr-only"
|
5
|
-
|
4
|
+
<span class="sr-only"><%= t("sufia.dashboard.my.sr.press_to") %> </span>
|
5
|
+
<%= t("sufia.dashboard.my.action.select") %>
|
6
6
|
<span class="caret" aria-hidden="true"></span>
|
7
7
|
</button>
|
8
8
|
|
9
9
|
<ul role="menu" class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu_<%= document.id %>">
|
10
10
|
|
11
11
|
<li role="menuitem" tabindex="-1">
|
12
|
-
<%= link_to
|
12
|
+
<%= link_to [:edit, document] do %>
|
13
13
|
<i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>
|
14
|
-
<span>
|
14
|
+
<span> <%= t("sufia.dashboard.my.action.edit_work") %> </span>
|
15
15
|
<% end %>
|
16
16
|
</li>
|
17
17
|
|
18
18
|
<li role="menuitem" tabindex="-1">
|
19
|
-
<%= link_to
|
19
|
+
<%= link_to document,
|
20
|
+
method: :delete,
|
21
|
+
data: {
|
22
|
+
confirm: t("sufia.dashboard.my.action.work_confirmation", application_name: application_name) } do %>
|
20
23
|
<i class="glyphicon glyphicon-trash" aria-hidden="true"></i>
|
21
|
-
<span>
|
24
|
+
<span> <%= t("sufia.dashboard.my.action.delete_work") %> </span>
|
22
25
|
<% end %>
|
23
26
|
</li>
|
24
27
|
|
@@ -28,9 +31,9 @@
|
|
28
31
|
<% end %>
|
29
32
|
</li>
|
30
33
|
<li role="menuitem" tabindex="-1">
|
31
|
-
<%= link_to(sufia.new_generic_work_transfer_path(document.id), class: 'itemicon itemtransfer', title:
|
34
|
+
<%= link_to(sufia.new_generic_work_transfer_path(document.id), class: 'itemicon itemtransfer', title: t("sufia.dashboard.my.action.transfer")) do %>
|
32
35
|
<i aria-hidden="true" class='glyphicon glyphicon-transfer'></i>
|
33
|
-
<span>
|
36
|
+
<span> <%= t("sufia.dashboard.my.action.transfer") %> </span>
|
34
37
|
<% end %>
|
35
38
|
</li>
|
36
39
|
</ul>
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<%
|
2
|
-
<li class="featured-item" data-id="<%=
|
1
|
+
<% presenter = featured.presenter %>
|
2
|
+
<li class="featured-item" data-id="<%= presenter.id %>">
|
3
3
|
<div class="main row">
|
4
4
|
<div class="col-sm-3">
|
5
|
-
<%= render_thumbnail_tag
|
5
|
+
<%= render_thumbnail_tag presenter, { width: 90 } %>
|
6
6
|
</div>
|
7
7
|
<div class="col-sm-9">
|
8
|
-
<%= render
|
8
|
+
<%= render 'sufia/homepage/featured_fields', featured: presenter %>
|
9
9
|
</div>
|
10
10
|
</div>
|
11
11
|
</li>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<h3>
|
2
2
|
<span class="sr-only">Title</span>
|
3
|
-
<%= link_to truncate(featured.title_or_label, length: 28, separator: ' '),
|
3
|
+
<%= link_to truncate(featured.title_or_label, length: 28, separator: ' '), featured %>
|
4
4
|
</h3>
|
5
5
|
<div>
|
6
6
|
<span class="sr-only">Depositor</span>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
</div>
|
9
9
|
<div>
|
10
10
|
<span class="sr-only">Filename</span>
|
11
|
-
<%= link_to truncate(featured.label, length: 25),
|
11
|
+
<%= link_to truncate(featured.label, length: 25), featured, title: featured.label %>
|
12
12
|
</div>
|
13
13
|
<div>
|
14
14
|
<span class="sr-only">File type</span>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<tr>
|
2
2
|
<td class="col-sm-2">
|
3
3
|
<%= link_to_profile recent_document.depositor("no depositor value") %>
|
4
|
-
<%= link_to
|
4
|
+
<%= link_to recent_document do %>
|
5
5
|
<%= render_thumbnail_tag recent_document, { width: 45 }, false %>
|
6
6
|
<% end %>
|
7
7
|
</td>
|