-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1316] Removed name fields and made image and title required
- Loading branch information
Showing
5 changed files
with
11 additions
and
44 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
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
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 @@ | ||
{% if instance.image %} | ||
<aside class="banner" aria-hidden="true"> | ||
<img class="main-image" src="{{ instance.image.file.url }}" alt={{ instance.title|default:_("Header image") }} height="{{instance.image_height}}"> | ||
<img class="main-image" src="{{ instance.image.file.url }}" alt="Header image" height="{{instance.image_height}}"> | ||
</aside> | ||
{% endif %} |
5 changes: 2 additions & 3 deletions
5
src/open_inwoner/templates/cms/banner/banner_text_plugin.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{% if instance.title %} | ||
<h1 class="h1">{{ instance.title }} {{ request.user.get_full_name }}</h1> | ||
{% endif %} | ||
<h1 class="h1">{{ instance.title }} {{ request.user.get_full_name }}</h1> | ||
|
||
{% if instance.description %} | ||
<p class="p">{{ instance.description|linebreaksbr }}</p> | ||
{% endif %} |