This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
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
5 changed files
with
27 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
PyLucid context processor | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
:copyleft: 2009-2015 by the PyLucid team, see AUTHORS for more details. | ||
:license: GNU GPL v3 or above, see LICENSE for more details. | ||
""" | ||
|
||
from django.utils.safestring import mark_safe | ||
|
||
from . import VERSION_STRING | ||
|
||
|
||
def pylucid(request): | ||
""" | ||
A django TEMPLATE_CONTEXT_PROCESSORS | ||
""" | ||
context = { | ||
"powered_by": mark_safe('<a href="http://www.pylucid.org">PyLucid v%s</a>' % VERSION_STRING), | ||
} | ||
return context |
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
3 changes: 0 additions & 3 deletions
3
pylucid_installer/page_instance_template/example_project/templates/includes/footer.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,13 +1,10 @@ | ||
{% load cms_tags %} | ||
|
||
{% spaceless %} | ||
<p> | ||
© example_project | | ||
|
||
{% if post.date_published %}{# djangocms-blog #} | ||
{{ post.date_published|date:"SHORT_DATE_FORMAT" }} | ||
{% else %} | ||
{% page_attribute "changed_date" as date_changed %}{{ date_changed|date:"SHORT_DATE_FORMAT" }} | ||
{% endif %} | ||
</p> | ||
{% endspaceless %} |