hyrax 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97fb2ae450f3b4b0c85cfa72f4d05e02e02a628b
4
- data.tar.gz: 7500fb0e85e5171e2da86f75cd84b0109827f849
3
+ metadata.gz: ac7cd95127ab939b39d3876e7649754e8923ba68
4
+ data.tar.gz: ee582d21b75be19fa313d98adf812bc87e6a64f3
5
5
  SHA512:
6
- metadata.gz: c7da390ffaf5451e88d43261e4d61e9963677a80fa567d54d760c3158d218e2717fb9d65cf0de6915792416d8c5468448c08dfb1b0d64263fe8934f8212c5d12
7
- data.tar.gz: 65d79abe5721fa5c09bf574d086935edf50784f6908faaf6a1ea2daf71684adae7d7dbac84cc2243d96c53111dc60bf8985ee33cfd6e440aa0fcbba07014e2c7
6
+ metadata.gz: 20c7064951b8b10f45a66fb7a97542d27590308b0f875c72ced5001301929c9a323506ac03f95007f89975491484dee4e453b18703c801647a12e0ffb72a369b
7
+ data.tar.gz: bdbbc06ec054a31e7b96935c07198b2bcaf75a497fa0731be47495623de19978790cc9b2e28bd377d4c5ca2cbd05c2671a16283941baf1a6f523822edc78de4a
data/README.md CHANGED
@@ -62,7 +62,7 @@ The Samvera community is here to help. Please see our [support guide](./.github/
62
62
  # Getting started
63
63
 
64
64
  This document contains instructions specific to setting up an app with __Hyrax
65
- v2.2.2__. If you are looking for instructions on installing a different
65
+ v2.2.3__. If you are looking for instructions on installing a different
66
66
  version, be sure to select the appropriate branch or tag from the drop-down
67
67
  menu above.
68
68
 
@@ -161,7 +161,7 @@ NOTE: The steps need to be done in order to create a new Hyrax based app.
161
161
  Generate a new Rails application using the template.
162
162
 
163
163
  ```
164
- rails _5.1.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.2.2/template.rb
164
+ rails _5.1.6_ new my_app -m https://raw.githubusercontent.com/samvera/hyrax/v2.2.3/template.rb
165
165
  ```
166
166
 
167
167
  Generating a new Rails application using Hyrax's template above takes cares of a number of steps for you, including:
@@ -18,6 +18,8 @@ ol#featured_works {
18
18
 
19
19
  img {
20
20
  width: 90px;
21
+ float: left;
22
+ padding-right: 1em;
21
23
  }
22
24
 
23
25
  .main {
@@ -28,6 +30,10 @@ ol#featured_works {
28
30
  color: $gray;
29
31
  font-weight: bold;
30
32
  }
33
+
34
+ .featured-field {
35
+ padding-left: 90px;
36
+ }
31
37
  }
32
38
 
33
39
  .featured-researcher {
@@ -17,10 +17,16 @@
17
17
 
18
18
  img {
19
19
  width: 90px;
20
+ float: left;
21
+ padding-right: 1em;
20
22
  }
21
23
 
22
24
  .recent-label {
23
25
  color: $gray;
24
26
  font-weight: bold;
25
27
  }
28
+
29
+ .recent-field {
30
+ padding-left: 90px;
31
+ }
26
32
  }
@@ -4,13 +4,11 @@
4
4
  <tr>
5
5
  <td>
6
6
  <div class="media">
7
- <%= link_to [hyrax, collection], class: 'media-left', 'aria-hidden' => true do %>
8
- <%= render_thumbnail_tag collection, { class: 'hidden-xs file_listing_thumbnail' }, { suppress_link: true } %>
9
- <% end %>
10
7
  <div class="media-body">
11
8
  <div class="media-heading">
12
9
  <%= link_to [hyrax, collection] do %>
13
- <%= collection.title_or_label %>
10
+ <%= render_thumbnail_tag(collection, { class: 'hidden-xs file_listing_thumbnail' },
11
+ { suppress_link: true }) + collection.title_or_label %>
14
12
  <% end %>
15
13
  </div>
16
14
  </div>
@@ -1,12 +1,16 @@
1
1
  <div>
2
2
  <div class="featured-item-title">
3
3
  <span class="sr-only"><%= t('hyrax.homepage.featured_works.document.title_label') %></span>
