blacklight-spotlight 3.0.0.alpha.3 → 3.0.0.alpha.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/blacklight/highlight_off.svg +1 -0
  3. data/app/assets/stylesheets/spotlight/_blacklight_configuration.scss +3 -3
  4. data/app/assets/stylesheets/spotlight/_bootstrap_overrides.scss +19 -23
  5. data/app/assets/stylesheets/spotlight/_browse.scss +22 -13
  6. data/app/assets/stylesheets/spotlight/_catalog.scss +2 -2
  7. data/app/assets/stylesheets/spotlight/_curation.scss +5 -3
  8. data/app/assets/stylesheets/spotlight/_exhibits_index.scss +14 -1
  9. data/app/assets/stylesheets/spotlight/_featured_browse_categories_block.scss +5 -5
  10. data/app/assets/stylesheets/spotlight/_header.scss +14 -6
  11. data/app/assets/stylesheets/spotlight/_multi_image_selector.scss +1 -1
  12. data/app/assets/stylesheets/spotlight/_multi_up_item_grid.scss +3 -3
  13. data/app/assets/stylesheets/spotlight/_pages.scss +23 -16
  14. data/app/assets/stylesheets/spotlight/_sir-trevor_overrides.scss +3 -4
  15. data/app/assets/stylesheets/spotlight/_slideshow_block.scss +1 -0
  16. data/app/assets/stylesheets/spotlight/_spotlight.scss +0 -1
  17. data/app/assets/stylesheets/spotlight/_translations.scss +6 -6
  18. data/app/assets/stylesheets/spotlight/_utilities.scss +4 -0
  19. data/app/controllers/spotlight/translations_controller.rb +9 -1
  20. data/app/helpers/spotlight/pages_helper.rb +2 -1
  21. data/app/models/spotlight/field_metadata.rb +1 -2
  22. data/app/views/shared/_masthead.html.erb +13 -11
  23. data/app/views/spotlight/about_pages/_contact.html.erb +3 -3
  24. data/app/views/spotlight/about_pages/_contact_properties.html.erb +1 -1
  25. data/app/views/spotlight/admin_users/index.html.erb +77 -71
  26. data/app/views/spotlight/browse/_search_box.html.erb +1 -1
  27. data/app/views/spotlight/browse/show.html.erb +23 -26
  28. data/app/views/spotlight/catalog/_edit_default.html.erb +1 -1
  29. data/app/views/spotlight/catalog/_index_compact_default.html.erb +2 -2
  30. data/app/views/spotlight/contacts/_form.html.erb +1 -1
  31. data/app/views/spotlight/custom_fields/_form.html.erb +2 -2
  32. data/app/views/spotlight/custom_fields/form_group/_text.html.erb +2 -2
  33. data/app/views/spotlight/custom_fields/form_group/_vocab.html.erb +2 -2
  34. data/app/views/spotlight/custom_search_fields/_form.html.erb +1 -1
  35. data/app/views/spotlight/dashboards/_page.html.erb +4 -4
  36. data/app/views/spotlight/exhibits/_exhibit_card_back.html.erb +2 -2
  37. data/app/views/spotlight/feature_pages/_header.html.erb +2 -2
  38. data/app/views/spotlight/metadata_configurations/edit.html.erb +2 -2
  39. data/app/views/spotlight/pages/_form.html.erb +1 -1
  40. data/app/views/spotlight/pages/_page.html.erb +3 -3
  41. data/app/views/spotlight/roles/index.html.erb +2 -2
  42. data/app/views/spotlight/search_configurations/_facet_metadata.html.erb +0 -5
  43. data/app/views/spotlight/search_configurations/_facets.html.erb +3 -3
  44. data/app/views/spotlight/search_configurations/_search_fields.html.erb +2 -2
  45. data/app/views/spotlight/searches/_form.html.erb +2 -2
  46. data/app/views/spotlight/shared/_report_a_problem.html.erb +1 -1
  47. data/app/views/spotlight/sir_trevor/blocks/_oembed_block.html.erb +1 -1
  48. data/app/views/spotlight/sir_trevor/blocks/_quote_block.html.erb +4 -4
  49. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_block.html.erb +1 -1
  50. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_embed_block.html.erb +1 -1
  51. data/app/views/spotlight/sir_trevor/blocks/_solr_documents_grid_block.html.erb +1 -1
  52. data/app/views/spotlight/sir_trevor/blocks/_uploaded_items_block.html.erb +1 -1
  53. data/app/views/spotlight/translations/_search_fields.html.erb +1 -1
  54. data/app/views/spotlight/translations/edit.html.erb +1 -1
  55. data/lib/generators/spotlight/install_generator.rb +6 -2
  56. data/lib/generators/spotlight/templates/config/initializers/oembed.rb +4 -0
  57. data/lib/spotlight/engine.rb +0 -5
  58. data/lib/spotlight/version.rb +1 -1
  59. data/spec/controllers/spotlight/translations_controller_spec.rb +8 -0
  60. data/spec/examples.txt +6 -7
  61. data/spec/features/javascript/search_config_admin_spec.rb +1 -1
  62. data/spec/helpers/spotlight/pages_helper_spec.rb +6 -0
  63. data/spec/models/spotlight/field_metadata_spec.rb +0 -7
  64. data/spec/test_app_templates/Gemfile.extra +0 -1
  65. data/spec/views/spotlight/search_configurations/_facet_metadata.html.erb_spec.rb +0 -1
  66. data/vendor/assets/stylesheets/sir-trevor/_variables.scss +0 -8
  67. data/vendor/assets/stylesheets/sir-trevor/block-controls.scss +0 -4
  68. metadata +4 -6
  69. data/app/assets/images/blacklight/remove_circle_outline.svg +0 -1
  70. data/app/views/spotlight/browse/_sort_and_per_page.html.erb +0 -5
  71. data/spec/views/spotlight/browse/_sort_and_per_page.html.erb_spec.rb +0 -12
