-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactorise les templates des publications (#6457)
* mise à jour de l'organisation des différentes actions possibles * fusion des variantes en ligne et pas en ligne * configuration définie dans la vue pour adapter l'affichage * vues bien séparées pour bêta, brouillon, en ligne * nouvelle vue spécifique pour voir une version par son commit
- Loading branch information
Showing
88 changed files
with
3,209 additions
and
3,007 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{% if show_featured_requested %} | ||
<form action="{{ link }}" method="post"> | ||
<input type="hidden" name="request_featured" value="1"> | ||
{% csrf_token %} | ||
<form action="{{ link }}" method="post"> | ||
<input type="hidden" name="request_featured" value="1"> | ||
{% csrf_token %} | ||
|
||
<button | ||
class="requesting ico-after star {% if is_requesting %}yellow{% else %}blue{% endif %}" | ||
type="submit" data-ajax-input="request-featured"> | ||
<span id="request_text" data-content-on-click="{{ data_onclick }}">{{ button_text }}</span> | ||
{% include 'featured/includes/featured_request_count.part.html' with featured_request_count=featured_request_count %} | ||
</button> | ||
</form> | ||
{% endif %} | ||
<button | ||
class="requesting ico-after star {% if is_requesting %}yellow{% else %}blue{% endif %}" | ||
type="submit" data-ajax-input="request-featured"> | ||
<span id="request_text" data-content-on-click="{{ data_onclick }}">{{ button_text }}</span> | ||
{% include 'featured/includes/featured_request_count.part.html' with featured_request_count=featured_request_count %} | ||
</button> | ||
</form> |
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,59 +1,27 @@ | ||
{% load i18n %} | ||
|
||
{% if has_pagination %} | ||
|
||
{% if pager.has_pagination %} | ||
<ul class="pagination pagination-{{ position }} pagination-chapter"> | ||
{% if previous %} | ||
{% if pager.previous %} | ||
<li class="prev"> | ||
<a | ||
{% if online %} | ||
href="{{ previous.get_absolute_url_online }}" | ||
{% elif content.is_beta %} | ||
href="{{ previous.get_absolute_url_beta }}" | ||
{% else %} | ||
href="{{ previous.get_absolute_url }}{% if version %}?version={{ version }}{% endif %}" | ||
{% endif %} | ||
class="ico-after arrow-left" | ||
rel="prev" | ||
> | ||
{{ previous.title }} | ||
<a href="{{ pager.previous.url }}" class="ico-after arrow-left" rel="prev"> | ||
{{ pager.previous.title }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
|
||
{% if container.parent %} | ||
<li class="summary-button"> | ||
<a | ||
{% if online %} | ||
href="{{ content.get_absolute_url_online }}" | ||
{% elif content.is_beta %} | ||
href="{{ content.get_absolute_url_beta }}" | ||
{% else %} | ||
href="{{ content.get_absolute_url }}{% if version %}?version={{ version }}{% endif %}" | ||
{% endif %} | ||
> | ||
{% trans "Sommaire" %} | ||
</a> | ||
<a href="{{ base_url }}{{ container.parent.get_url_path }}">{% trans "Sommaire" %}</a> | ||
</li> | ||
{% endif %} | ||
|
||
{% if next %} | ||
{% if pager.next %} | ||
<li class="next"> | ||
<a | ||
{% if online %} | ||
href="{{ next.get_absolute_url_online }}" | ||
{% elif content.is_beta %} | ||
href="{{ next.get_absolute_url_beta }}" | ||
{% else %} | ||
href="{{ next.get_absolute_url }}{% if version %}?version={{ version }}{% endif %}" | ||
{% endif %} | ||
class="ico-after arrow-right" | ||
rel="next" | ||
> | ||
{{ next.title }} | ||
<a href="{{ pager.next.url }}" class="ico-after arrow-right" rel="next"> | ||
{{ pager.next.title }} | ||
</a> | ||
</li> | ||
{% endif %} | ||
</ul> | ||
|
||
{% 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
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
Oops, something went wrong.