blacklight-spotlight 2.13.0 → 3.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/blacklight/add_circle.svg +1 -0
- data/app/assets/images/blacklight/arrow_back_ios.svg +1 -0
- data/app/assets/images/blacklight/arrow_forward_ios.svg +1 -0
- data/app/assets/images/blacklight/check.svg +1 -0
- data/app/assets/images/blacklight/check_circle.svg +1 -0
- data/app/assets/images/blacklight/chevron_right.svg +1 -0
- data/app/assets/images/blacklight/custom_fullscreen.svg +1 -0
- data/app/assets/images/blacklight/edit.svg +1 -0
- data/app/assets/images/blacklight/error.svg +1 -0
- data/app/assets/images/blacklight/info.svg +1 -0
- data/app/assets/images/blacklight/remove_circle.svg +1 -0
- data/app/assets/images/blacklight/remove_circle_outline.svg +1 -0
- data/app/assets/images/blacklight/resize_small.svg +1 -0
- data/app/assets/images/blacklight/warning.svg +1 -0
- data/app/assets/javascripts/spotlight/admin/block_mixins/autocompleteable.js +1 -1
- data/app/assets/javascripts/spotlight/admin/block_mixins/plustextable.js +2 -2
- data/app/assets/javascripts/spotlight/admin/blocks/browse_block.js +1 -1
- data/app/assets/javascripts/spotlight/admin/blocks/pages_block.js +1 -1
- data/app/assets/javascripts/spotlight/admin/blocks/resources_block.js +7 -7
- data/app/assets/javascripts/spotlight/admin/blocks/solr_documents_base_block.js +3 -3
- data/app/assets/javascripts/spotlight/admin/blocks/uploaded_items_block.js +7 -7
- data/app/assets/javascripts/spotlight/admin/catalog_edit.js +2 -2
- data/app/assets/javascripts/spotlight/admin/multi_image_selector.js +2 -2
- data/app/assets/javascripts/spotlight/admin/reindex_monitor.js +1 -1
- data/app/assets/javascripts/spotlight/admin/search_typeahead.js +2 -2
- data/app/assets/javascripts/spotlight/admin/sir-trevor/block_controls.js +1 -1
- data/app/assets/javascripts/spotlight/admin/users.js +1 -1
- data/app/assets/javascripts/spotlight/user/index.js +1 -0
- data/app/assets/javascripts/spotlight/user/zpr_links.js.erb +6 -6
- data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +44 -4
- data/app/assets/stylesheets/spotlight/_blacklight_overrides.scss +4 -8
- data/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +31 -14
- data/app/assets/stylesheets/spotlight/_browse.scss +16 -13
- data/app/assets/stylesheets/spotlight/_catalog.scss +13 -7
- data/app/assets/stylesheets/spotlight/_collapse_toggle.scss +10 -14
- data/app/assets/stylesheets/spotlight/_curation.scss +34 -32
- data/app/assets/stylesheets/spotlight/_exhibit_admin.scss +4 -29
- data/app/assets/stylesheets/spotlight/_exhibits_index.scss +16 -14
- data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +22 -20
- data/app/assets/stylesheets/spotlight/_footer.scss +2 -2
- data/app/assets/stylesheets/spotlight/_header.scss +18 -39
- data/app/assets/stylesheets/spotlight/_item_text_block.scss +1 -24
- data/app/assets/stylesheets/spotlight/_mixins.scss +3 -8
- data/app/assets/stylesheets/spotlight/_multi_up_item_grid.scss +1 -1
- data/app/assets/stylesheets/spotlight/_nestable.scss +1 -2
- data/app/assets/stylesheets/spotlight/_pages.scss +33 -54
- data/app/assets/stylesheets/spotlight/_report_a_problem.scss +7 -1
- data/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +9 -9
- data/app/assets/stylesheets/spotlight/_slideshow_block.scss +13 -11
- data/app/assets/stylesheets/spotlight/_spotlight.scss +0 -1
- data/app/assets/stylesheets/spotlight/_translations.scss +12 -12
- data/app/assets/stylesheets/spotlight/_variables.scss +14 -15
- data/app/assets/stylesheets/spotlight/_variables_bootstrap.scss +7 -7
- data/app/assets/stylesheets/spotlight/typeahead.css +1 -1
- data/app/builders/spotlight/bootstrap_breadcrumbs_builder.rb +3 -2
- data/app/controllers/concerns/spotlight/catalog.rb +1 -1
- data/app/controllers/concerns/spotlight/controller.rb +3 -3
- data/app/controllers/concerns/spotlight/search_helper.rb +23 -0
- data/app/controllers/spotlight/browse_controller.rb +18 -4
- data/app/controllers/spotlight/catalog_controller.rb +13 -17
- data/app/controllers/spotlight/dashboards_controller.rb +5 -1
- data/app/controllers/spotlight/exhibits_controller.rb +1 -1
- data/app/controllers/spotlight/home_pages_controller.rb +32 -3
- data/app/controllers/spotlight/pages_controller.rb +19 -1
- data/app/controllers/spotlight/search_configurations_controller.rb +3 -3
- data/app/controllers/spotlight/searches_controller.rb +4 -1
- data/app/controllers/spotlight/solr_controller.rb +1 -2
- data/app/helpers/spotlight/application_helper.rb +1 -1
- data/app/helpers/spotlight/browse_helper.rb +1 -1
- data/app/helpers/spotlight/crud_link_helpers.rb +19 -0
- data/app/helpers/spotlight/pages_helper.rb +1 -1
- data/app/mailers/spotlight/contact_mailer.rb +1 -1
- data/app/models/concerns/spotlight/access_controls_enforcement_search_builder.rb +2 -2
- data/app/models/concerns/spotlight/exhibit_analytics.rb +1 -3
- data/app/models/concerns/spotlight/exhibit_documents.rb +1 -1
- data/app/models/sir_trevor_rails/blocks/solr_documents_block.rb +11 -3
- data/app/models/spotlight/ability.rb +1 -1
- data/app/models/spotlight/analytics/ga.rb +25 -35
- data/app/models/spotlight/analytics/ga_model.rb +29 -0
- data/app/models/spotlight/blacklight_configuration.rb +5 -3
- data/app/models/spotlight/contact_form.rb +11 -4
- data/app/models/spotlight/exhibit.rb +0 -4
- data/app/models/spotlight/field_metadata.rb +3 -9
- data/app/models/spotlight/page.rb +0 -3
- data/app/models/spotlight/page_configurations.rb +1 -1
- data/app/models/spotlight/role.rb +0 -4
- data/app/models/spotlight/search.rb +3 -17
- data/app/presenters/spotlight/iiif_manifest_presenter.rb +5 -1
- data/app/serializers/spotlight/exhibit_export_serializer.rb +69 -28
- data/app/serializers/spotlight/page_representer.rb +1 -1
- data/app/views/catalog/_save_search.html.erb +6 -4
- data/app/views/devise/mailer/invitation_instructions.html.erb +1 -1
- data/app/views/layouts/spotlight/base.html.erb +48 -0
- data/app/views/layouts/spotlight/spotlight.html.erb +16 -54
- data/app/views/shared/_about_navbar.html.erb +2 -2
- data/app/views/shared/_browse_navbar.html.erb +2 -2
- data/app/views/shared/_curated_features_navbar.html.erb +4 -4
- data/app/views/shared/_exhibit_navbar.html.erb +5 -5
- data/app/views/shared/_header_navbar.html.erb +8 -13
- data/app/views/shared/_masthead.html.erb +1 -1
- data/app/views/shared/_site_sidebar.html.erb +6 -6
- data/app/views/shared/_user_util_links.html.erb +47 -0
- data/app/views/spotlight/about_pages/_contact.html.erb +3 -4
- data/app/views/spotlight/about_pages/_contacts.html.erb +1 -1
- data/app/views/spotlight/about_pages/_sidebar.html.erb +3 -5
- data/app/views/spotlight/about_pages/index.html.erb +7 -6
- data/app/views/spotlight/admin_users/index.html.erb +78 -79
- data/app/views/spotlight/appearances/edit.html.erb +26 -23
- data/app/views/spotlight/browse/_search.html.erb +2 -2
- data/app/views/spotlight/browse/_search_box.html.erb +9 -6
- data/app/views/spotlight/browse/_search_title.html.erb +1 -1
- data/app/views/spotlight/browse/_sort_and_per_page.html.erb +3 -5
- data/app/views/spotlight/browse/index.html.erb +4 -6
- data/app/views/spotlight/browse/show.html.erb +1 -1
- data/app/views/spotlight/catalog/_admin_header.html.erb +2 -2
- data/app/views/spotlight/catalog/_curation_mode_toggle_default.html.erb +1 -1
- data/app/views/spotlight/catalog/_document_admin_table.html.erb +4 -4
- data/app/views/spotlight/catalog/_edit_sidecar.html.erb +1 -1
- data/app/views/spotlight/catalog/_index_compact_default.html.erb +1 -2
- data/app/views/spotlight/catalog/_reindex_progress_panel.html.erb +3 -5
- data/app/views/spotlight/catalog/admin.html.erb +12 -12
- data/app/views/spotlight/contact_forms/new.html.erb +1 -3
- data/app/views/spotlight/contacts/edit.html.erb +6 -5
- data/app/views/spotlight/contacts/new.html.erb +6 -5
- data/app/views/spotlight/custom_fields/edit.html.erb +6 -5
- data/app/views/spotlight/custom_fields/new.html.erb +6 -5
- data/app/views/spotlight/dashboards/_analytics.html.erb +3 -3
- data/app/views/spotlight/dashboards/_page.html.erb +6 -6
- data/app/views/spotlight/dashboards/_page_activity.html.erb +5 -5
- data/app/views/spotlight/dashboards/_reindexing_activity.html.erb +12 -12
- data/app/views/spotlight/dashboards/analytics.html.erb +11 -11
- data/app/views/spotlight/dashboards/show.html.erb +13 -13
- data/app/views/spotlight/exhibits/_confirmation_status.html.erb +3 -4
- data/app/views/spotlight/exhibits/_contact.html.erb +3 -3
- data/app/views/spotlight/exhibits/_delete.html.erb +7 -5
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +2 -2
- data/app/views/spotlight/exhibits/_exhibit_card_front.html.erb +2 -2
- data/app/views/spotlight/exhibits/_form.html.erb +5 -5
- data/app/views/spotlight/exhibits/_languages.html.erb +2 -2
- data/app/views/spotlight/exhibits/_new_exhibit_form.html.erb +0 -2
- data/app/views/spotlight/exhibits/edit.html.erb +43 -42
- data/app/views/spotlight/exhibits/index.html.erb +40 -41
- data/app/views/spotlight/exhibits/new.html.erb +4 -5
- data/app/views/spotlight/feature_pages/_header.html.erb +12 -14
- data/app/views/spotlight/feature_pages/_sidebar.html.erb +2 -4
- data/app/views/spotlight/featured_images/_form.html.erb +4 -4
- data/app/views/spotlight/filters/_form.html.erb +1 -1
- data/app/views/spotlight/home_pages/_edit_page_link.html.erb +1 -1
- data/app/views/spotlight/home_pages/_sidebar.html.erb +1 -3
- data/app/views/spotlight/metadata_configurations/_metadata_field.html.erb +4 -4
- data/app/views/spotlight/metadata_configurations/edit.html.erb +5 -4
- data/app/views/spotlight/pages/_edit_page_link.html.erb +1 -1
- data/app/views/spotlight/pages/_form.html.erb +7 -7
- data/app/views/spotlight/pages/_order_pages.html.erb +2 -2
- data/app/views/spotlight/pages/_page.html.erb +11 -11
- data/app/views/spotlight/pages/_view_type_group.html.erb +1 -1
- data/app/views/spotlight/pages/edit.html.erb +2 -4
- data/app/views/spotlight/pages/index.html.erb +5 -4
- data/app/views/spotlight/pages/show.html.erb +5 -4
- data/app/views/spotlight/resources/_external_resources_form.html.erb +2 -2
- data/app/views/spotlight/resources/_form.html.erb +1 -1
- data/app/views/spotlight/resources/csv_upload/_form.html.erb +1 -1
- data/app/views/spotlight/resources/iiif/_form.html.erb +1 -1
- data/app/views/spotlight/resources/json_upload/_form.html.erb +1 -1
- data/app/views/spotlight/resources/new.html.erb +25 -23
- data/app/views/spotlight/resources/upload/_form.html.erb +2 -2
- data/app/views/spotlight/roles/index.html.erb +60 -57
- data/app/views/spotlight/search_configurations/_facet_metadata.html.erb +3 -1
- data/app/views/spotlight/search_configurations/_facets.html.erb +19 -18
- data/app/views/spotlight/search_configurations/_search_fields.html.erb +6 -6
- data/app/views/spotlight/search_configurations/_sort.html.erb +6 -6
- data/app/views/spotlight/search_configurations/edit.html.erb +42 -40
- data/app/views/spotlight/searches/_form.html.erb +15 -10
- data/app/views/spotlight/searches/_search.html.erb +29 -22
- data/app/views/spotlight/searches/edit.html.erb +6 -5
- data/app/views/spotlight/searches/index.html.erb +32 -31
- data/app/views/spotlight/shared/_configuration_sidebar.html.erb +6 -6
- data/app/views/spotlight/shared/_curation_sidebar.html.erb +8 -9
- data/app/views/spotlight/shared/_exhibit_sidebar.html.erb +6 -8
- data/app/views/spotlight/shared/_locale_picker.html.erb +3 -3
- data/app/views/spotlight/shared/_report_a_problem.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_browse_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_link_to_search_block.html.erb +1 -1
- data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_search_results_block.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +8 -8
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb +8 -8
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +3 -4
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb +32 -31
- data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +5 -5
- data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +8 -10
- data/app/views/spotlight/sites/edit.html.erb +31 -34
- data/app/views/spotlight/sites/edit_exhibits.html.erb +28 -29
- data/app/views/spotlight/tags/index.html.erb +25 -24
- data/app/views/spotlight/translations/_browse_categories.html.erb +20 -15
- data/app/views/spotlight/translations/_general.html.erb +69 -91
- data/app/views/spotlight/translations/_metadata.html.erb +18 -14
- data/app/views/spotlight/translations/_page.html.erb +2 -2
- data/app/views/spotlight/translations/_search_fields.html.erb +26 -20
- data/app/views/spotlight/translations/edit.html.erb +16 -14
- data/config/locales/spotlight.en.yml +3 -0
- data/config/routes.rb +1 -1
- data/lib/generators/spotlight/install_generator.rb +2 -2
- data/lib/generators/spotlight/scaffold_resource_generator.rb +1 -1
- data/lib/generators/spotlight/templates/spotlight.scss +0 -1
- data/lib/spotlight/engine.rb +12 -0
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/application_controller_spec.rb +2 -2
- data/spec/controllers/spotlight/browse_controller_spec.rb +1 -1
- data/spec/controllers/spotlight/catalog_controller_spec.rb +13 -13
- data/spec/controllers/spotlight/dashboards_controller_spec.rb +2 -1
- data/spec/controllers/spotlight/search_configurations_controller_spec.rb +1 -1
- data/spec/examples.txt +50 -1489
- data/spec/features/add_items_spec.rb +2 -2
- data/spec/features/browse_category_admin_spec.rb +3 -3
- data/spec/features/browse_category_spec.rb +3 -3
- data/spec/features/catalog_spec.rb +1 -1
- data/spec/features/exhibits/translation_editing_spec.rb +21 -21
- data/spec/features/feature_page_spec.rb +1 -1
- data/spec/features/home_page_spec.rb +3 -3
- data/spec/features/javascript/blocks/featured_browse_categories_block_spec.rb +1 -1
- data/spec/features/javascript/blocks/link_to_search_block_spec.rb +1 -1
- data/spec/features/javascript/blocks/search_result_block_spec.rb +9 -4
- data/spec/features/javascript/blocks/solr_documents_block_spec.rb +23 -15
- data/spec/features/javascript/blocks/solr_documents_carousel_block_spec.rb +29 -0
- data/spec/features/javascript/blocks/uploaded_items_block_spec.rb +2 -2
- data/spec/features/javascript/edit_in_place_spec.rb +1 -0
- data/spec/features/javascript/feature_page_admin_spec.rb +11 -11
- data/spec/features/javascript/locale_selector_spec.rb +0 -1
- data/spec/features/javascript/multi_image_select_spec.rb +3 -3
- data/spec/features/javascript/reindex_monitor_spec.rb +2 -2
- data/spec/features/javascript/roles_admin_spec.rb +2 -2
- data/spec/features/javascript/search_context_spec.rb +4 -6
- data/spec/features/site_users_management_spec.rb +1 -1
- data/spec/helpers/spotlight/application_helper_spec.rb +2 -1
- data/spec/helpers/spotlight/crud_link_helpers_spec.rb +19 -0
- data/spec/helpers/spotlight/languages_helper_spec.rb +1 -0
- data/spec/lib/spotlight/controller_spec.rb +2 -2
- data/spec/models/sir_trevor_rails/blocks/solr_documents_block_spec.rb +38 -0
- data/spec/models/spotlight/access_controls_enforcement_search_builder_spec.rb +7 -6
- data/spec/models/spotlight/analytics/ga_spec.rb +16 -1
- data/spec/models/spotlight/contact_form_spec.rb +37 -5
- data/spec/models/spotlight/exhibit_spec.rb +8 -4
- data/spec/presenters/spotlight/iiif_manifest_presenter_spec.rb +4 -0
- data/spec/routing/spotlight/exhibit_catalog_spec.rb +15 -11
- data/spec/serializers/spotlight/exhibit_export_serializer_spec.rb +60 -0
- data/spec/test_app_templates/Gemfile.extra +3 -0
- data/spec/test_app_templates/catalog_controller.rb +4 -0
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +2 -2
- data/spec/views/shared/_header_navbar.html.erb_spec.rb +1 -1
- data/spec/views/shared/_masthead.html.erb_spec.rb +1 -1
- data/spec/views/{_user_util_links.html.erb_spec.rb → shared/_user_util_links.html.erb_spec.rb} +1 -1
- data/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/about_pages/index.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/browse/_search.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb +2 -13
- data/spec/views/spotlight/browse/show.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/catalog/admin.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/dashboards/_reindexing_activity.html.erb_spec.rb +5 -5
- data/spec/views/spotlight/dashboards/analytics.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/exhibits/_exhibit_card_front.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/exhibits/edit.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/exhibits/index.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/feature_pages/_sidebar.html.erb_spec.rb +7 -7
- data/spec/views/spotlight/metadata_configurations/_metadata_field.html.erb_spec.rb +3 -2
- data/spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb +2 -1
- data/spec/views/spotlight/pages/index.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/pages/show.html.erb_spec.rb +3 -3
- data/spec/views/spotlight/searches/_search.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/searches/edit.html.erb_spec.rb +3 -3
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_carousel_block.html.erb_spec.rb +3 -3
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_features_block.html.erb_spec.rb +2 -2
- data/spec/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb_spec.rb +1 -1
- data/spec/views/spotlight/translations/_page.html.erb_spec.rb +2 -2
- data/vendor/assets/javascripts/bootstrap-tagsinput.js +1 -1
- data/vendor/assets/stylesheets/sir-trevor/_variables.scss +15 -8
- metadata +31 -28
- data/app/assets/stylesheets/spotlight/_navbar.scss +0 -48
- data/app/views/_user_util_links.html.erb +0 -50
- data/app/views/shared/_modal.html.erb +0 -6
@@ -1,17 +1,17 @@
|
|
1
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
2
4
|
|
3
|
-
|
4
|
-
<%= curation_page_title %>
|
5
|
+
<%= curation_page_title %>
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
<div class="reindexingHistory clearfix mb-4">
|
8
|
+
<%= render 'reindexing_activity' %>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="pageHistory clearfix mb-4">
|
12
|
+
<%= render 'page_activity' %>
|
13
|
+
</div>
|
9
14
|
|
10
|
-
|
11
|
-
|
12
|
-
</div>
|
13
|
-
|
14
|
-
<div class="updatedItems clearfix">
|
15
|
-
<%= render 'solr_document_activity' %>
|
16
|
-
</div>
|
15
|
+
<div class="updatedItems clearfix mb-4">
|
16
|
+
<%= render 'solr_document_activity' %>
|
17
17
|
</div>
|
@@ -1,10 +1,9 @@
|
|
1
1
|
<div class="confirmation-status <%= 'not-validated' unless contact_email.confirmed? or contact_email.recently_sent? %>">
|
2
2
|
<% if contact_email.confirmed? %>
|
3
|
-
<span class="confirmed"
|
3
|
+
<span class="confirmed"><%= blacklight_icon('check_circle') %> <%= t('.confirmed') %></span>
|
4
4
|
<% elsif contact_email.recently_sent? %>
|
5
|
-
<span class="confirmed"
|
5
|
+
<span class="confirmed"><%= blacklight_icon('check_circle') %> <%= t('.confirmation_sent') %></span>
|
6
6
|
<% else %>
|
7
|
-
<span class="unconfirmed"
|
7
|
+
<span class="unconfirmed"><%= blacklight_icon('error') %> <%= t('.not_validated') %></span> <%= link_to t('.resend'), contact_email_confirmation_path(contact_email: {email: contact_email.email}), method: :post %>
|
8
8
|
<% end %>
|
9
9
|
</div>
|
10
|
-
|
@@ -3,16 +3,16 @@
|
|
3
3
|
<div class="col-md-8<%= ' has-error' if contact.object.errors[:email].present? %>">
|
4
4
|
<%= text_field_tag "#{contact.object_name}[email]", contact.object.email, class: 'exhibit-contact form-control' %>
|
5
5
|
<% if contact.object.errors[:email].present? %>
|
6
|
-
<
|
6
|
+
<small class="form-text text-muted"><%=contact.object.errors[:email].join(", ".html_safe) %></small>
|
7
7
|
<% end %>
|
8
8
|
<p>
|
9
|
-
<span class="contact-email-delete-error text-danger
|
9
|
+
<span class="contact-email-delete-error text-danger bg-danger" style="display: none;"><%= t('.email_delete_error') %> <span class="error-msg"></span></span>
|
10
10
|
</p>
|
11
11
|
</div>
|
12
12
|
<div class="col-md-4">
|
13
13
|
<% if contact.object.id %>
|
14
14
|
<span class="contact-email-delete-wrapper">
|
15
|
-
<%= link_to exhibit_contact_email_path(exhibit_id: exhibit.id, id: contact.object.id), class: 'contact-email-delete btn btn-
|
15
|
+
<%= link_to exhibit_contact_email_path(exhibit_id: exhibit.id, id: contact.object.id), class: 'contact-email-delete btn btn-sm btn-danger', method: :delete, data: { confirm: t('.email_delete_confirmation'), remote: true } do %>
|
16
16
|
<%= t('.email_delete_button') %>
|
17
17
|
<% end %>
|
18
18
|
</span>
|
@@ -1,9 +1,11 @@
|
|
1
1
|
<div role="tabpanel" class="tab-pane" id="delete">
|
2
|
-
<div class="
|
3
|
-
<h4><%= t(:".heading") %></h4>
|
4
|
-
<
|
5
|
-
|
6
|
-
|
2
|
+
<div class="alert alert-danger">
|
3
|
+
<h4 class="alert-heading"><%= t(:".heading") %></h4>
|
4
|
+
<div class="row">
|
5
|
+
<p class='col-9'><%= t(:".warning_html", export_link: link_to(t(:'spotlight.exhibits.export.download'), spotlight.import_exhibit_path(current_exhibit))) %></p>
|
6
|
+
<div class='col-3'>
|
7
|
+
<%= delete_link current_exhibit, class: 'btn btn-secondary' %>
|
8
|
+
</div>
|
7
9
|
</div>
|
8
10
|
</div>
|
9
11
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<div class="col-
|
1
|
+
<div class="col-12 col-sm-6 col-md-4 exhibit-card">
|
2
2
|
<div class="flipper">
|
3
3
|
<div class="card-front card-face">
|
4
4
|
<%= render 'exhibit_card_front', exhibit: exhibit %>
|
@@ -7,4 +7,4 @@
|
|
7
7
|
<%= render 'exhibit_card_back', exhibit: exhibit %>
|
8
8
|
</div>
|
9
9
|
</div>
|
10
|
-
</div>
|
10
|
+
</div>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<% unless exhibit.published? %>
|
8
|
-
<div class="
|
8
|
+
<div class="badge badge-warning unpublished"><%= t('.unpublished') %></div>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<h2 class="card-title"><%= exhibit.title %></h2>
|
11
|
+
<h2 class="exhibit-card-title"><%= exhibit.title %></h2>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= bootstrap_form_for @exhibit, url: ((spotlight.exhibit_path(@exhibit) if @exhibit.persisted?) || spotlight.exhibits_path), layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10', html: {class: "row"} do |f| %>
|
2
|
-
<div class="
|
2
|
+
<div class="col-md-12">
|
3
3
|
<%= f.text_field :title, disabled: !default_language?, help: !default_language? ? t('.uneditable_non_default_language') : '' %>
|
4
4
|
<%= f.text_field :subtitle %>
|
5
5
|
<%= f.text_area :description %>
|
@@ -9,15 +9,15 @@
|
|
9
9
|
<%= render partial: 'contact', locals: {exhibit: @exhibit, contact: contact} %>
|
10
10
|
<% end %>
|
11
11
|
<span id='another-email' class="btn btn-sm btn-info"><%= t('.add_contact_email_button') %></span>
|
12
|
-
<
|
12
|
+
<small class="form-text text-muted"><%= t(:'.fields.contact_emails.help_block') %></small>
|
13
13
|
<% end %>
|
14
14
|
<%= f.form_group :published, label: { text: nil, class: nil }, help: nil do %>
|
15
15
|
<%= f.check_box :published, label: "" %>
|
16
|
-
<
|
16
|
+
<small class="form-text text-muted"><%= t(:'.fields.published.help_block') %></small>
|
17
17
|
<% end %>
|
18
|
-
|
18
|
+
|
19
19
|
<div class="form-actions">
|
20
|
-
|
20
|
+
|
21
21
|
<div class="primary-actions">
|
22
22
|
<%= f.submit nil, class: 'btn btn-primary' %>
|
23
23
|
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<%= f.submit nil, class: 'btn btn-primary' %>
|
10
10
|
<% end %>
|
11
11
|
|
12
|
-
<h3><%= t :'spotlight.exhibits.languages.current_header' %></h3>
|
12
|
+
<h3 class="mt-4"><%= t :'spotlight.exhibits.languages.current_header' %></h3>
|
13
13
|
|
14
14
|
<% if current_exhibit.languages.any? && current_exhibit.languages.last.persisted? %>
|
15
15
|
<p class="instructions"><%= t :'spotlight.exhibits.languages.current_instructions' %></p>
|
@@ -36,7 +36,7 @@
|
|
36
36
|
<%= languages.check_box_without_bootstrap :public %>
|
37
37
|
</div>
|
38
38
|
</td>
|
39
|
-
<td class='text-center'><%= link_to t('.remove'), exhibit_language_path(current_exhibit, language), method: :delete, data: { confirm: t('.modal.confirm') }, class: 'btn btn-sm btn-
|
39
|
+
<td class='text-center'><%= link_to t('.remove'), exhibit_language_path(current_exhibit, language), method: :delete, data: { confirm: t('.modal.confirm') }, class: 'btn btn-sm btn-danger' %></td>
|
40
40
|
</tr>
|
41
41
|
<% end %>
|
42
42
|
<% end %>
|
@@ -1,5 +1,4 @@
|
|
1
1
|
<%= bootstrap_form_for @exhibit, url: ((spotlight.exhibit_path(@exhibit) if @exhibit.persisted?) || spotlight.exhibits_path), layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10' do |f| %>
|
2
|
-
<div class="row col-md-12">
|
3
2
|
<%= f.text_field :title, label: t(:'.fields.title.label'), help: t(:'.fields.title.help_block') %>
|
4
3
|
<%= f.text_field :slug, label: t(:'.fields.slug.label'), help: t(:'.fields.slug.help_block') %>
|
5
4
|
<%= f.text_field :tag_list %>
|
@@ -11,5 +10,4 @@
|
|
11
10
|
<%= f.submit nil, class: 'btn btn-primary' %>
|
12
11
|
</div>
|
13
12
|
</div>
|
14
|
-
</div>
|
15
13
|
<% end %>
|
@@ -1,46 +1,47 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
<% content_for(:sidebar) do %>
|
2
|
+
<%= render 'spotlight/shared/exhibit_sidebar' %>
|
3
|
+
<% end %>
|
4
|
+
|
5
|
+
<%= configuration_page_title %>
|
6
|
+
<div role="tabpanel">
|
7
|
+
<ul class="nav nav-tabs" role="tablist">
|
8
|
+
<li role="presentation" class="nav-item">
|
9
|
+
<a href="#basic" aria-controls="basic" role="tab" data-toggle="tab" class="nav-link <%= 'active' if @tab.blank? %>"><%= t(:'.basic_settings.heading') %></a>
|
10
|
+
</li>
|
11
|
+
<% if can? :manage, current_exhibit.languages.first_or_initialize %>
|
12
|
+
<li role="presentation" class="nav-item">
|
13
|
+
<a href="#language" aria-controls="language" role="tab" data-toggle="tab" class="nav-link <%= 'active' if @tab == 'language' %>"><%= t(:'spotlight.exhibits.languages.heading') %></a>
|
8
14
|
</li>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
</ul>
|
35
|
-
<div class="tab-content">
|
36
|
-
<div role="tabpanel" class="tab-pane <%= 'active' if @tab.blank? %>" id="basic">
|
37
|
-
<%= render 'form' %>
|
38
|
-
</div>
|
39
|
-
<%= render 'languages' if can? :manage, current_exhibit.languages.first_or_initialize %>
|
40
|
-
<%= render 'spotlight/filters/form' if can? :edit, current_exhibit.filters.first_or_initialize %>
|
41
|
-
<%= render 'import' if can? :import, current_exhibit %>
|
42
|
-
<%= render 'export' if can? :export, current_exhibit %>
|
43
|
-
<%= render 'delete' if can? :destroy, current_exhibit %>
|
15
|
+
<% end %>
|
16
|
+
<% if can? :edit, current_exhibit.filters.first_or_initialize %>
|
17
|
+
<li role="presentation" class="nav-item">
|
18
|
+
<a href="#filter" aria-controls="filter" role="tab" data-toggle="tab" class="nav-link <%= 'active' if @tab == 'filter' %>"><%= t(:'spotlight.exhibits.filter.heading') %></a>
|
19
|
+
</li>
|
20
|
+
<% end %>
|
21
|
+
<% if can? :import, current_exhibit %>
|
22
|
+
<li role="presentation" class="nav-item">
|
23
|
+
<a href="#import" aria-controls="import" role="tab" data-toggle="tab" class="nav-link <%= 'active' if @tab == 'import' %>"><%= t(:'spotlight.exhibits.import.heading') %></a>
|
24
|
+
</li>
|
25
|
+
<% end %>
|
26
|
+
<% if can? :export, current_exhibit %>
|
27
|
+
<li role="presentation" class="nav-item">
|
28
|
+
<a href="#export" aria-controls="export" role="tab" data-toggle="tab" class="nav-link <%= 'active' if @tab == 'import' %>"><%= t(:'spotlight.exhibits.export.heading') %></a>
|
29
|
+
</li>
|
30
|
+
<% end %>
|
31
|
+
<% if can? :destroy, current_exhibit %>
|
32
|
+
<li role="presentation" class="nav-item">
|
33
|
+
<a href="#delete" aria-controls="delete" role="tab" data-toggle="tab" class="nav-link"><%= t(:'spotlight.exhibits.delete.heading') %></a>
|
34
|
+
</li>
|
35
|
+
<% end %>
|
36
|
+
</ul>
|
37
|
+
<div class="tab-content">
|
38
|
+
<div role="tabpanel" class="tab-pane <%= 'active' if @tab.blank? %>" id="basic">
|
39
|
+
<%= render 'form' %>
|
44
40
|
</div>
|
41
|
+
<%= render 'languages' if can? :manage, current_exhibit.languages.first_or_initialize %>
|
42
|
+
<%= render 'spotlight/filters/form' if can? :edit, current_exhibit.filters.first_or_initialize %>
|
43
|
+
<%= render 'import' if can? :import, current_exhibit %>
|
44
|
+
<%= render 'export' if can? :export, current_exhibit %>
|
45
|
+
<%= render 'delete' if can? :destroy, current_exhibit %>
|
45
46
|
</div>
|
46
47
|
</div>
|
@@ -1,50 +1,49 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<% end %>
|
1
|
+
<% if (current_user && current_user.exhibits.any?) || can?(:manage, Spotlight::Exhibit) %>
|
2
|
+
<ul class="nav nav-tabs" role="tablist">
|
3
|
+
<li role="presentation" class="nav-item"><a href="#published" aria-controls="published" role="tab" data-toggle="tab" class="nav-link active"><%= t('.published') %></a></li>
|
4
|
+
<% if can?(:manage, Spotlight::Exhibit) && @exhibits.unpublished.accessible_by(current_ability).any? %>
|
5
|
+
<li role="presentation" class="nav-item"><a href="#unpublished" aria-controls="unpublished" role="tab" data-toggle="tab" class="nav-link"><%= t('.unpublished') %></a></li>
|
6
|
+
<% end %>
|
7
|
+
<% if current_user && current_user.exhibits.any? %>
|
8
|
+
<li role="presentation" class="nav-item"><a href="#user" aria-controls="user" role="tab" data-toggle="tab" class="nav-link"><%= t('.user') %></a></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
<% end %>
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
<div class="tab-content">
|
14
|
+
<div role="tabpanel" class="tab-pane active" id="published">
|
15
|
+
<% if @exhibits.published.none? %>
|
16
|
+
<%= render 'missing_exhibits' %>
|
17
|
+
<% else %>
|
18
|
+
<%= render 'tags', tags: @exhibits.published.all_tags %>
|
19
|
+
<%= render 'exhibits', exhibits: @published_exhibits %>
|
21
20
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
<% end %>
|
21
|
+
<% if @published_exhibits.total_count > @published_exhibits.size %>
|
22
|
+
<nav>
|
23
|
+
<ul class="pager">
|
24
|
+
<li><%= link_to_previous_page @published_exhibits, t('views.pagination.previous').html_safe %></li>
|
25
|
+
<li><%= link_to_next_page @published_exhibits, t('views.pagination.next').html_safe %></li>
|
26
|
+
</ul>
|
27
|
+
</nav>
|
30
28
|
<% end %>
|
31
|
-
|
32
|
-
</div>
|
33
|
-
|
34
|
-
<% if @exhibits.unpublished.accessible_by(current_ability).any? %>
|
35
|
-
<div role="tabpanel" class="tab-pane" id="unpublished">
|
36
|
-
<%= render 'exhibits', exhibits: @exhibits.unpublished.ordered_by_weight.accessible_by(current_ability) %>
|
37
|
-
</div>
|
38
29
|
<% end %>
|
39
30
|
|
40
|
-
<% if current_user && current_user.exhibits.any? %>
|
41
|
-
<div role="tabpanel" class="tab-pane" id="user">
|
42
|
-
<%= render 'exhibits', exhibits: current_user.exhibits %>
|
43
|
-
</div>
|
44
|
-
<% end %>
|
45
31
|
</div>
|
32
|
+
|
33
|
+
<% if @exhibits.unpublished.accessible_by(current_ability).any? %>
|
34
|
+
<div role="tabpanel" class="tab-pane" id="unpublished">
|
35
|
+
<%= render 'exhibits', exhibits: @exhibits.unpublished.ordered_by_weight.accessible_by(current_ability) %>
|
36
|
+
</div>
|
37
|
+
<% end %>
|
38
|
+
|
39
|
+
<% if current_user && current_user.exhibits.any? %>
|
40
|
+
<div role="tabpanel" class="tab-pane" id="user">
|
41
|
+
<%= render 'exhibits', exhibits: current_user.exhibits %>
|
42
|
+
</div>
|
43
|
+
<% end %>
|
46
44
|
</div>
|
47
45
|
|
48
|
-
|
46
|
+
<% content_for(:sidebar_position) { 'order-last' } %>
|
47
|
+
<% content_for(:sidebar) do %>
|
49
48
|
<%= render "shared/site_sidebar" %>
|
50
|
-
|
49
|
+
<% end %>
|
@@ -1,8 +1,7 @@
|
|
1
|
-
<div id="content" class="col-md-9 exhibit-admin">
|
2
1
|
<%= page_title t(:'spotlight.sites.new.section') %>
|
3
2
|
<%= render 'new_exhibit_form' %>
|
4
|
-
</div>
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
<% content_for(:sidebar_position) { 'order-last' } %>
|
5
|
+
<% content_for(:sidebar) do %>
|
6
|
+
<%= render 'shared/site_sidebar' %>
|
7
|
+
<% end %>
|
@@ -2,20 +2,18 @@
|
|
2
2
|
<% page = p.object %>
|
3
3
|
<div class="home_page">
|
4
4
|
<h3><%= t('spotlight.pages.index.feature_pages.home_pages_header') %></h3>
|
5
|
-
<div class="
|
6
|
-
<div class="
|
7
|
-
<div class="
|
8
|
-
|
9
|
-
|
10
|
-
<
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<%= exhibit_edit_link page, edit_exhibit_home_page_path(page.exhibit), class: 'btn btn-link', data: { turbolinks: false } %>
|
18
|
-
</div>
|
5
|
+
<div class="card container">
|
6
|
+
<div class="card-body bg-light page main row">
|
7
|
+
<div class="col-sm-8">
|
8
|
+
<%= p.hidden_field :id, value: page.id , class: 'form-control form-control-sm' %>
|
9
|
+
<h3 class="h6 card-title" data-in-place-edit-target=".edit-in-place" data-in-place-edit-field-target="[data-edit-field-target='true']">
|
10
|
+
<a href="#edit-in-place" class="field-label edit-in-place"><%= page.title %></a>
|
11
|
+
<%= p.hidden_field :title, value: page.title , class: 'form-control form-control-sm title-field', data: {:"edit-field-target" => 'true'} %>
|
12
|
+
</h3>
|
13
|
+
</div>
|
14
|
+
<div class="col-sm-4 page-links">
|
15
|
+
<%= exhibit_view_link page, exhibit_root_path(page.exhibit), class: 'btn btn-link' %> ·
|
16
|
+
<%= exhibit_edit_link page, edit_exhibit_home_page_path(page.exhibit), class: 'btn btn-link', data: { turbolinks: false } %>
|
19
17
|
</div>
|
20
18
|
</div>
|
21
19
|
</div>
|
@@ -1,9 +1,8 @@
|
|
1
1
|
<% cache_unless current_user, [current_exhibit, @page] do %>
|
2
|
-
<
|
3
|
-
<ol class="nav sidenav">
|
2
|
+
<ol class="nav sidenav flex-column">
|
4
3
|
<% @exhibit.feature_pages.for_locale.published.at_top_level.each do |feature_section| %>
|
5
4
|
<li class="<%= 'active' if current_page? [spotlight, @exhibit, feature_section] %>">
|
6
|
-
|
5
|
+
<%= link_to_unless_current feature_section.title, [spotlight, @exhibit, feature_section] %>
|
7
6
|
<ol class="subsection">
|
8
7
|
<% feature_section.child_pages.published.each do |page| %>
|
9
8
|
<li class="<%= 'active' if current_page? [spotlight, @exhibit, page] %>"><%= link_to_unless_current page.title, [spotlight, @exhibit, page] %></li>
|
@@ -12,5 +11,4 @@
|
|
12
11
|
</li>
|
13
12
|
<% end %>
|
14
13
|
</ol>
|
15
|
-
</div>
|
16
14
|
<% end %>
|
@@ -8,17 +8,17 @@
|
|
8
8
|
<div>
|
9
9
|
<%= f.hidden_field(:document_global_id) %>
|
10
10
|
<div class="alert alert-danger" data-behavior="non-iiif-alert" role="alert" style="display:none;">
|
11
|
-
|
11
|
+
<%= blacklight_icon('warning') %>
|
12
12
|
<%= t(:'.non_iiif_alert_html') %>
|
13
13
|
</div>
|
14
|
-
<%= text_field_tag(:document_title, (presenter(f.object.document).
|
14
|
+
<%= text_field_tag(:document_title, (presenter(f.object.document).heading if f.object.document), class: "form-control", data: { input_select_target: "##{form_prefix(f)}_source_exhibit", 'behavior': 'autocomplete', featured_image_typeahead: true, target_panel: "##{form_prefix(f)}-target-panel", :'id-field' => "##{form_prefix(f)}_document_global_id" }) %>
|
15
15
|
<div id="<%= form_prefix(f) %>-target-panel" style="display:none">
|
16
|
-
<div class="
|
16
|
+
<div class="card-header">
|
17
17
|
<div data-item-title="true"></div>
|
18
18
|
<div data-panel-image-pagination="true"></div>
|
19
19
|
</div>
|
20
20
|
</div>
|
21
|
-
<
|
21
|
+
<small class="form-text text-muted"><%= t(:'.source.exhibit.help') %></small>
|
22
22
|
</div>
|
23
23
|
</div>
|
24
24
|
<div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div role="tabpanel" class="tab-pane <%= 'active' if @tab == 'filter' %>" id="filter">
|
2
|
-
<%= bootstrap_form_for [@exhibit, @exhibit.filters.first_or_initialize], layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10'
|
2
|
+
<%= bootstrap_form_for [@exhibit, @exhibit.filters.first_or_initialize], layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10' do |f| %>
|
3
3
|
<p class="instructions"><%= t :'spotlight.exhibits.filter.instructions' %></p>
|
4
4
|
|
5
5
|
<%= f.text_field :field %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= exhibit_edit_link @page, edit_exhibit_home_page_path(@page.exhibit), class: 'edit-button
|
1
|
+
<%= exhibit_edit_link @page, edit_exhibit_home_page_path(@page.exhibit), class: 'edit-button float-right btn btn-primary', data: { turbolinks: false } %>
|