@@ -13,8 +13,8 @@
13
13
  }
14
14
 
15
15
  .content-block {
16
- margin-top: 3*$padding-large-vertical;
17
- margin-bottom: 3*$padding-large-vertical;
16
+ margin-top: 3*$spacer;
17
+ margin-bottom: 3*$spacer;
18
18
  }
19
19
 
20
20
  // Sir-trevor sets the overflow to hidden which
@@ -76,10 +76,9 @@
76
76
  .st-block-controls__button {
77
77
  @extend .btn;
78
78
  @extend .btn-secondary;
79
+ @extend .btn-outline-secondary;
79
80
 
80
- background-color: theme-colors("secondary");
81
81
  border: 1px solid $gray-700;
82
- color: theme-colors("light");
83
82
 
84
83
  .st-icon {
85
84
  margin-left: auto;
@@ -70,6 +70,7 @@
70
70
  margin: 0;
71
71
  border: none;
72
72
  border-radius: 0;
73
+ opacity: 1;
73
74
 
74
75
  @extend .list-group-item;
75
76
  }
@@ -5,7 +5,6 @@
5
5
  @import "spotlight/sir-trevor_overrides";
6
6
  @import "spotlight/attachments";
7
7
  @import "spotlight/pages";
8
- @import 'blacklight_gallery/default';
9
8
  @import "spotlight/browse";
10
9
  @import "spotlight/header";
11
10
  @import "spotlight/footer";
@@ -4,7 +4,7 @@
4
4
  }
5
5
 
