{{tutorial.title}}
- {% trans "Par " %} - {% for author in tutorial.authors.all %} - {% if not forloop.first %} - {% if forloop.last %} - {% trans "et" %} - {% else %} - , - {% endif %} - {% endif %} - {% if author == user %} - {% trans "vous" %} - {% else %} - - {{author.username}} - - {% endif %} - {% endfor %} - {% if not user in tutorial.authors.all %} - - {% trans "Contacter par MP" %} - {% endif %} - - -{{ tutorial.title }}
+ + + {% trans "Par " %} + {% for author in tutorial.authors.all %} + {% if not forloop.first %} + {% if forloop.last %} + {% trans "et" %} {% else %} - + , {% endif %} - {% if tutorial.in_beta %} - - - - {% else %} - + {% endif %} + {% if author == user %} + {% trans "vous" %} + {% else %} + + {{author.username}} + + {% endif %} + {% endfor %} + {% if not user in tutorial.authors.all %} + - {% trans "Contacter par MP" %} + {% endif %} ++ +
- {% trans "Aucun auteur n'a besoin d'aide pour le moment." %} -
- {% endif %} - {% endblock %} - + + {% endfor %} ++ {% trans "Aucun auteur n'a besoin d'aide pour le moment." %} +
+ {% endif %} + + {% include "misc/pagination.part.html" with position="bottom" %} {% endblock %} diff --git a/zds/settings.py b/zds/settings.py index 55ae17f21f..785033ab0b 100644 --- a/zds/settings.py +++ b/zds/settings.py @@ -363,6 +363,7 @@ 'repo_public_path': os.path.join(SITE_ROOT, 'tutoriels-public'), 'default_license_pk': 7, 'home_number': 5, + 'helps_per_page': 20 }, 'forum': { 'posts_per_page': 21, diff --git a/zds/tutorial/views.py b/zds/tutorial/views.py index 178853dfef..4226392951 100644 --- a/zds/tutorial/views.py +++ b/zds/tutorial/views.py @@ -3621,7 +3621,7 @@ def help_tutorial(request): .all() # Paginator - paginator = Paginator(tutos, settings.ZDS_APP['forum']['topics_per_page']) + paginator = Paginator(tutos, settings.ZDS_APP['tutorial']['helps_per_page']) page = request.GET.get('page') try: