-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
104 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="tna-frontend-jinja", | ||
version="0.1.34", | ||
version="0.2.0", | ||
author="Andrew Hosgood", | ||
author_email="[email protected]", | ||
description="TNA Frontend Jinja templates", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{%- from "components/files-list/macro.html" import tnaFilesList -%} | ||
{{ tnaFilesList(context) }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{%- from "components/records-list/macro.html" import tnaRecordsList -%} | ||
{{ tnaRecordsList(context) }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
tna_frontend_jinja/templates/components/featured-records/macro.html
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
tna_frontend_jinja/templates/components/files-list/macro.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% macro tnaFilesList(params) %} | ||
{%- set containerClasses = [params.classes] if params.classes else [] -%} | ||
{%- set classes = containerClasses | join(' ') -%} | ||
<div class="tna-files-list{% if classes %} {{ classes }}{% endif %}" {%- if params.attributes %}{% for attribute, value in params.attributes.items() %} {{ attribute }}{% if value != '' %}="{{ value }}"{% endif %}{% endfor %}{% endif %}> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" class="tna-files-list__icon"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"/></svg> | ||
<ul class="tna-files-list__items"> | ||
{%- for item in params['items'] %} | ||
<li class="tna-files-list__item"> | ||
<p class="tna-files-list__item-title"> | ||
<a href="{{ item.href }}" class="tna-files-list__link">{{ item.text }}</a> | ||
</p> | ||
<dl class="tna-dl-chips tna-dl-chips--plain tna-files-list__item-meta"> | ||
<dt>File type</dt> | ||
<dd> | ||
<span class="tna-dl-chips__item">{{ item.fileType }}</span> | ||
</dd> | ||
<dt>File size</dt> | ||
<dd> | ||
<span class="tna-dl-chips__item">{{ item.fileSize }}</span> | ||
</dd> | ||
{% if item.fileExtent %} | ||
<dt>Extent</dt> | ||
<dd> | ||
<span class="tna-dl-chips__item">{{ item.fileExtent }}</span> | ||
</dd> | ||
{% endif %} | ||
</dl> | ||
{% if item.description %} | ||
<p class="tna-files-list__item-description">{{ item.description }}</p> | ||
{% endif %} | ||
</li> | ||
{%- endfor %} | ||
</ul> | ||
</div> | ||
{% endmacro %} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tna_frontend_jinja/templates/components/records-list/macro.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% macro tnaRecordsList(params) %} | ||
{%- set containerClasses = [params.classes] if params.classes else [] -%} | ||
<ul class="tna-records-list {{ ' '.join(containerClasses) }}" {%- if params.attributes %}{% for attribute, value in params.attributes.items() %} {{ attribute }}{% if value != '' %}="{{ value }}"{% endif %}{% endfor %}{% endif %}> | ||
{%- for item in params['items'] %} | ||
<li class="tna-records-list__item"> | ||
{%- if item.imageSrc %} | ||
<img src="{{ item.imageSrc }}" width="{{ item.imageWidth }}" height="{{ item.imageHeight }}" class="tna-records-list__image" alt="{{ item.imageAlt }}"> | ||
{%- endif %} | ||
<dl class="tna-records-list__details"> | ||
<dt class="tna-records-list__collection-label tna-chip tna-chip--plain">From our collection</dt> | ||
<dd class="tna-records-list__collection-description tna-chip tna-chip--plain">{{ item.collection }}</dd> | ||
<dt class="tna-records-list__title-label">Title</dt> | ||
<dd class="tna-records-list__title-description"> | ||
<a href="{{ item.href }}">{{ item.title }}</a> | ||
</dd> | ||
<dt class="tna-records-list__date-label">Date</dt> | ||
<dd class="tna-records-list__date-description">{{ item.date }}</dd> | ||
</dl> | ||
</li> | ||
{%- endfor %} | ||
</ul> | ||
{% endmacro %} |
Oops, something went wrong.