-
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.
Custom footer links and translations
- Loading branch information
1 parent
02b6d90
commit 7b2dbca
Showing
7 changed files
with
118 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Translations template for ckanext-alisea. | ||
# Copyright (C) 2024 ORGANIZATION | ||
# This file is distributed under the same license as the ckanext-alisea project. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: ckanext-alisea 0.0.1\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2024-09-02 18:36+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Babel 2.10.3\n" | ||
|
||
#: ckanext/alisea/templates/footer.html:15 | ||
msgid "" | ||
"<strong>Powered by</strong> <a class=\"hide-text ckan-footer-logo\" " | ||
"href=\"http://ckan.org\">CKAN</a>" | ||
msgstr "" | ||
|
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,27 @@ | ||
# Vietnamese translations for ckanext-alisea. | ||
# Copyright (C) 2024 ORGANIZATION | ||
# This file is distributed under the same license as the ckanext-alisea | ||
# project. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2024. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: ckanext-alisea 0.0.1\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2024-09-02 18:36+0200\n" | ||
"PO-Revision-Date: 2024-09-02 18:36+0200\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language: vi\n" | ||
"Language-Team: vi <[email protected]>\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=utf-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: Babel 2.10.3\n" | ||
|
||
#: ckanext/alisea/templates/footer.html:15 | ||
msgid "" | ||
"<strong>Powered by</strong> <a class=\"hide-text ckan-footer-logo\" " | ||
"href=\"http://ckan.org\">CKAN</a>" | ||
msgstr "" | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% ckan_extends %} | ||
|
||
{% import 'macros/form.html' as form %} | ||
|
||
{% block admin_form %} | ||
{{ h.csrf_input() }} | ||
{{ super() }} | ||
|
||
{{ form.markdown('footer_left', label=_('Footer Left'), value=data.footer_left, error=error, placeholder=_('Enter a list of links - one per line - to be shown as a list withing the secondary footer navigation. Please format the links with Markdown (i.e. * [Example link](https://www.example.com)).'), classes=['control-full']) }} | ||
|
||
{{ form.markdown('footer_right', label=_('Footer right'), value=data.footer_right, error=error, placeholder=_('Enter a list of links - one per line - to be shown as a list withing the secondary footer navigation. Please format the links with Markdown (i.e. * [Example link](https://www.example.com)).'), classes=['control-full']) }} | ||
|
||
{% endblock %} |
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,25 @@ | ||
<footer class="site-footer"> | ||
<div class="container"> | ||
{% block footer_content %} | ||
|
||
<div class="row"> | ||
{% include "/snippets/footer_left.html" %} | ||
{% include "/snippets/footer_right.html" %} | ||
|
||
</div> | ||
<div class="row"> | ||
<div class="col-md-8 footer-links"> | ||
</div> | ||
<div class="col-md-4 attribution"> | ||
{% block footer_attribution %} | ||
<p>{% trans %}<strong>Powered by</strong> <a class="hide-text ckan-footer-logo" href="http://ckan.org">CKAN</a>{% endtrans %}</p> | ||
{% endblock %} | ||
{% block footer_lang %} | ||
{% snippet "snippets/language_selector.html" %} | ||
{% endblock %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
</div> | ||
</footer> | ||
|
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,7 @@ | ||
{% if g.footer_left %} | ||
<div class="col-md-4 attribution"> | ||
<div class="links"> | ||
{{ h.render_markdown(g.footer_left) }} | ||
</div> | ||
</div> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% if g.footer_right %} | ||
<div class="col-md-4 attribution"> | ||
<div class="links"> | ||
{{ h.render_markdown(g.footer_right) }} | ||
</div> | ||
</div> | ||
{% endif %} |