Skip to content

Commit

Permalink
Ajoute un lien pour MP les auteurs articles/tuto
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-D committed Jul 27, 2014
1 parent e06ec06 commit c4a7c91
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
14 changes: 13 additions & 1 deletion templates/article/includes/sidebar_actions.part.html
Expand Up @@ -99,13 +99,25 @@ <h3>Validation</h3>
Historique de validation
</a>
</li>
<li>
<a href="{% url "zds.mp.views.new" %}?{% for username in authors.all %}&amp;username={{ username }}{% endfor %}"
class="ico-after cite blue"
>
Envoyer un MP
{% if authors.all|length > 1 %}
aux auteurs
{% else %}
à l'auteur
{% endif %}
</a>
</li>

{% if not article.sha_validation = None %}
{% if validation.is_pending %}
<li>
<form action="{% url "zds.article.views.reservation" validation.pk %}" method="post">
{% csrf_token %}
<button type="submit" class="ico-after lock blue">
<button type="submit" class="ico-after lock blue unread">
Réserver
</button>
</form>
Expand Down
2 changes: 1 addition & 1 deletion templates/member/profile.html
Expand Up @@ -152,7 +152,7 @@ <h2>Anciens Tutos SdZ</h2>
<h3>Actions</h3>
<ul>
<li>
<a href="{% url "zds.mp.views.new"%}?username={{ usr.username }}" class="ico-after cite blue">
<a href="{% url "zds.mp.views.new" %}?username={{ usr.username }}" class="ico-after cite blue">
Envoyer un message privé
</a>
</li>
Expand Down
12 changes: 12 additions & 0 deletions templates/tutorial/tutorial/view.html
Expand Up @@ -305,6 +305,18 @@ <h3>Validation</h3>
Historique validation
</a>
</li>
<li>
<a href="{% url "zds.mp.views.new" %}?{% for username in tutorial.authors.all %}&amp;username={{ username }}{% endfor %}"
class="ico-after cite blue"
>
Envoyer un MP
{% if tutorial.authors.all|length > 1 %}
aux auteurs
{% else %}
à l'auteur
{% endif %}
</a>
</li>

{% if tutorial.on_line %}
<li>
Expand Down

0 comments on commit c4a7c91

Please sign in to comment.