Commit ae2f77f3 authored by Emma's avatar Emma 🏳🌈

remove unused page_classes block

parent 41e622e9
Pipeline #59641299 passed with stages
in 9 minutes and 26 seconds
......@@ -114,7 +114,7 @@ final class FrontController extends AbstractController {
'excluded_forums' => $excludedForums ?? [],
], $request);
return $this->render('front/all.html.twig', [
return $this->render('front/base.html.twig', [
'listing' => 'all',
'sort_by' => $sortBy,
'submissions' => $submissions,
......
{% extends 'base.html.twig' %}
{% block page_classes 'add-ban-page' %}
{% block site_nav_active 'places' %}
{% block site_nav_main_menu_active 'admin' %}
{% block site_nav_admin_menu_active 'bans' %}
......
......@@ -3,7 +3,6 @@
{% block title 'title.ip_bans'|trans %}
{% block site_nav_active 'admin' %}
{% block site_nav_main_menu_active 'bans' %}
{% block page_classes 'ban-list-page' %}
{% block head %}
{{ include('_includes/meta_pagination.html.twig', {pager: bans}, with_context = false) }}
......
......@@ -3,7 +3,6 @@
{% block title 'title.active_global_user_bans'|trans %}
{% block site_nav_active 'admin' %}
{% block site_nav_main_menu_active 'bans' %}
{% block page_classes 'user-bans-page' %}
{% block head %}
{{ include('_includes/meta_pagination.html.twig', {pager: bans}, with_context=false) }}
......
......@@ -25,9 +25,7 @@
{% block head '' %}
</head>
<body class="{% block page_classes '' %}
{{ app.user ? 'user-logged-in' : 'user-anonymous' }}
{{ (app.user.nightMode ?? false) ? 'night-mode' }}">
<body class="{{ app.user ? 'user-logged-in' : 'user-anonymous' }} {{ (app.user.nightMode ?? false) ? 'night-mode' }}">
{% block site_alerts %}
<div class="site-alerts">
{%- for type, notices in app.flashes -%}
......
......@@ -10,10 +10,6 @@
{% endif %}
{% endblock %}
{% block page_classes %}
comment-form-error-page
{% endblock %}
{% block body %}
{{ parent() }}
......
......@@ -2,7 +2,6 @@
{% from '_macros/post_nav.html.twig' import front_post_types %}
{% from 'comment/_macros.html.twig' import comment %}
{% block page_classes 'comment-list-page' %}
{% block title 'title.recent_comments'|trans %}
{% block site_nav_active 'front' %}
......
{% extends 'forum/base.html.twig' %}
{% block page_classes %}
add-moderators-page
{% endblock %}
{% block title %}
{{ 'add_moderator.title'|trans({'%forum%': forum.name}) }}
{% endblock %}
......
{% extends 'forum/base.html.twig' %}
{% block page_classes 'add-forum-webhook-page' %}
{% block title 'title.add_forum_webhook'|trans({'%forum%': '/f/'~forum.name}) %}
{% block body %}
......
{% extends 'forum/base.html.twig' %}
{% block title 'title.forum_appearance'|trans({'%forum%': '/f/%s'|format(forum.name)}) %}
{% block page_classes 'forum-appearance-page' %}
{% form_theme form '_forms/aligned_form_theme.html.twig' %}
......
{% extends 'forum/base.html.twig' %}
{% block page_classes 'forum-ban-page' %}
{% block title 'title.banning_user_from_forum'|trans({
'%forum%': forum.name,
'%user%': user.username,
......
{% extends 'forum/base.html.twig' %}
{% block page_classes 'forum-ban-history-page' %}
{% block title 'title.showing_ban_history_for_user_in_forum'|trans({
'%user%': '/u/'~user.username,
'%forum%': '/f/'~forum.name,
......
{% extends 'forum/base.html.twig' %}
{% block page_classes 'forum-bans-page' %}
{% block title 'title.bans_in_forum'|trans({'%forum%': '/f/'~forum.name}) %}
{% block head %}
......
......@@ -3,7 +3,6 @@
{% from '_macros/post_nav.html.twig' import forum_post_types %}
{% from 'comment/_macros.html.twig' import comment %}
{% block page_classes 'comment-list-page' %}
{% block title 'title.recent_comments_forum'|trans({'%forum%': '/f/'~forum.name}) %}
{% block head %}
......
{% extends 'base.html.twig' %}
{% block page_classes %}create-forum-page{% endblock %}
{% block title %}{{ 'create_forum.create_new_forum'|trans }}{% endblock %}
{% block body %}
......
{% extends 'forum/base.html.twig' %}
{% block title 'title.delete_forum'|trans({'%forum%': '/f/%s'|format(forum.name)}) %}
{% block page_classes 'forum-delete-page' %}
{% block body %}
<h1 class="page-heading">
......
{% extends 'forum/base.html.twig' %}
{% block page_classes %}edit-forum-page{% endblock %}
{% block title 'edit_forum.title'|trans({'%forum%': '/f/'~forum.name}) %}
{% block body %}
......
{% extends 'forum/base.html.twig' %}
{% block page_classes 'edit-forum-webhook-page' %}
{% block title 'title.editing_forum_webhook'|trans({'%forum%': '/f/'~forum.name}) %}
{% block body %}
......
......@@ -22,8 +22,6 @@
{% endif %}
{% endblock %}
{% block page_classes 'forum-front' %}
{% block body %}
{% filter spaceless %}
<h1 class="page-heading forum-name-heading">
......
......@@ -2,8 +2,6 @@
{% from '_macros/icon.html.twig' import icon %}
{% from 'forum/_list_macros.html.twig' import create_forum, forum_list_tabs %}
{% block page_classes 'forum-list-page' %}
{% block site_nav_active 'places' %}
{% block site_nav_main_menu_active 'forums' %}
......
{% extends 'base.html.twig' %}
{% from 'forum/_list_macros.html.twig' import forum_list_tabs %}
{% block page_classes %}
forums-by-category-page
{% endblock %}
{% block site_nav_active 'places' %}
{% block site_nav_main_menu_active 'forums' %}
......
{% extends 'forum/base.html.twig' %}
{% block page_classes 'forum-moderators-page' %}
{% block title 'forum_moderators.title'|trans({'%forum_name%': forum.name}) %}
{% block head %}
......
......@@ -2,8 +2,6 @@
{% from '_macros/post_nav.html.twig' import submission_sort, submission_time %}
{% from 'submission/_macros.html.twig' import submission %}
{% block page_classes 'multi-forum-page' %}
{% block head %}
{{ include('_includes/meta_pagination.html.twig', {pager: submissions}, with_context=false) }}
{% endblock %}
......
......@@ -4,5 +4,3 @@
'%user%': '/u/'~user.username,
'%forum%': '/f/'~forum.name,
}) %}
{% block page_classes 'forum-unban-page' %}
{% extends 'forum/base.html.twig' %}
{% block page_classes 'forum-webhooks-page' %}
{% block title 'title.forum_webhooks'|trans({'%forum%': '/f/'~forum.name}) %}
{% block body %}
......
......@@ -3,7 +3,6 @@
{% from '_macros/post_nav.html.twig' import submission_sort, submission_time %}
{% from 'submission/_macros.html.twig' import submission %}
{% block page_classes 'forum-category-page' %}
{% block title 'heading.category'|trans({'%category%': category.title}) %}
{% block head %}
......
{% extends 'base.html.twig' %}
{% block page_classes 'forum-category-create-page' %}
{% block title 'title.create_forum_category'|trans %}
{% block body %}
......
{% extends 'base.html.twig' %}
{% block page_classes 'forum-category-edit-page' %}
{% block title 'title.editing_forum_category'|trans({
'%category%': category.title
}) %}
......
{% extends 'base.html.twig' %}
{% block page_classes 'forum-category-manage-page' %}
{% block site_nav_active 'admin' %}
{% block site_nav_main_menu_active 'forum_categories' %}
{% block title 'title.manage_forum_categories'|trans %}
......
{% extends 'front/base.html.twig' %}
{% block page_classes 'all-page' %}
{% extends 'front/base.html.twig' %}
{% block page_classes 'featured-page' %}
{% block front_alerts %}
{% if is_granted('ROLE_USER') %}
{% if app.user.frontPage == 'subscribed' and app.user.subscriptions|length == 0 %}
......
{% extends 'front/base.html.twig' %}
{% block page_classes 'moderated-page' %}
{% block body %}
{% if forums is empty %}
<div class="alert alert--notice">
......
{% extends 'front/base.html.twig' %}
{% block page_classes 'subscribed-page' %}
{% block sidebar %}
{{ parent() }}
......
{% extends 'user/base.html.twig' %}
{% block page_classes %}
compose-message-page
{% endblock %}
{% block title %}
{{ 'compose_message.title'|trans({'%username%': user.username}) }}
{% endblock %}
......
{% extends 'base.html.twig' %}
{% block page_classes 'message-reply-errors-page' %}
{% block title thread.title %}
{% block body %}
......
{% extends 'base.html.twig' %}
{% from 'message/_macros.html.twig' import message %}
{% block page_classes 'message-page' %}
{% block site_nav_active 'notifications' %}
{% block title thread.title %}
......
{% extends 'base.html.twig' %}
{% block page_classes 'message-list-page' %}
{% block head %}
{{ include('_includes/meta_pagination.html.twig', {pager: threads}, with_context=false) }}
{% endblock head %}
......
{% extends 'base.html.twig' %}
{% block page_classes %}
request-password-reset-page
{% endblock %}
{% block title %}
{{ 'request_password_reset.title'|trans }}
{% endblock %}
......
{% extends 'base.html.twig' %}
{% block page_classes %}
reset-password-page
{% endblock %}
{% block title %}{{ 'reset_password.title'|trans }}{% endblock %}
{% block body %}
......
......@@ -2,7 +2,6 @@
{% from '_macros/icon.html.twig' import icon %}
{% block page_classes 'login-page' %}
{% block site_nav_active 'login' %}
{% block title 'title.log_in'|trans %}
......
......@@ -3,10 +3,6 @@
{% from 'comment/_macros.html.twig' import comment, comment_form %}
{% from 'submission/_macros.html.twig' import submission %}
{% block page_classes %}
single-comment-page
{% endblock %}
{% block body %}
{{ parent() }}
......
{% extends forum is defined and forum ? 'forum/base.html.twig' : 'base.html.twig' %}
{% block page_classes 'create-submission-page' %}
{% block site_nav_active 'submit' %}
{% block title 'title.create_submission'|trans %}
......
{% extends 'submission/base.html.twig' %}
{% block title 'title.delete_submission'|trans %}
{% block page_classes 'submission-delete-with-reason-page' %}
{% block body %}
{% from 'submission/_macros.html.twig' import submission %}
......
{% extends 'forum/base.html.twig' %}
{% block page_classes 'submission-edit-page' %}
{% block title 'title.editing_submission'|trans({'%title%': submission.title}) %}
{% block body %}
......
......@@ -3,8 +3,6 @@
{% from 'submission/_macros.html.twig' import submission %}
{% from 'comment/_macros.html.twig' import comment, comment_form %}
{% block page_classes 'submission-page' %}
{% block head %}
<meta property="og:site_name" content="{{ site_name() }}">
<meta property="og:title" content="{{ submission.title }}">
......
{% extends 'user/base.html.twig' %}
{% from 'user/_macros.html.twig' import user_link %}
{% block page_classes 'user-block-page' %}
{% block title 'title.blocking_user'|trans({'%user%': '/u/'~user.username}) %}
{% block body %}
......
{% extends 'user/base.html.twig' %}
{% block site_nav_user_menu_active 'block_list' %}
{% block page_classes 'user-block-list-page' %}
{% block title 'title.block_list'|trans %}
{% block body %}
......
......@@ -7,7 +7,6 @@
{% endblock %}
{% block site_nav_user_menu_active 'profile' %}
{% block page_classes 'user-comments-page' %}
{% block title 'user.comments'|trans %}
......
......@@ -3,7 +3,6 @@
{% block title 'edit_user.title'|trans({'%username%': user.username}) %}
{% block page_classes %}edit-user-page{% endblock %}
{% block site_nav_user_menu_active 'account' %}
{% block body %}
......
{% extends 'base.html.twig' %}
{% block page_classes 'user-list-page' %}
{% block site_nav_active 'admin' %}
{% block site_nav_main_menu_active 'users' %}
{% block title 'title.list_of_users'|trans({'%page%': page|localizednumber}) %}
......
{% extends 'base.html.twig' %}
{% block site_nav_active 'registration' %}
{% block page_classes %}registration-page{% endblock %}
{% block title 'title.sign_up'|trans %}
{% block body %}
......
......@@ -2,7 +2,6 @@
{% block title 'user_settings.title'|trans({'%username%': user.username}) %}
{% block site_nav_user_menu_active 'preferences' %}
{% block page_classes 'user-settings-page' %}
{% form_theme form '_forms/aligned_form_theme.html.twig' %}
......
......@@ -7,7 +7,6 @@
{% endblock %}
{% block site_nav_user_menu_active 'profile' %}
{% block page_classes 'user-submissions-page' %}
{% block title 'user.submissions'|trans %}
......
......@@ -4,7 +4,6 @@
{% from 'comment/_macros.html.twig' import comment %}
{% block title user.username %}
{% block page_classes 'user-page' %}
{% block site_nav_user_menu_active 'profile' %}
{% block head %}
......
{% extends 'wiki/base.html.twig' %}
{% block page_classes %}
wiki-not-found-page
{% endblock %}
{% block site_nav_active 'places' %}
{% block site_nav_main_menu_active 'wiki' %}
......
{% extends 'wiki/base.html.twig' %}
{% block page_classes 'wiki-all-page' %}
{% block site_nav_active 'places' %}
{% block site_nav_main_menu_active 'wiki' %}
......
{% extends 'base.html.twig' %}
{% block page_classes %}
wiki-create-page
{% endblock %}
{% block site_nav_active 'places' %}
{% block site_nav_main_menu_active 'wiki' %}
......
{% extends 'wiki/page.html.twig' %}
{% block page_classes 'wiki-diff-page' %}
{% block site_nav_active 'places' %}
{% block site_nav_main_menu_active 'wiki' %}
{% block wiki_page_toolbox_active 'wiki_history' %}
......
{% extends 'wiki/page.html.twig' %}
{% block page_classes %}
wiki-edit-page
{% endblock %}
{% block title %}
{{ 'wiki.editing_title'|trans({'%path%': page.path}) }}
{% endblock %}
......
{% extends 'wiki/base.html.twig' %}
{% block page_classes 'wiki-recent-page' %}
{% block site_nav_active 'places' %}
{% block site_nav_main_menu_active 'wiki' %}
{% block title 'label.recent_changes'|trans %}
......
......@@ -7,7 +7,6 @@
})|raw }}
{% endblock %}
{% block page_classes 'wiki-revision-page' %}
{% block wiki_page_toolbox_active 'wiki_history' %}
{% block body %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment