-
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.
Merge pull request #30 from keitaroinc/custom-footer
Custom footer
- Loading branch information
Showing
9 changed files
with
71 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -264,3 +264,11 @@ | |
justify-content: end; | ||
align-items: center; | ||
} | ||
|
||
.links p{ | ||
@include column; | ||
} | ||
|
||
.links p a{ | ||
margin-bottom: 5px; | ||
} |
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,14 @@ | ||
{% ckan_extends %} | ||
|
||
{% import 'macros/form.html' as form %} | ||
|
||
{% block admin_form %} | ||
{{ h.csrf_input() }} | ||
{{ super() }} | ||
|
||
{{ form.markdown('footer_dataportal', label=_('Footer Dataportal'), value=data.footer_dataportal, 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_toolbox', label=_('Footer Toolbox'), value=data.footer_toolbox, 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_social', label=_('Footer Social'), value=data.footer_social, 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 |
---|---|---|
|
@@ -2,30 +2,9 @@ | |
<div class="container"> | ||
{% block footer_content %} | ||
<div class="row"> | ||
<div class="col-md-4 attribution"> | ||
<h2>{{_('The Kosovo dataportal')}} </h2> | ||
<div class="column"> | ||
<a class="" href="http://ckan.org">{{_('About this website')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Open source on GitHub')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Feedback on dataportal.xk')}}</a> | ||
<a class="" href="http://ckan.org">{{_('[email protected]')}}</a> | ||
</div> | ||
</div> | ||
<div class="col-md-4 attribution"> | ||
<h2>{{_('Toolbox for sharing data')}}</h2> | ||
<div class="column"> | ||
<a class="" href="http://ckan.org">{{_('Documentation and services - Kosovo`s data portal')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Guidance for open and shared data')}}</a> | ||
</div> | ||
</div> | ||
<div class="col-md-4 attribution"> | ||
<h2>{{_('Social')}}</h2> | ||
<div class="column"> | ||
<a class="" href="http://ckan.org">{{_('Network Open Source and Data')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Facebook')}}</a> | ||
<a class="" href="http://ckan.org">{{_('Twitter')}}</a> | ||
</div> | ||
</div> | ||
{% include "/snippets/footer_dataportal.html" %} | ||
{% include "/snippets/footer_toolbox.html" %} | ||
{% include "/snippets/footer_social.html" %} | ||
</div> | ||
|
||
</div> | ||
|
@@ -39,7 +18,6 @@ <h2>{{_('Social')}}</h2> | |
</div> | ||
</footer> | ||
|
||
|
||
<script> | ||
document.addEventListener("DOMContentLoaded", function () { | ||
calculateSpaceToBottom(); | ||
|
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,8 @@ | ||
{% if g.footer_dataportal %} | ||
<div class="col-md-4 attribution"> | ||
<h2 class="title">{{ _('The Kosovo dataportal') }}</h2> | ||
<div class="links"> | ||
{{ h.render_markdown(g.footer_dataportal) }} | ||
</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,8 @@ | ||
{% if g.footer_social %} | ||
<div class="col-md-4 attribution"> | ||
<h2 class="title">{{ _('Social') }}</h2> | ||
<div class="links"> | ||
{{ h.render_markdown(g.footer_social) }} | ||
</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,8 @@ | ||
{% if g.footer_toolbox %} | ||
<div class="col-md-4 attribution"> | ||
<h2 class="title">{{ _('Toolbox for sharing data') }}</h2> | ||
<div class="links"> | ||
{{ h.render_markdown(g.footer_social) }} | ||
</div> | ||
</div> | ||
{% endif %} |