Skip to content

Commit

Permalink
Merge pull request #648 from CuBoulder/issue/tiamat-theme/622
Browse files Browse the repository at this point in the history
Class Note Enhancements
  • Loading branch information
jnicholCU authored and web-flow committed Feb 6, 2024
2 parents 5e41b82 + 533a871 commit 923cd4b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- ### Class Note Enhancements
Adjusts permissions for Class Notes, adds optional image field. Resolves https://github.com/CuBoulder/tiamat-theme/issues/622

Includes:
- tiamat-theme => https://github.com/CuBoulder/tiamat-theme/pull/648
- tiamat-profile => https://github.com/CuBoulder/tiamat10-profile/pull/75
- custom-entities => https://github.com/CuBoulder/tiamat-custom-entities/pull/94
---

- ### Adds Collection Grid block and Collection Item content type
Closes #534.
Adds the collection grid block and collection item node page
Expand Down
4 changes: 4 additions & 0 deletions css/ucb-class-notes.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.ucb-class-notes{
padding: 20px 0;
}

.ucb-class-notes-image{
margin-bottom: 20px;
}
29 changes: 20 additions & 9 deletions templates/content/node--ucb-class-notes.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,25 @@
'container',
] %}

<article{{ attributes.addClass(classes) }}>
<h1{{ title_attributes.addClass(is_front ? 'sr-only') }}>
{{ label }}
</h1>
{% if content %}
<div{{ content_attributes }}>
{{ content }}

<article{{ attributes.addClass(classes) }}>
<h1{{ title_attributes.addClass(is_front ? 'sr-only') }}>
{{ label }}
</h1>
{% if content %}
<div{{ content_attributes }}>
<div class="ucb-class-notes-body">
{{ content.body }}
</div>
{% endif %}
</article>

<div class="ucb-class-notes-image">
{{ content.field_ucb_class_note_image }}
</div>

<div class="ucb-class-notes-year-container">
{{ content.field_ucb_class_year }}
</div>
</div>
{% endif %}
</article>

0 comments on commit 923cd4b

Please sign in to comment.