4
- <h3><%= link_to featured.title.first, [main_app, featured] %></h3>
4
+ <h3>
5
+ <%= link_to [main_app, featured] do %>
6
+ <%= render_thumbnail_tag(featured, {width: 90}, {suppress_link: true}) + featured.title.first %>
7
+ <% end %>
8
+ </h3>
5
9
  </div>
6
- <div class="featured-item-depositor">
10
+ <div class="featured-field featured-item-depositor">
7
11
  <span class="featured-label"><%= t('hyrax.homepage.featured_works.document.depositor_label') %>:</span> <%= link_to_profile featured.depositor(t('hyrax.homepage.featured_works.document.depositor_missing')) %>
8
12
  </div>
9
- <div class="featured-item-keywords">
13
+ <div class="featured-field featured-item-keywords">
10
14
  <span class="featured-label"><%= t('hyrax.homepage.featured_works.document.keyword_label') %>:</span> <%= link_to_facet_list(featured.keyword, 'keyword', t('hyrax.homepage.featured_works.document.keyword_missing')) %>
11
15
  </div>
12
16
  </div>
@@ -1,16 +1,16 @@
1
1
  <li class="recent-item">
2
2
  <div class="row">
3
- <div class="col-sm-2">
4
- <%= link_to [main_app, recent_document] do %>
5
- <%= render_thumbnail_tag recent_document, suppress_link: true %>
6
- <% end %>
7
- </div>
8
- <div class="col-sm-10">
9
- <span class="sr-only"><%= t('hyrax.homepage.recently_uploaded.document.title_label') %></span><h3><%= link_to recent_document.to_s, [main_app, recent_document] %></h3>
10
- <p>
3
+ <div class="col-sm-12">
4
+ <span class="sr-only"><%= t('hyrax.homepage.recently_uploaded.document.title_label') %></span>
5
+ <h3>
6
+ <%= link_to [main_app, recent_document] do %>
7
+ <%= render_thumbnail_tag(recent_document, {width: 90}, {suppress_link: true}) + recent_document.to_s %>
8
+ <% end %>
9
+ </h3>
10
+ <p class="recent-field">
11
11
  <span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.depositor_label') %>:</span> <%= link_to_profile recent_document.depositor(t('hyrax.homepage.recently_uploaded.document.depositor_missing')) %>
12
12
  </p>
13
- <p>
13
+ <p class="recent-field">
14
14
  <span class="recent-label"><%= t('hyrax.homepage.recently_uploaded.document.keyword_label') %>:</span> <%= link_to_facet_list(recent_document.keyword, 'keyword', t('hyrax.homepage.recently_uploaded.document.keyword_missing')).html_safe %>
15
15
  </p>
16
16
  </div>
@@ -5,12 +5,7 @@
5
5
  <%= f.hidden_field :id %>
6
6
  <%= f.hidden_field :order, data: { property: "order" } %>
7
7
  <div class="main row">
8
- <div class="col-sm-3">
9
- <%= link_to [main_app, presenter] do %>
10
- <%= render_thumbnail_tag presenter, width: 90 %>
11
- <% end %>
12
- </div>
13
- <div class="col-sm-9">
8
+ <div class="col-sm-12">
14
9
  <% if can? :destroy, FeaturedWork %>
15
10
  <h3 class="pull-right">
16
11
  <%= link_to hyrax.featured_work_path(presenter, format: :json),
data/lib/hyrax/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Hyrax
2
- VERSION = '2.2.2'.freeze
2
+ VERSION = '2.2.3'.freeze
3
3
  end
@@ -24,7 +24,7 @@ RSpec.describe "hyrax/homepage/_featured_works.html.erb", type: :view do
24
24
 
25
25
  before do
26
26
  allow(view).to receive(:can?).with(:update, FeaturedWork).and_return(false)
27
- allow(view).to receive(:render_thumbnail_tag).with(presenter)
27
+ allow(view).to receive(:render_thumbnail_tag).with(presenter, any_args).and_return("thumbnail")
28
28
  allow(list).to receive(:empty?).and_return(false)
29
29
  allow(list).to receive(:featured_works).and_return([featured_work])
30
30
  allow(featured_work).to receive(:presenter).and_return(presenter)
data/template.rb CHANGED
@@ -1,4 +1,4 @@
1
- gem 'hyrax', '2.2.2'
1
+ gem 'hyrax', '2.2.3'
2
2
  run 'bundle install'
3
3
  generate 'hyrax:install', '-f'
4
4
  rails_command 'db:migrate'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2018-09-04 00:00:00.000000000 Z
17
+ date: 2018-09-07 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rails