from_hyrax 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a456ae00345fe94bd306dada4cbad8adb0b15d5711a36f4ca42f301fb95f73a
4
- data.tar.gz: bdba2ee1cda317be7785a03c34dfda8e02b44928fc48dd56f5bc30c660dcf2c2
3
+ metadata.gz: e286d5954d4a51100a4a74fe6942c08f4a1d4680e3dfd14975e8475af5ed4dcb
4
+ data.tar.gz: f81201be4ad0f828a7e7b5dab70ac6fbc27a7cf4bedf7690562da384c1b85c9f
5
5
  SHA512:
6
- metadata.gz: 5431fb3d21d357f88b5e54b5263f34f21830aaee235cbc7e41cf067d19e26fb22df3e49fe63bab7e98a855961e40582d87b7b8535da859db1c8639537bb2c9a5
7
- data.tar.gz: aa6c9bfa913f8e488a0ffa381208645bff700fe0b3c204f1b751019db79228062e47b261c7fd27b051228867b5fcafa142cfe1e324d04d8d730a3de008abfc32
6
+ metadata.gz: 7bd516ce63247af57f67ef212933551ee02ed334e168693ed39940091773add0222ec7df674522fda555dadb529838492d283c8154744c2f31343c2b31a11f6f
7
+ data.tar.gz: '008c46dfd73c82ee5ed95cc7e4ca64d1fab5d7456f6d0b409313f6ce7c8b962972c8e75ebe1a93aec839901cc17e72223deeb83f79c55fa59f1aa582a7b75c0e'
@@ -1,5 +1,5 @@
1
1
  class FromHyraxController < Spotlight::ApplicationController
2
- layout 'from_hyrax/application'
2
+ layout 'spotlight/spotlight'
3
3
  before_action :authenticate_user!, except: :receive
4
4
  protect_from_forgery with: :exception
5
5
  skip_before_action :verify_authenticity_token, only: :receive
@@ -1,3 +1,5 @@
1
+ <%= stylesheet_link_tag "from_hyrax/application", media: "all" %>
2
+ <%= javascript_include_tag "from_hyrax/application" %>
1
3
  <%= render 'spotlight/shared/exhibit_sidebar' %>
2
4
  <div id="content" class="col-md-9">
3
5
  <%= form_tag from_hyrax_new_path do %>
@@ -1,3 +1,5 @@
1
+ <%= stylesheet_link_tag "from_hyrax/application", media: "all" %>
2
+ <%= javascript_include_tag "from_hyrax/application" %>
1
3
  <%= render 'spotlight/shared/exhibit_sidebar' %>
2
4
  <style type="text/css" media="screen">
3
5
 
@@ -1,3 +1,3 @@
1
1
  module FromHyrax
2
- VERSION = '0.2.6'.freeze
2
+ VERSION = '0.2.7'.freeze
3
3
  end
@@ -1,7 +1,19 @@
1
- class CdmMigrator::InstallGenerator < Rails::Generators::Base
1
+ class FromHyrax::InstallGenerator < Rails::Generators::Base
2
2
  source_root File.expand_path('../templates', __FILE__)
3
3
 
4
4
  def inject_content_dm_yml
5
5
  copy_file('config/from_hyrax.yml', 'config/from_hyrax.yml') unless File.file?('config/from_hyrax.yml')
6
6
  end
7
+
8
+ def inject_dashboard_link
9
+ file_path = 'app/views/spotlight/shared/_curation_sidebar.html.erb'
10
+ if File.file?(file_path)
11
+ insert_into_file file_path, before: /[ \t]*<% if can\? :tag, current_exhibit %>/m do
12
+ " \n<%= nav_link t(:'Hyrax Transfer'), main_app.from_hyrax_index_path(current_exhibit) %>\n"
13
+ end
14
+ else
15
+ copy_file 'views/_curation_sidebar.html.erb', file_path
16
+ end
17
+ end
18
+
7
19
  end
@@ -0,0 +1,21 @@
1
+ <h3 class="nav-heading h4"><%= t(:'spotlight.curation.sidebar.header') %></h3>
2
+
3
+ <ul class="nav sidenav flex-column">
4
+ <%= nav_link t(:'spotlight.curation.sidebar.items'), spotlight.admin_exhibit_catalog_path(current_exhibit) %>
5
+ <%= nav_link t(:'Hyrax Transfer'), main_app.from_hyrax_index_path(current_exhibit) %>
6
+ <% if can? :tag, current_exhibit %>
7
+ <%= nav_link t(:'spotlight.curation.sidebar.tags'), spotlight.exhibit_tags_path(current_exhibit) %>
8
+ <% end %>
9
+ <% if can? :manage, Spotlight::Search.new(exhibit: current_exhibit) %>
10
+ <%= nav_link t(:'spotlight.curation.sidebar.browse'), spotlight.exhibit_searches_path(current_exhibit) %>
11
+ <% end %>
12
+ <% if can? :manage, Spotlight::FeaturePage.new(exhibit: current_exhibit) or can? :manage, current_exhibit.home_page %>
13
+ <%= nav_link t(:'spotlight.curation.sidebar.feature_pages'), spotlight.exhibit_feature_pages_path(current_exhibit), 'data-no-turbolink' => true %>
14
+ <% end %>
15
+ <% if can? :manage, Spotlight::AboutPage.new(exhibit: current_exhibit) %>
16
+ <%= nav_link t(:'spotlight.curation.sidebar.about_pages'), spotlight.exhibit_about_pages_path(current_exhibit), 'data-no-turbolink' => true %>
17
+ <% end %>
18
+ <% if (can? :manage, current_exhibit.translations.first_or_initialize) && current_exhibit.languages.any? %>
19
+ <%= nav_link t(:'spotlight.curation.sidebar.translations'), spotlight.edit_exhibit_translations_path(current_exhibit), 'data-no-turbolink' => true %>
20
+ <% end %>
21
+ </ul>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: from_hyrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - sephirothkod
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-11 00:00:00.000000000 Z
11
+ date: 2020-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -70,6 +70,7 @@ files:
70
70
  - lib/from_hyrax/version.rb
71
71
  - lib/generators/install/install_generator.rb
72
72
  - lib/generators/install/templates/config/from_hyrax.yml
73
+ - lib/generators/install/templates/views/_curation_sidebar.erb
73
74
  - lib/tasks/from_hyrax_tasks.rake
74
75
  homepage: https://github.com/sephirothkod/from_hyrax
75
76
  licenses: