-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
move tools to header #1229
move tools to header #1229
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@import 'bootstrap/scss/bootstrap'; | ||
@import 'blacklight-frontend/app/assets/stylesheets/blacklight/blacklight'; | ||
@import 'blacklight/blacklight'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it ok to commit this change and the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to remember to undo it, but I think it's OK |
||
@import '@geoblacklight/frontend/app/assets/stylesheets/geoblacklight/geoblacklight'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div id="appliedParams px-0"> | ||
<%= link_back_to_catalog class: 'back-to-search' %> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
module Earthworks | ||
class ServerAppliedParamsComponent < Blacklight::SearchContext::ServerAppliedParamsComponent | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<% @page_title = t('blacklight.search.show.title', document_title: document_presenter(@document).html_title, application_name: application_name).html_safe %> | ||
<% content_for(:head) { render_link_rel_alternates } %> | ||
|
||
<% document_component = blacklight_config.view_config(:show).document_component -%> | ||
<%= render (document_component).new(document_component.collection_parameter => document_presenter(@document), component: :div, show: true, partials: blacklight_config.view_config(:show).partials) do |component| %> | ||
<% component.with_title(as: 'h1', classes: '', link_to_document: false, actions: false) %> | ||
<% component.with_footer do %> | ||
<% if @document.respond_to?(:export_as_openurl_ctx_kev) %> | ||
<!-- COinS, for Zotero among others. --> | ||
<span class="Z3988" title="<%= @document.export_as_openurl_ctx_kev(document_presenter(@document).display_type) %>"></span> | ||
<% end %> | ||
<% end %> | ||
<% end %> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
# | ||
# Compile CSS files using dart-sass, but loading stylesheets from upstream engines for | ||
# ease of development. | ||
# | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) | ||
|
||
bundle_binstub = File.expand_path("bundle", __dir__) | ||
|
||
if File.file?(bundle_binstub) | ||
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/ | ||
load(bundle_binstub) | ||
else | ||
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. | ||
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") | ||
end | ||
end | ||
|
||
require "rubygems" | ||
require "bundler/setup" | ||
|
||
require 'blacklight' | ||
|
||
`npx sass ./app/assets/stylesheets/geoblacklight.scss:./app/assets/builds/geoblacklight.css --no-source-map --load-path=node_modules --load-path=#{"#{Blacklight::Engine.root}/app/assets/stylesheets"} --load-path=node_modules #{ARGV.join(' ')}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After release
"build:css": "sass ./app/assets/stylesheets/geoblacklight.scss:./app/assets/builds/geoblacklight.css --load-path=node_modules"