Skip to content

Commit

Permalink
Merge pull request #102 from scientist-softserv/theming-titles
Browse files Browse the repository at this point in the history
adjusted title tag for work show page, a bit more css, changed generi…
  • Loading branch information
summer-cook authored Jul 7, 2023
2 parents f4c1414 + 7eb1b6a commit 3194f7b
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 8 deletions.
13 changes: 12 additions & 1 deletion app/assets/stylesheets/atla-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,29 @@ img {max-width:100%;}
/* Work show metadata layout */
.works-show p.work_description {margin-top:1em;}
.works-show dl.work-show {margin-top: 1em;}
.work-show ul.tabular{padding-inline-start: 0px;}

.work-show ul.tabular, .scholarly_show .work-show ul.tabular{padding-inline-start: 0px;}
.work-show dt {padding-bottom:0;}

/* hide work type on work show pages */
.works-show .work-type-tag {display:none;}

/* Collection show layout */

.hyc-banner .hyc-title h1, .hyc-banner .hyc-bugs div{
color:rgb(51, 51, 51);
text-shadow:none;
}

.hyc-banner .hyc-title .label {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}

.hyc-banner {min-height:95px;}


/* admin dashboard available works ETD all caps*/
.dashboard label[for="input-Etd"] {text-transform: uppercase;}

13 changes: 13 additions & 0 deletions app/presenters/hyrax/file_set_presenter_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

# OVERRIDE Hyrax v3.5.0 to change what appears in the title tags for pages

module Hyrax
module FileSetPresenterDecorator
def page_title
"#{title.first} | #{I18n.t('hyrax.product_name')} | ID: #{id}"
end
end
end

Hyrax::FileSetPresenter.prepend(Hyrax::FileSetPresenterDecorator)
14 changes: 14 additions & 0 deletions app/presenters/hyrax/work_show_presenter_decorator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

# frozen_string_literal: true

# OVERRIDE Hyrax v3.5.0 to change what appears in the title tags for pages

module Hyrax
module WorkShowPresenterDecorator
def page_title
"#{title.first} | #{I18n.t('hyrax.product_name')} | ID: #{id}"
end
end
end

Hyrax::WorkShowPresenter.prepend(Hyrax::WorkShowPresenterDecorator)
2 changes: 1 addition & 1 deletion config/locales/generic_work.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ de:
select_type:
generic_work:
description: 'Arbeitstyp: Generische Arbeit. Wählen Sie diesen Typ für Ihre Arbeit, die Sie hinzufügen möchten, aus, wenn die unten aufgeführten, spezielleren Arbeitstypen nicht für Ihre Arbeit geeignet erscheinen.'
name: Generische Arbeit
name: Allgemeine Arbeit
2 changes: 1 addition & 1 deletion config/locales/generic_work.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ en:
select_type:
generic_work:
description: General purpose work type. Select this if the more specific work types below are not suited to the work you want to add.
name: Generic Work
name: General Work
2 changes: 1 addition & 1 deletion config/locales/generic_work.es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ es:
select_type:
generic_work:
description: Tipo de trabajo de propósito general. Seleccione esta opción si los tipos de trabajo más específicos de abajo no son adecuados para el trabajo que desea agregar.
name: Trabajo Genérico
name: Trabajo general
2 changes: 1 addition & 1 deletion config/locales/generic_work.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ fr:
select_type:
generic_work:
description: Type de travail à usage général. Sélectionnez cette option si les types de travaux plus spécifiques ci-dessous ne conviennent pas au travail que vous souhaitez ajouter.
name: Œuvres Génériques
name: Travail général
2 changes: 1 addition & 1 deletion config/locales/generic_work.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ it:
select_type:
generic_work:
description: Tipo di opere di tipo generale. Selezionare questa opzione se i tipi di opere più specifici di seguito non sono adatti al opere che si desidera aggiungere.
name: Opere Generiche
name: Opere generale
2 changes: 1 addition & 1 deletion config/locales/generic_work.pt-.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pt-:
select_type:
generic_work:
description: Tipo de trabalho de uso geral. Selecione esta opção se os tipos de trabalho mais específicos abaixo não forem adequados para o trabalho que você deseja adicionar.
name: Trabalho Genérico
name: Trabalho geral
2 changes: 1 addition & 1 deletion config/locales/generic_work.pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pt-BR:
select_type:
generic_work:
description: Tipo de trabalho de propósito geral. Selecione isso se os tipos de trabalho mais específicos abaixo não forem adequados ao trabalho que deseja adicionar.
name: Trabalho Genérico
name: Trabalho geral

0 comments on commit 3194f7b

Please sign in to comment.