Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
8.5.15
Browse files Browse the repository at this point in the history
- D8CORE-5522 Adjust unpublished message on nodes that are scheduled (#263)
- D8CORE-5246: fixing the separator overhang on menus (#262)
  • Loading branch information
pookmish authored Mar 17, 2022
2 parents c4cebaa + ffb36e6 commit c3af6e9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Stanford Basic Theme


8.x-5.15
--------------------------------------------------------------------------------
_Release Date: 2022-03-17_

- D8CORE-5522 Adjust unpublished message on nodes that are scheduled (#263)
- D8CORE-5246: fixing the separator overhang on menus (#262)


8.x-5.14
--------------------------------------------------------------------------------
_Release Date: 2022-01-27_
Expand Down
2 changes: 1 addition & 1 deletion dist/css/components.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/scss/components/multi-menu/_multi-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
max-width: 30rem;

.su-multi-menu__link {
width: 100%;
width: 98%; // Controls the length of the line seperator.
}
}

Expand Down
2 changes: 1 addition & 1 deletion stanford_basic.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Stanford Basic'
type: theme
description: 'Stanford Basic Branding Theme.'
package: Stanford
version: 8.x-5.14
version: 8.x-5.15
core_version_requirement: ^9
dependencies:
- components:components
Expand Down
14 changes: 9 additions & 5 deletions templates/node.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@

{# Unpublished Warning. #}
{%- if not node.published -%}
{%-
set data = {

{% set message = "This page is currently unpublished and not visible to the public." %}
{% if node.publish_on and not node.publish_on.isEmpty %}
{% set message =message ~ " The page is also scheduled to publish in the future." %}
{% endif %}

{%- set data = {
'attributes': create_attribute({'class': 'su-alert su-alert--warning'}),
'alert_text': "This page is currently unpublished and not visible to the public."|t,
}
-%}
'alert_text': message|t,
} -%}
{%- include template_alert with data only -%}
{%- endif -%}

Expand Down

0 comments on commit c3af6e9

Please sign in to comment.