6
6
  .browse-category-title {
7
- margin-bottom: $padding-base-vertical;
7
+ margin-bottom: $spacer;
8
8
 
9
9
  label {
10
10
  font-weight: normal;
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .browse-category-description {
15
- margin-bottom: $padding-large-vertical * 2;
15
+ margin-bottom: $spacer * 2;
16
16
  }
17
17
 
18
18
  .table.table-striped th {
@@ -28,11 +28,11 @@
28
28
 
29
29
  .form-group.translation-form {
30
30
  .col-form-label {
31
- padding-top: $card-spacer-y + $padding-base-vertical;
31
+ padding-top: $card-spacer-y + $spacer;
32
32
  }
33
33
 
34
34
  .translation-complete {
35
- padding-top: $card-spacer-y + $padding-base-vertical;
35
+ padding-top: $card-spacer-y + $spacer;
36
36
  }
37
37
  }
38
38
 
@@ -73,7 +73,7 @@
73
73
  display: block;
74
74
  font-size: $h4-font-size;
75
75
  font-weight: bold;
76
- margin-bottom: $padding-large-vertical * 2;
77
- margin-top: $padding-large-vertical;
76
+ margin-bottom: $spacer * 2;
77
+ margin-top: $spacer;
78
78
  padding-bottom: 3px;
79
79
  }
@@ -1,3 +1,7 @@
1
1
  .inline-block {
2
2
  display: inline-block;
3
3
  }
4
+
5
+ .btn-sizing {
6
+ @include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
7
+ }
@@ -7,7 +7,9 @@ module Spotlight
7
7
  before_action :authenticate_user!, :set_language, :set_tab
8
8
  load_and_authorize_resource :exhibit, class: Spotlight::Exhibit
9
9
 
10
- def edit; end
10
+ def edit
11
+ attach_breadcrumbs
12
+ end
11
13
 
12
14
  def update
13
15
  if current_exhibit.update(exhibit_params)
@@ -21,6 +23,12 @@ module Spotlight
21
23
 
22
24
  private
23
25
 
26
+ def attach_breadcrumbs
27
+ add_breadcrumb t(:'spotlight.exhibits.breadcrumb', title: @exhibit.title), @exhibit
28
+ add_breadcrumb t(:'spotlight.curation.sidebar.header'), exhibit_dashboard_path(@exhibit)
29
+ add_breadcrumb t(:'spotlight.curation.sidebar.translations')
30
+ end
31
+
24
32
  def exhibit_params
25
33
  params.require(:exhibit).permit(translations_attributes: %i[id locale key value])
26
34
  end
@@ -67,8 +67,9 @@ module Spotlight
67
67
  end
68
68
  end
69
69
 
70
+ # Insert soft breaks into email addresses so they wrap nicely
70
71
  def render_contact_email_address(address)
71
- mail_to address, address
72
+ mail_to address, sanitize(address).gsub(/([@\.])/, '\1<wbr />').html_safe
72
73
  end
73
74
 
74
75
  def configurations_for_current_page
@@ -19,8 +19,7 @@ module Spotlight
19
19
  def field(key)
20
20
  {
21
21
  document_count: document_counts.fetch(field_name(key), 0),
22
- value_count: terms.fetch(field_name(key), []).length,
23
- terms: terms.fetch(field_name(key), [])
22
+ value_count: terms.fetch(field_name(key), []).length
24
23
  }
25
24
  end
26
25
 
@@ -13,18 +13,20 @@
13
13
  <%= render 'shared/exhibit_navbar' if current_exhibit && resource_masthead? %>
14
14
 
15
15
  <div class="container site-title-container">
16
- <% if content_for? :masthead %>
17
- <h1 class="site-title h2">
18
- <%= content_for :masthead %>
19
- </h1>
20
- <% else %>
21
- <h1 class="site-title h2">
22
- <%= masthead_heading_content %>
23
- </h1>
24
- <% if masthead_subheading_content %>
25
- <small><%= masthead_subheading_content %></small>
16
+ <div class="site-title-wrapper">
17
+ <% if content_for? :masthead %>
18
+ <h1 class="site-title h2">
19
+ <%= content_for :masthead %>
20
+ </h1>
21
+ <% else %>
22
+ <h1 class="site-title h2">
23
+ <%= masthead_heading_content %>
24
+ </h1>
25
+ <% if masthead_subheading_content %>
26
+ <small><%= masthead_subheading_content %></small>
27
+ <% end %>
26
28
  <% end %>
27
- <% end %>
29
+ </div>
28
30
  </div>
29
31
 
30
32
  <%= render 'shared/exhibit_navbar' if current_exhibit && !resource_masthead? %>
@@ -9,9 +9,9 @@
9
9
  <%= f.hidden_field :weight, data: {property: "weight"} %>
10
10
  <%= render partial: "contact_properties", locals: {contact: f.object} %>
11
11
  </div>
12
- <div class="contact-links">
13
- <%= exhibit_edit_link f.object, :class => 'btn btn-link' %> &middot;
14
- <%= exhibit_delete_link f.object, :class => 'btn btn-link' %>
12
+ <div class="contact-links page-links">
13
+ <%= exhibit_edit_link f.object %> &middot;
14
+ <%= exhibit_delete_link f.object %>
15
15
  </div>
16
16
  </div>
17
17
  </div>
@@ -1,6 +1,6 @@
1
1
  <div class="d-flex w-100">
2
2
  <%= image_tag contact.avatar.iiif_url, class: 'contact-photo', alt: '' if contact.avatar && contact.avatar.iiif_url.present? %>
3
- <div>
3
+ <div class="contact-properties">
4
4
  <div itemprop="name" class="name"><%= contact.name %></div>
5
5
  <% Spotlight::Contact.fields.each do |field, options| %>
6
6
  <% if (value = contact.contact_info[field]).present? %>
@@ -1,90 +1,96 @@
1
1
  <%= page_title(t('.section'), t('.page_title')) %>
2
2
  <%= bootstrap_form_for Spotlight::Engine.user_class.new, html: { class: 'admin-users' }, url: spotlight.admin_users_path do |f| %>
3
- <h3 class="instructions"><%= t :'.instructions' %></h3>
4
- <table class="table table-striped">
5
- <thead>
6
- <tr>
7
- <th><%= Spotlight::Engine.user_class.human_attribute_name(:email) %></th>
8
- </tr>
9
- </thead>
10
- <tbody class="table">
11
- <% @site.roles.map(&:user).each do |user| %>
3
+ <div class="mb-4">
4
+ <h3 class="instructions"><%= t :'.instructions' %></h3>
5
+ <table class="table table-striped">
6
+ <thead>
12
7
  <tr>
13
- <td class="<%= 'invite-pending' if user.invite_pending? %>">
14
- <%= user.email %>
15
- <span class='badge badge-warning pending-label'><%= t('.pending') %></span>
8
+ <th colspan="2"><%= Spotlight::Engine.user_class.human_attribute_name(:email) %></th>
9
+ </tr>
10
+ </thead>
11
+ <tbody class="table">
12
+ <% @site.roles.map(&:user).each do |user| %>
13
+ <tr>
14
+ <td class="<%= 'invite-pending' if user.invite_pending? %>">
15
+ <%= user.email %>
16
+ <span class='badge badge-warning pending-label'><%= t('.pending') %></span>
17
+ </td>
18
+ <td>
19
+ <%= link_to(t('.destroy'), admin_user_path(user), method: :delete, class: 'btn btn-sm btn-danger float-right') unless user == current_user %>
20
+ </td>
21
+ </tr>
22
+ <% end %>
23
+ <tr data-edit-for='new'>
24
+ <td>
25
+ <%= f.email_field :email, hide_label: true %>
26
+ <span data-user-role='admin'></span>
16
27
  </td>
17
28
  <td>
18
- <%= link_to(t('.destroy'), admin_user_path(user), method: :delete, class: 'btn btn-danger float-right') unless user == current_user %>
29
+ <div class="form-actions">
30
+ <div class="primary-actions">
31
+ <%= cancel_link f.object, '#', class: 'btn-sizing', data: { behavior: 'cancel-edit' } %>
32
+ <%= f.submit t('.save'), class: 'btn btn-primary'%>
33
+ </div>
34
+ </div>
19
35
  </td>
20
36
  </tr>
21
- <% end %>
22
- <tr data-edit-for='new'>
23
- <td>
24
- <%= f.email_field :email, hide_label: true %>
25
- <span data-user-role='admin'></span>
26
- </td>
27
- <td>
28
- <div class="form-actions">
29
- <div class="primary-actions">
30
- <%= cancel_link f.object, '#', class: 'btn btn-link', data: { behavior: 'cancel-edit' } %>
31
- <%= f.submit t('.save'), class: 'btn btn-primary'%>
32
- </div>
33
- </div>
34
- </td>
35
- </tr>
36
- <tr data-edit-for='new'>
37
- <td colspan='2'>
38
- </td>
39
- </tr>
40
- </tbody>
41
- </table>
37
+ <tr data-edit-for='new'>
38
+ <td colspan='2'>
39
+ </td>
40
+ </tr>
41
+ </tbody>
42
+ </table>
42
43
 
43
- <div class="form-actions">
44
- <div class="primary-actions">
45
- <%= link_to(t('.create'), 'javascript:;', class: 'btn btn-secondary', data: { behavior: 'new-user' }) %>
44
+ <div class="form-actions">
45
+ <div class="primary-actions">
46
+ <%= link_to(t('.create'), 'javascript:;', class: 'btn btn-secondary', data: { behavior: 'new-user' }) %>
47
+ </div>
46
48
  </div>
47
49
  </div>
48
50
 
49
- <h3 class="instructions"><%= t :'.admins_curators' %></h3>
50
- <div id="admins_curators" class="card card-body bg-light">
51
- <div class='btn-toolbar float-right'>
52
- <button class="btn btn-sm btn-secondary copy-email-addresses" data-clipboard-target="#admins_curators">
53
- <%= t('.copy') %>
54
- </button>
51
+ <div class="mb-4">
52
+ <h3 class="instructions"><%= t :'.admins_curators' %></h3>
53
+ <div id="admins_curators" class="card card-body bg-light">
54
+ <div class='btn-toolbar float-right'>
55
+ <button class="btn btn-sm btn-secondary copy-email-addresses" data-clipboard-target="#admins_curators">
56
+ <%= t('.copy') %>
57
+ </button>
58
+ </div>
59
+ <%= Spotlight::Engine.user_class.with_roles.pluck(:email).sort.join(', ') %>
55
60
  </div>
56
- <%= Spotlight::Engine.user_class.with_roles.pluck(:email).sort.join(', ') %>
57
61
  </div>
58
62
 
59
- <h3 class="instructions"><%= t :'.all_users' %></h3>
60
- <table class="table table-striped ">
61
- <thead>
62
- <tr>
63
- <th><%= Spotlight::Engine.user_class.human_attribute_name(:email) %></th>
64
- <th><%= Spotlight::Engine.user_class.human_attribute_name(:role) %></th>
65
- </tr>
66
- </thead>
67
- <tbody class="table">
68
- <% @users.each do |user| %>
63
+ <div class="mb-4">
64
+ <h3 class="instructions"><%= t :'.all_users' %></h3>
65
+ <table class="table table-striped ">
66
+ <thead>
69
67
  <tr>
70
- <td class="<%= 'invite-pending' if user.invite_pending? %>">
71
- <%= user.email %>
72
- <span class='badge badge-warning pending-label'><%= t('.pending') %></span>
73
- </td>
74
- <td class="role">
75
- <%= user.roles.map { |r| r.role.titleize }.uniq.join(", ") %>
76
- </td>
77
- <td class="text-right">
78
- <% if user.superadmin? %>
79
- <%= link_to(t('.destroy'), admin_user_path(user), method: :delete, class: 'btn btn-danger') unless user == current_user %>
80
- <% else %>
81
- <%= link_to(t('.update'), admin_user_path(user), method: :patch, class: 'btn btn-default') %>
82
- <% end %>
83
- </td>
68
+ <th><%= Spotlight::Engine.user_class.human_attribute_name(:email) %></th>
69
+ <th><%= Spotlight::Engine.user_class.human_attribute_name(:role) %></th>
84
70
  </tr>
85
- <% end %>
86
- </tbody>
87
- </table>
71
+ </thead>
72
+ <tbody class="table">
73
+ <% @users.each do |user| %>
74
+ <tr>
75
+ <td class="<%= 'invite-pending' if user.invite_pending? %>">
76
+ <%= user.email %>
77
+ <span class='badge badge-warning pending-label'><%= t('.pending') %></span>
78
+ </td>
79
+ <td class="role">
80
+ <%= user.roles.map { |r| r.role.titleize }.uniq.join(", ") %>
81
+ </td>
82
+ <td class="text-right">
83
+ <% if user.superadmin? %>
84
+ <%= link_to(t('.destroy'), admin_user_path(user), method: :delete, class: 'btn btn-sm btn-danger') unless user == current_user %>
85
+ <% else %>
86
+ <%= link_to(t('.update'), admin_user_path(user), method: :patch, class: 'btn btn-sm btn-secondary') %>
87
+ <% end %>
88
+ </td>
89
+ </tr>
90
+ <% end %>
91
+ </tbody>
92
+ </table>
93
+ </div>
88
94
  <% end %>
89
95
 
90
96
  <% content_for(:sidebar_position) { 'order-last' } %>
@@ -9,7 +9,7 @@
9
9
  <span class="input-group-btn input-group-append">
10
10
  <button class="btn btn-reset btn-sm" type="reset">
11
11
  <span class="sr-only"><%= t(:'.reset') %></span>
12
- <%= blacklight_icon('remove_circle_outline') %>
12
+ <%= blacklight_icon('highlight_off') %>
13
13
  </button>
14
14
  <button type="submit" class="btn btn-primary search-btn" id="browse-search">
15
15
  <span class="submit-search-text"><%= t(:'.submit') %></span>
@@ -1,30 +1,27 @@
1
1
  <% set_html_page_title @search.title %>
2
2
  <% render partial: 'tophat' %>
3
- <div class="col-md-12">
4
- <%= exhibit_edit_link @search, class: 'edit-button float-right btn btn-primary' if can? :edit, @search %>
5
- <% if resource_masthead? %>
6
- <% content_for :masthead do %>
7
- <%= render 'search_title', search: @search %>
8
- <% end %>
9
- <% else %>
10
- <h1><%= render 'search_title', search: @search %></h1>
11
- <% end %>
12
- <% if @search.long_description.present? %>
13
- <div class="long-description-text <%= 'very-long-description-text' if @search.long_description.length > 600 %>">
14
- <%= render_markdown @search.long_description %>
15
- </div>
16
- <% end %>
17
- </div>
18
3
 
19
- <div class="col-md-12">
20
- <%= render 'sort_and_per_page' %>
21
- <% if @search.search_box? %>
22
- <%= render partial: 'search_box', locals: {search: @search} %>
4
+ <%= exhibit_edit_link @search, class: 'edit-button float-right btn btn-primary' if can? :edit, @search %>
5
+ <% if resource_masthead? %>
6
+ <% content_for :masthead do %>
7
+ <%= render 'search_title', search: @search %>
23
8
  <% end %>
24
- <% if @search.default_index_view_type && params[:view].blank? %>
25
- <%= render_document_index_with_view(@search.default_index_view_type, @document_list) %>
26
- <% else %>
27
- <%= render_document_index(@document_list) %>
28
- <% end %>
29
- <%= render 'results_pagination' %>
30
- </div>
9
+ <% else %>
10
+ <h1><%= render 'search_title', search: @search %></h1>
11
+ <% end %>
12
+ <% if @search.long_description.present? %>
13
+ <div class="long-description-text <%= 'very-long-description-text' if @search.long_description.length > 600 %>">
14
+ <%= render_markdown @search.long_description %>
15
+ </div>
16
+ <% end %>
17
+
18
+ <%= render 'sort_and_per_page' %>
19
+ <% if @search.search_box? %>
20
+ <%= render partial: 'search_box', locals: {search: @search} %>
21
+ <% end %>
22
+ <% if @search.default_index_view_type && params[:view].blank? %>
23
+ <%= render_document_index_with_view(@search.default_index_view_type, @document_list) %>
24
+ <% else %>
25
+ <%= render_document_index(@document_list) %>
26
+ <% end %>
27
+ <%= render 'results_pagination' %>
@@ -18,7 +18,7 @@
18
18
  <% end %>
19
19
  <div class="form-actions">
20
20
  <div class="primary-actions">
21
- <%= cancel_link document, spotlight.polymorphic_path([current_exhibit, document]), class: 'btn btn-link' %>
21
+ <%= cancel_link document, spotlight.polymorphic_path([current_exhibit, document]) %>
22
22
  <%= f.submit nil, class: 'btn btn-primary' %>
23
23
  </div>
24
24
  </div>
@@ -6,8 +6,8 @@
6
6
  <%= render_document_partial document, 'admin_index_header', document_counter: document_counter %>
7
7
 
8
8
  <div class="page-links">
9
- <%= view_link document, url_for_document(document), class: 'btn btn-link' %> &middot;
10
- <%= exhibit_edit_link document, [:edit, current_exhibit, document], class: 'btn btn-link' %>
9
+ <%= view_link document, url_for_document(document) %> &middot;
10
+ <%= exhibit_edit_link document, [:edit, current_exhibit, document] %>
11
11
  </div>
12
12
  </td>
13
13
 
@@ -25,7 +25,7 @@
25
25
  <% end %>
26
26
 
27
27
  <div class="form-group primary-actions">
28
- <%= cancel_link @contact, exhibit_about_pages_path(@contact.exhibit), class: "btn btn-link" %>
28
+ <%= cancel_link @contact, exhibit_about_pages_path(@contact.exhibit) %>
29
29
  <%= f.submit nil, class: 'btn btn-primary' %>
30
30
  </div>
31
31
  <% end %>