small fixes in templates

This commit is contained in:
bkfox 2017-03-31 18:27:30 +02:00
parent 98af7a4693
commit c3573867d0
5 changed files with 27 additions and 28 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Aircox 0.1\n" "Project-Id-Version: Aircox 0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-03-31 16:54+0200\n" "POT-Creation-Date: 2017-03-31 18:23+0200\n"
"PO-Revision-Date: 2016-10-10 16:00+02\n" "PO-Revision-Date: 2016-10-10 16:00+02\n"
"Last-Translator: Aarys\n" "Last-Translator: Aarys\n"
"Language-Team: Aircox's translators team\n" "Language-Team: Aircox's translators team\n"
@ -100,10 +100,8 @@ msgid "Your comment has been successfully posted!"
msgstr "Votre commentaire a bien été posté !" msgstr "Votre commentaire a bien été posté !"
#: models.py:91 #: models.py:91
#, fuzzy
#| msgid "message to display when a post has been posted"
msgid "message displayed when a comment has been successfully posted" msgid "message displayed when a comment has been successfully posted"
msgstr "message à afficher quand une publication a bien été postée" msgstr "message à afficher quand un commentaire a bien été posté"
#: models.py:95 #: models.py:95
msgid "waiting message" msgid "waiting message"
@ -156,7 +154,7 @@ msgstr ""
#, fuzzy #, fuzzy
#| msgid "default program parent page" #| msgid "default program parent page"
msgid "default programs page" msgid "default programs page"
msgstr "Page par défaut d'un programme" msgstr "Page des programmes par défault"
#: models.py:128 #: models.py:128
msgid "" msgid ""
@ -399,8 +397,6 @@ msgid "icon from the gallery"
msgstr "icône de la gallerie" msgstr "icône de la gallerie"
#: sections.py:105 #: sections.py:105
#, fuzzy
#| msgid "icon"
msgid "icon path" msgid "icon path"
msgstr "chemin de l'icône" msgstr "chemin de l'icône"
@ -413,8 +409,6 @@ msgid "text"
msgstr "texte" msgstr "texte"
#: sections.py:116 #: sections.py:116
#, fuzzy
#| msgid "text of the url"
msgid "text of the link" msgid "text of the link"
msgstr "texte du lien" msgstr "texte du lien"
@ -458,12 +452,9 @@ msgid "select siblings of related"
msgstr "selectionne les sœurs de la page apparentée" msgstr "selectionne les sœurs de la page apparentée"
#: sections.py:206 #: sections.py:206
#, fuzzy
#| msgid ""
#| "if selected select related publications that are siblings of this one"
msgid "if checked, related publications are siblings instead of the children." msgid "if checked, related publications are siblings instead of the children."
msgstr "" msgstr ""
"si selectionné,les publications apparentées sont les sœurs au lieu des " "si coché, les publications apparentées sont les sœurs au lieu des "
"enfants." "enfants."
#: sections.py:211 #: sections.py:211
@ -813,6 +804,7 @@ msgid "Search in publications for <i>%(terms)s</i>"
msgstr "Chercher <i>%(terms)s</i> dans les publications" msgstr "Chercher <i>%(terms)s</i> dans les publications"
#: templates/aircox_cms/dynamic_list_page.html:19 #: templates/aircox_cms/dynamic_list_page.html:19
#, python-format
msgid "Related to <a href=\"%(url)s\">%(title)s</a>" msgid "Related to <a href=\"%(url)s\">%(title)s</a>"
msgstr "Relatif à <a href=\"%(url)s\">%(title)s</a>" msgstr "Relatif à <a href=\"%(url)s\">%(title)s</a>"
@ -845,8 +837,9 @@ msgid "Schedule"
msgstr "Horaire" msgstr "Horaire"
#: templates/aircox_cms/program_page.html:18 #: templates/aircox_cms/program_page.html:18
msgid "%(day)s %(start)s until %(end)s, %(frequency)s" msgid ""
msgstr "%(day)s %(start)s jusqu'à %(end)s, %(frequency)s" "%(day)s at %(start)s until %(end)s, <span class=\"info\">%(frequency)s</span>"
msgstr "%(day)s de %(start)s à %(end)s, <span class=\"info\">%(frequency)s</span>"
#: templates/aircox_cms/program_page.html:24 #: templates/aircox_cms/program_page.html:24
msgid "Rerun" msgid "Rerun"
@ -860,33 +853,33 @@ msgstr "Ce programme n'est plus actif"
msgid "Go back to the publication" msgid "Go back to the publication"
msgstr "Retourner à la publication" msgstr "Retourner à la publication"
#: templates/aircox_cms/sections/section_publication_info.html:12 #: templates/aircox_cms/sections/section_publication_info.html:14
#: templates/aircox_cms/sections/section_publication_info.html:13 #: templates/aircox_cms/sections/section_publication_info.html:15
msgid "Parent pages" msgid "Parent pages"
msgstr "Pages parentes" msgstr "Pages parentes"
#: templates/aircox_cms/sections/section_publication_info.html:27 #: templates/aircox_cms/sections/section_publication_info.html:31
#: templates/aircox_cms/sections/section_publication_info.html:28 #: templates/aircox_cms/sections/section_publication_info.html:32
msgid "Tags" msgid "Tags"
msgstr "Tags" msgstr "Tags"
#: templates/aircox_cms/sections/section_publication_info.html:45 #: templates/aircox_cms/sections/section_publication_info.html:49
#: templates/aircox_cms/sections/section_publication_info.html:46 #: templates/aircox_cms/sections/section_publication_info.html:50
msgid "Author" msgid "Author"
msgstr "Auteur" msgstr "Auteur"
#: templates/aircox_cms/sections/section_publication_info.html:48 #: templates/aircox_cms/sections/section_publication_info.html:52
#, python-format #, python-format
msgid "Published by %(author)s" msgid "Published by %(author)s"
msgstr "Publié par %(author)s" msgstr "Publié par %(author)s"
#: templates/aircox_cms/sections/section_publication_info.html:58 #: templates/aircox_cms/sections/section_publication_info.html:62
#: templates/aircox_cms/sections/section_publication_info.html:59 #: templates/aircox_cms/sections/section_publication_info.html:63
msgid "Date of publication" msgid "Date of publication"
msgstr "Date de publication" msgstr "Date de publication"
#: templates/aircox_cms/sections/section_publication_info.html:68 #: templates/aircox_cms/sections/section_publication_info.html:72
#: templates/aircox_cms/sections/section_publication_info.html:69 #: templates/aircox_cms/sections/section_publication_info.html:73
msgid "Share" msgid "Share"
msgstr "Partager" msgstr "Partager"

