Commit 5d9516d45db8c0bceb05d076941781b305bcdb39
- Diff rendering mode:
- inline
- side by side
public/assets/css/style.css
(10 / 1)
|   | |||
| 143 | 143 | border: none; | |
| 144 | 144 | } | |
| 145 | 145 | ||
| 146 | .avatar-op { float: left; } | ||
| 146 | .id-op { float: left; } | ||
| 147 | 147 | ||
| 148 | 148 | .clear { clear: both; } | |
| 149 | 149 | .codehilite { padding : 1px 12px; } | |
| … | … | ||
| 205 | 205 | background-color: #FFA468; | |
| 206 | 206 | } | |
| 207 | 207 | ||
| 208 | .header-first-post { color : #666; } | ||
| 208 | 209 | ||
| 209 | 210 | /* Homepage */ | |
| 210 | 211 | ||
| … | … | ||
| 281 | 281 | .is-helpful { color : green; font-weight : bold; } | |
| 282 | 282 | .helpful a.switch-helpful { color : green !important; font-weight : bold; } | |
| 283 | 283 | .hide { font-style: italic; } | |
| 284 | |||
| 285 | .subtitle { margin-top : -20px; padding-top : 0; color : #555; font-weight : normal; font-size : 1.1em;} | ||
| 286 | .deplacer { display : inline ;} | ||
| 287 | .deplacer select { background-color : white; border : 1px solid grey; border-radius : 3px; -moz-border-radius : 3px;} | ||
| 288 | input { border : 1px solid grey; /* border-radius : 3px; -moz-border-radius : 3px; */} | ||
| 289 | input[type="submit"] { background-color : #EEE; border-radius : 3px; } | ||
| 290 | |||
| 291 | .haut-topic { padding-bottom : 10px; } |
templates/forum/details.html
(6 / 4)
|   | |||
| 4 | 4 | ||
| 5 | 5 | {% block headline %}{{ forum.titre }}{% endblock %} | |
| 6 | 6 | {% block title %}{{ forum.titre }}{% endblock %} | |
| 7 | {% block subtitle %}<h3 class="subtitle">{{ forum.soustitre }}</h3>{% endblock %} | ||
| 8 | |||
| 7 | 9 | {% block content %} | |
| 8 | <a href="/forums/">Retour à l'index des forums</a><br /> | ||
| 9 | <a href="/forum/{{ forum.id }}/nouveau/">Nouveau topic</a><br/> | ||
| 10 | <p><a href="/forums/">Retour à l'index des forums</a> - | ||
| 11 | <a href="/forum/{{ forum.id }}/nouveau/">Nouveau topic</a></p> | ||
| 10 | 12 | <table class="tab"> | |
| 11 | 13 | <thead> | |
| 12 | 14 | <tr> | |
| … | … | ||
| 67 | 67 | {% endfor %} | |
| 68 | 68 | </tbody> | |
| 69 | 69 | </table> | |
| 70 | <p>Pages: | ||
| 70 | {% if pages|length > 1 %}<p>Pages: | ||
| 71 | 71 | {% for page in pages %} | |
| 72 | 72 | <a href="?page={{ page }}">{{ page }}</a> | |
| 73 | 73 | {% if not forloop.last %} | |
| 74 | 74 | - | |
| 75 | 75 | {% endif %} | |
| 76 | 76 | {% endfor %} | |
| 77 | </p> | ||
| 77 | </p>{% endif %} | ||
| 78 | 78 | {% endblock %} |
templates/forum/topic.html
(23 / 15)
|   | |||
| 8 | 8 | {% block title %}{{ topic.sujet }}{% endblock %} | |
| 9 | 9 | {% block content %} | |
| 10 | 10 | ||
| 11 | |||
| 11 | <div class="haut-topic"> | ||
| 12 | <div class="retour"><a href="{{ topic.forum.get_absolute_url }}">Retour au forum {{ topic.forum.titre }}</a></div> | ||
| 13 | <div class="ligne-info"> | ||
| 14 | <span class="statut"> | ||
| 12 | 15 | {% if topic.is_postit %} | |
| 13 | 16 | (post-it) | |
| 14 | 17 | {% endif %} | |
| 15 | 18 | {% if topic.is_closed %} | |
| 16 | 19 | (fermé) | |
| 17 | 20 | {% endif %} | |
| 18 | <br/> | ||
| 21 | </span> | ||
| 19 | 22 | {% if user.is_staff %} | |
| 20 | <span class="moderation"><a href="{% url forum.views.postit topic_id=topic.id page=id_page token=half_key %}">{% if topic.is_postit %}Enlever des post-its{% else %}Mettre en post-it{% endif %}</a><br /> | ||
| 21 | <a href="{% url forum.views.fermer topic_id=topic.id page=id_page token=half_key %}">{% if topic.is_closed %}Ouvrir le sujet{% else %}Fermer le sujet{% endif %}</a></span><br /> | ||
| 22 | <form action="{% url forum.views.deplacer page=id_page topic_id=topic.id token=half_key%}" method="POST"> | ||
| 23 | <p> | ||
| 24 | <select name="dest">{% for forum in forums %} | ||
| 23 | <span class="moderation"><a href="{% url forum.views.postit topic_id=topic.id page=id_page token=half_key %}">{% if topic.is_postit %}Enlever des post-its{% else %}Mettre en post-it{% endif %}</a> - | ||
| 24 | <a href="{% url forum.views.fermer topic_id=topic.id page=id_page token=half_key %}">{% if topic.is_closed %}Ouvrir le sujet{% else %}Fermer le sujet{% endif %}</a> | ||
| 25 | <form class="deplacer" action="{% url forum.views.deplacer page=id_page topic_id=topic.id token=half_key%}" method="POST"> | ||
| 26 | <select name="dest"> | ||
| 27 | {% for forum in forums %} | ||
| 25 | 28 | <option value="{{forum.id}}" {% ifequal topic.forum.id forum.id %}selected{% endifequal %}>{{forum.titre}}</option>{% endfor %} | |
| 26 | 29 | </select> | |
| 27 | <input type="submit" value="Déplacer le sujet" /> | ||
| 28 | </p> | ||
| 30 | <input type="submit" value="Déplacer" /> | ||
| 29 | 31 | </form> | |
| 30 | 32 | </span> | |
| 31 | |||
| 32 | 33 | {% endif %} | |
| 34 | </div> | ||
| 35 | </div> | ||
| 33 | 36 | ||
| 34 | <span class="retour"><a href="{{ topic.forum.get_absolute_url }}">Retour au forum {{ topic.forum.titre }}</a></span><br /> | ||
| 35 | <span>Créé {% humane_date topic.creation %} par {{ topic.author|author_link:"pseudo-op|Auteur du topic" }}</span> {% ifequal topic.author user %} - <a href="{% url forum.views.edit post_id=head.id %}">Éditer</a>{% endifequal %} {% if user.is_staff %}{% ifnotequal head.author user %} - <a href="{% url forum.views.edit post_id=head.id %}">Éditer</a>{% endifnotequal %}{% endif %} - <a href="{% url forum.views.source post_id=head.id %}">Source</a><br/> | ||
| 36 | {% if head.author.get_profile.avatar %}<img src="{{ head.author.get_profile.avatar }}" alt="Avatar" class="avatar-op" />{% endif %} | ||
| 37 | <div class="id-op">{{ topic.author|author_link:"pseudo-op|Auteur du topic" }}<br /> | ||
| 38 | {% if head.author.get_profile.avatar %}<img src="{{ head.author.get_profile.avatar }}" alt="Avatar" class="avatar-op" />{% endif %}</div> | ||
| 39 | <span class="header-first-post">{% humane_date topic.creation %} </span> {% ifequal topic.author user %} - <a href="{% url forum.views.edit post_id=head.id %}">Éditer</a>{% endifequal %} {% if user.is_staff %}{% ifnotequal head.author user %} - <a href="{% url forum.views.edit post_id=head.id %}">Éditer</a>{% endifnotequal %}{% endif %} - <a href="{% url forum.views.source post_id=head.id %}">Source</a><br/> | ||
| 37 | 40 | <div class="message">{{ head.texte|markext }}</div> | |
| 38 | 41 | {% if utiles %} | |
| 39 | 42 | <h3 class="clear utiles">Réponses qui ont aidé l'auteur</h3> | |
| … | … | ||
| 46 | 46 | {% endfor %} | |
| 47 | 47 | </ul> | |
| 48 | 48 | {% endif %} | |
| 49 | {% if nb > 0 %} | ||
| 49 | 50 | <h3 class="clear">{{ nb }} réponse(s)</h3> | |
| 51 | {% if pages|length > 1 %} | ||
| 50 | 52 | <p>Pages: | |
| 51 | 53 | {% for page in pages %} | |
| 52 | 54 | {% ifequal page id_page %} | |
| … | … | ||
| 60 | 60 | - | |
| 61 | 61 | {% endif %} | |
| 62 | 62 | {% endfor %} | |
| 63 | {% endif %} | ||
| 63 | 64 | <p> | |
| 64 | 65 | <table class="topic"> | |
| 65 | 66 | {% for post in tail %} | |
| … | … | ||
| 94 | 94 | <tr colspan="2">Aucune réponse.</tr> | |
| 95 | 95 | {% endfor %} | |
| 96 | 96 | </table> | |
| 97 | <p>Pages: | ||
| 97 | {% if pages|length > 1 %}<p>Pages: | ||
| 98 | 98 | {% for page in pages %} | |
| 99 | 99 | {% ifequal page id_page %} | |
| 100 | 100 | {{ page }} | |
| … | … | ||
| 105 | 105 | - | |
| 106 | 106 | {% endif %} | |
| 107 | 107 | {% endfor %} | |
| 108 | {% endif %} | ||
| 109 | {% endif %} | ||
| 108 | 110 | <p> | |
| 109 | <h3>Répondre à "{{ topic.sujet }}"</h3> | ||
| 111 | <h3 class="clear">Répondre à "{{ topic.sujet }}"</h3> | ||
| 110 | 112 | {% if error %} | |
| 111 | 113 | <ul> | |
| 112 | 114 | <li>{{ error }}</li> |
|   | |||
| 15 | 15 | {{ news.texte|markext }} | |
| 16 | 16 | </div> | |
| 17 | 17 | </div> | |
| 18 | {% if nb > 0 %} | ||
| 18 | 19 | <h3>{{ nb }} commentaire(s)</h3> | |
| 19 | 20 | <table id="comments" class="topic"> | |
| 20 | 21 | <thead> | |
| … | … | ||
| 49 | 49 | {% endfor %} | |
| 50 | 50 | </tbody> | |
| 51 | 51 | </table> | |
| 52 | {% if pages|length > 1 %} | ||
| 52 | 53 | <p>Pages: | |
| 53 | 54 | {% for page in pages %} | |
| 54 | 55 | <a href="?page={{ page }}">{{ page }}</a> | |
| … | … | ||
| 58 | 58 | {% endif %} | |
| 59 | 59 | {% endfor %} | |
| 60 | 60 | </p> | |
| 61 | {% endif %} | ||
| 62 | {% endif %} | ||
| 61 | 63 | {% if user.is_authenticated %} | |
| 62 | 64 | <h3>Commenter la news "{{ news.titre }}"</h3> | |
| 63 | 65 | {% if error %} |

