-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(template): update with new model fields
- Loading branch information
1 parent
267e567
commit 26215ae
Showing
7 changed files
with
32 additions
and
35 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<h1 class="icon-title"> | ||
<span class="icon"> | ||
{% include "core/includes/icon.html" with icon=icon alt=alt %} | ||
{% include "core/includes/icon.html" with icon=icon %} | ||
</span> | ||
{{ title }} | ||
</h1> |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{% if not icon.src %} | ||
<p class="bg-grey-lightest color-standout">Missing <strong><code>icon.src</code></strong> argument</p> | ||
{% if not icon.file %} | ||
<p class="bg-grey-lightest color-standout">Missing <strong><code>icon.file</code></strong></p> | ||
{% elif not icon.alt %} | ||
<p class="bg-grey-lightest color-standout">Missing <strong><code>icon.alt</code></strong> argument</p> | ||
<p class="bg-grey-lightest color-standout">Missing <strong><code>icon.alt</code></strong></p> | ||
{% else %} | ||
{% load static %} | ||
<img class="icon" src="{% static icon.src %}" alt="{{ icon.alt }}" /> | ||
<img class="icon" src="{{ icon.file.url }}" alt="{{ icon.alt.text }}" /> | ||
{% endif %} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="media-list"> | ||
{% for media in items %} | ||
{% for media in items.all %} | ||
{% include "core/includes/media-item.html" with item=media %} | ||
{% endfor %} | ||
</div> |
10 changes: 10 additions & 0 deletions
10
benefits/core/templates/core/includes/pagenavigation-button.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,10 @@ | ||
{% if pagenav.target %} | ||
<a {%if pagenav.id %}id="{{ pagenav.id }}"{% endif %} | ||
{%if pagenav.target %}target="{{ pagenav.target }}"{% endif %} | ||
{%if pagenav.rel %}rel="{{ pagenav.rel }}"{% endif %} | ||
class="btn btn-lg {{ pagenav.classes | join:' ' }}" | ||
href="{{ pagenav.target.slug }}" | ||
role="button"> | ||
{{ pagenav.text.text }} | ||
</a> | ||
{% endif %} |
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