View File

@ -16,7 +16,7 @@
{% with frequency=schedule.get_frequency_display day=schedule.date|date:'l' %} {% with frequency=schedule.get_frequency_display day=schedule.date|date:'l' %}
{% with start=schedule.date|date:"H:i" end=schedule.end|date:"H:i" %} {% with start=schedule.date|date:"H:i" end=schedule.end|date:"H:i" %}
{% blocktrans trimmed %} {% blocktrans trimmed %}
{{ day }} {{ start }} until {{ end }}, {{ frequency }} {{ day }} at {{ start }} until {{ end }}, <span class="info">{{ frequency }}</span>
{% endblocktrans %} {% endblocktrans %}
{% endwith %} {% endwith %}
{% endwith %} {% endwith %}

View File

@ -41,11 +41,13 @@
{% else %} {% else %}
{# detail view #} {# detail view #}
<div class="content"> <div class="content">
{% if page.body %}
<section class="body"> <section class="body">
{{ page.body|richtext}} {{ page.body|richtext}}
</section> </section>
{% endif %}
{% if page.links %} {% if page.links.count %}
{% include "aircox_cms/sections/section_link_list.html" %} {% include "aircox_cms/sections/section_link_list.html" %}
{% endif %} {% endif %}

View File

@ -7,6 +7,8 @@
{% block content %} {% block content %}
{% spaceless %} {% spaceless %}
<div class="meta"> <div class="meta">
{% with ancestors=page.get_ancestors %}
{% if ancestors|length != 1 %}
<div class="link_list"> <div class="link_list">
<img src="{% static "aircox/images/home.png" %}" <img src="{% static "aircox/images/home.png" %}"
alt="{% trans "Parent pages" %}" alt="{% trans "Parent pages" %}"
@ -19,6 +21,8 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %}
{% endwith %}
{% with list_page=settings.cms.WebsiteSettings.list_page %} {% with list_page=settings.cms.WebsiteSettings.list_page %}
{% if list_page and page.tags.count %} {% if list_page and page.tags.count %}