From 39fb79d794fd69b7669f1373f847c395fe3c9abb Mon Sep 17 00:00:00 2001 From: Benjamin Aerni Date: Thu, 29 Sep 2022 20:32:34 -0700 Subject: [PATCH 1/6] Corrected the default icon after the admin theme change --- src/bb-modules/Extension/Service.php | 2 +- src/bb-themes/admin_default/html/mod_extension_index.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bb-modules/Extension/Service.php b/src/bb-modules/Extension/Service.php index c35148ab0..837c91152 100644 --- a/src/bb-modules/Extension/Service.php +++ b/src/bb-modules/Extension/Service.php @@ -195,7 +195,7 @@ class Service implements InjectionAwareInterface } foreach ($result as $key => $value) { - $iconPath = 'images/icons/middlenav/cog.png'; + $iconPath = 'assets/icons/cog.svg'; $icon_url = $this->di['array_get']($value, 'icon_url'); if ($icon_url) { $iconPath = $this->di['config']['url'].$icon_url; diff --git a/src/bb-themes/admin_default/html/mod_extension_index.html.twig b/src/bb-themes/admin_default/html/mod_extension_index.html.twig index a8228ebf6..d0c73b308 100644 --- a/src/bb-themes/admin_default/html/mod_extension_index.html.twig +++ b/src/bb-themes/admin_default/html/mod_extension_index.html.twig @@ -43,7 +43,7 @@ {% for ext in admin.extension_get_list %} - {{ ext.name }} + {{ ext.name }} {{ ext.name }} {{ ext.version }}
From 487f7c2af32f62e76ad09d813240b8e20111e3d1 Mon Sep 17 00:00:00 2001 From: Benjamin Aerni Date: Thu, 29 Sep 2022 20:49:05 -0700 Subject: [PATCH 2/6] Corrected icon on the cron settings page --- src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig b/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig index 95395f492..bc85c7374 100644 --- a/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig +++ b/src/bb-modules/Cron/html_admin/mod_cron_settings.html.twig @@ -62,7 +62,7 @@ From b120a9a57db92b22566dcf32edd138f35177c097 Mon Sep 17 00:00:00 2001 From: Benjamin Aerni Date: Thu, 29 Sep 2022 20:51:24 -0700 Subject: [PATCH 3/6] Corrected path to the refresh icon --- .../Currency/html_admin/mod_currency_settings.html.twig | 2 +- .../html_admin/mod_servicesolusvm_manage.html.twig | 2 +- .../admin_default/html/mod_invoice_transaction.html.twig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig b/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig index 6b60e6579..9d7544a1f 100644 --- a/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig +++ b/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig @@ -69,7 +69,7 @@ diff --git a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_manage.html.twig b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_manage.html.twig index 23e021d0b..8bfb5f609 100644 --- a/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_manage.html.twig +++ b/src/bb-modules/Servicesolusvm/html_admin/mod_servicesolusvm_manage.html.twig @@ -69,7 +69,7 @@ {{ 'Client area'|trans }} {{ 'Admin area'|trans }} Check Status - Reboot + Reboot Boot Shutdown Add IP diff --git a/src/bb-themes/admin_default/html/mod_invoice_transaction.html.twig b/src/bb-themes/admin_default/html/mod_invoice_transaction.html.twig index 22620a7ae..68d74e582 100644 --- a/src/bb-themes/admin_default/html/mod_invoice_transaction.html.twig +++ b/src/bb-themes/admin_default/html/mod_invoice_transaction.html.twig @@ -112,7 +112,7 @@ diff --git a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig index 209007df5..84f0f09d7 100644 --- a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig +++ b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig @@ -80,7 +80,7 @@ - + {% endfor %} diff --git a/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig b/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig new file mode 100644 index 000000000..705554c87 --- /dev/null +++ b/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig @@ -0,0 +1,228 @@ +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} + +{% import "macro_functions.html.twig" as mf %} + +{% set active_menu = 'support' %} + +{% block meta_title %}Forum{% endblock %} + +{% block content %} +
+ + +
+
+
+ {{ mf.table_search }} + + + + + + + + + + + {% set posts = admin.forum_message_get_list({ "per_page": 30, "page": request.page }|merge(request)) %} + {% for i, post in posts.list %} + + + + + + + + {% else %} + + + + {% endfor %} + +
{{ 'Message'|trans }}{{ 'Date'|trans }}Actions
{{post.author.id}} + {{post.forum_title}} +
+ {{ post.message|truncate(80) }}
{{ post.created_at|timeago }} ago + + +
{{ 'The list is empty'|trans }}
+ {% include "partial_pagination.html.twig" with { 'list': posts, 'url': 'forum' } %} +
+ +
+ {{ mf.table_search }} + + + + + + + + + + + + + + {% set topics = admin.forum_topic_get_list({ "per_page": 30, "page": request.page }|merge(request)) %} + {% for i, topic in topics.list %} + + + + + + + + + + {% else %} + + + + {% endfor %} + +
{{ 'Title'|trans }}{{ 'Replies'|trans }}{{ 'Views'|trans }}{{ 'Status'|trans }}{{ 'Sticky'|trans }}Actions
{{ topic.forum.category }} > {{ topic.forum.title }} > {{ topic.title }}{{ topic.stats.posts_count }}{{ topic.stats.views_count }}{{ mf.status_name(topic.status) }}{{ mf.q(topic.sticky) }} + + +
+ {{ 'The list is empty'|trans }} +
+ {% include "partial_pagination.html.twig" with { 'list': topics, 'url': 'forum' } %} +
+ +
+ +
+
+
+ +
+ {{ mf.selectbox('forum_id', admin.forum_get_pairs, request.forum_id, 1) }} +
+
+
+
+ +
+ + +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+ +
+
+
+
+ +
+ + +
+
+
+
+ +
+ +
+
+
+ +
+
+
+
+ +
+
+
+ + + + + + + + + + + {% for category, forums in admin.forum_get_categories %} + + + + {% for forum in forums %} + + + + + + {% endfor %} + {% endfor %} + + + + + + + +
{{ 'Sorting'|trans }}{{ 'Title'|trans }}{{ 'Actions'|trans }}
{{ category }}
{{forum.title}} + + +
+ +
+
+
+
+
+
+{% endblock %} diff --git a/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig b/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig new file mode 100644 index 000000000..168f6f52a --- /dev/null +++ b/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig @@ -0,0 +1,169 @@ +{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} + +{% import "macro_functions.html.twig" as mf %} + +{% block meta_title %}Forum - Client profile{% endblock %} + +{% set active_menu = 'support' %} + +{% block content %} + +{% set params = admin.extension_config_get({ "ext": "mod_forum" }) %} +{% set fp = admin.forum_profile_get({ "client_id": client_id }) %} +{% set posts = admin.forum_message_get_list({ "client_id": client_id, "per_page": 30, "page": request.page }|merge(request)) %} +{% set last_message = posts.list[0] %} +
+ + +
+
+ +
+ +
+ {{ fp.name }} +
+ + + + + + + + + + + + + + + + + + + + + + + {% if params.forum_points_enable %} + {% set points = fp.points %} + + + + + + + + + + {% endif %} + + + + + + +
Name{{ fp.name }}
Posts{{ fp.posts }}
Last Activity{% if last_message %}{{ last_message.created_at|bb_date }} ({{ last_message.created_at|timeago }} ago){% else %}-{% endif %}
Joined{{ fp.created_at|bb_date }}
Points + + {{ points }} + +
+ +
+ +
+

{{ 'Recent posts'|trans }}

+
+ + + + + + + + + + + + {% for i, post in posts.list %} + + + + + + + {% else %} + + + + {% endfor %} + +
{{ 'Message'|trans }}{{ 'Date'|trans }}Actions
+ {{post.forum_title}} +
+ {{ post.message|truncate(80) }}
{{ post.created_at|timeago }} ago + + +
+ {{ 'The list is empty'|trans }} +
+ {% include "partial_pagination.html.twig" with { 'list': posts, 'url': 'profile/'~client_id } %} +
+ + +
+ {% if params.forum_points_enable %} + + + + + + + + + + {% set posts = admin.forum_message_get_list({ "per_page": 20, "client_id": client_id, "with_points": 1 }|merge(request)) %} + {% for i, post in posts.list %} + + + + + {% else %} + + + + {% endfor %} + +
{{ 'Message'|trans }}{{ 'Actions'|trans }}
+ {{post.forum_title}} - {{post.points}} point(s) +
+ {{post.message}} +
+ +
{{ 'The list is empty'|trans }}
+ {% else %} +
+

{{ 'Enable forum points feature in extension configuration page'|trans }}

+

Forum settings

+
+ {% endif %} +
+
+
+{% endblock %} + +{% block js %} + +{% endblock %} \ No newline at end of file diff --git a/src/bb-modules/Kb/html_admin/mod_kb_index.html.twig b/src/bb-modules/Kb/html_admin/mod_kb_index.html.twig index ae94d17c4..2370066e0 100644 --- a/src/bb-modules/Kb/html_admin/mod_kb_index.html.twig +++ b/src/bb-modules/Kb/html_admin/mod_kb_index.html.twig @@ -39,7 +39,7 @@ {{ post.views }} - + {% else %} @@ -130,7 +130,7 @@ {{cat_title}} - + {% else %} diff --git a/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig b/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig index 16bf7e9ea..c44d4b3f0 100644 --- a/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig +++ b/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig @@ -40,7 +40,7 @@ - + {% else %} diff --git a/src/bb-modules/News/html_admin/mod_news_index.html.twig b/src/bb-modules/News/html_admin/mod_news_index.html.twig index 04a89d8d5..8513c1f42 100644 --- a/src/bb-modules/News/html_admin/mod_news_index.html.twig +++ b/src/bb-modules/News/html_admin/mod_news_index.html.twig @@ -43,7 +43,7 @@ - + diff --git a/src/bb-modules/Notification/html_admin/mod_notification_index.html.twig b/src/bb-modules/Notification/html_admin/mod_notification_index.html.twig index 877820d36..5dbfca691 100644 --- a/src/bb-modules/Notification/html_admin/mod_notification_index.html.twig +++ b/src/bb-modules/Notification/html_admin/mod_notification_index.html.twig @@ -35,7 +35,7 @@ {{ admin.system_string_render({ "_tpl": event.meta_value, "_try": true })|raw }} {{ event.created_at|date('Y-m-d H:i') }} - + {% else %} @@ -51,7 +51,7 @@ {% include "partial_pagination.html.twig" with {'list': events, 'url':'notification'} %} diff --git a/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig b/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig index 3d4180c3f..6cb50abd6 100644 --- a/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig +++ b/src/bb-modules/Queue/html_admin/mod_queue_settings.html.twig @@ -42,7 +42,7 @@ {{ queue.created_at|bb_date }} - {##} + {##} diff --git a/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig b/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig index 44735d036..d7f128054 100644 --- a/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig +++ b/src/bb-modules/Redirect/html_admin/mod_redirect_settings.html.twig @@ -36,7 +36,7 @@ {{ r.path | link }} {% if '://' in r.target %}{{ r.target }}{% else %}{{ r.target | link }}{% endif %} - + {% else %} diff --git a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig index 645c44342..03a56708f 100644 --- a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig +++ b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig @@ -44,7 +44,7 @@ - + {% else %} diff --git a/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig b/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig index f65bb0959..f23b569dc 100644 --- a/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig +++ b/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig @@ -50,7 +50,7 @@ {{ mf.status_name(member.status) }} - + @@ -173,7 +173,7 @@ {{ group.name }} - + diff --git a/src/bb-modules/Support/html_admin/mod_support_settings.html.twig b/src/bb-modules/Support/html_admin/mod_support_settings.html.twig index 9212aa9c9..6a78d043e 100644 --- a/src/bb-modules/Support/html_admin/mod_support_settings.html.twig +++ b/src/bb-modules/Support/html_admin/mod_support_settings.html.twig @@ -125,7 +125,7 @@ {{ helpdesk.close_after }} hour(s) - + diff --git a/src/bb-themes/admin_default/html/mod_staff_index.html.twig b/src/bb-themes/admin_default/html/mod_staff_index.html.twig index 2bd7cbcea..0c323fff6 100644 --- a/src/bb-themes/admin_default/html/mod_staff_index.html.twig +++ b/src/bb-themes/admin_default/html/mod_staff_index.html.twig @@ -55,7 +55,7 @@ - + @@ -146,7 +146,7 @@ - + From 4f96a7b1fcdc459226f71793e17328019072bb7d Mon Sep 17 00:00:00 2001 From: Benjamin Aerni Date: Thu, 29 Sep 2022 20:54:07 -0700 Subject: [PATCH 5/6] Corrected edit icon path --- .../Currency/html_admin/mod_currency_settings.html.twig | 2 +- .../Custompages/html_admin/mod_custompages_index.html.twig | 2 +- src/bb-modules/Email/html_admin/mod_email_history.html.twig | 2 +- .../Email/html_admin/mod_email_settings.html.twig | 2 +- .../html_admin/mod_formbuilder_preview.html.twig | 2 +- .../html_admin/mod_formbuilder_settings.html.twig | 2 +- src/bb-modules/Forum/html_admin/mod_forum_index.html.twig | 6 +++--- src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig | 2 +- src/bb-modules/Kb/html_admin/mod_kb_index.html.twig | 4 ++-- .../Massmailer/html_admin/mod_massmailer_index.html.twig | 2 +- src/bb-modules/News/html_admin/mod_news_index.html.twig | 2 +- .../html_admin/mod_paidsupport_settings.html.twig | 2 +- .../html_admin/mod_servicecentovacast_settings.html.twig | 2 +- .../Staff/html_admin/mod_staff_settings.html.twig | 4 ++-- .../Support/html_admin/mod_support_settings.html.twig | 2 +- .../admin_default/assets/scss/main-deprecated.scss | 2 +- .../admin_default/html/mod_client_manage.html.twig | 2 +- src/bb-themes/admin_default/html/mod_staff_index.html.twig | 4 ++-- src/install/assets/css/main.css | 2 +- 19 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig b/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig index 437ebed2e..340cac6d7 100644 --- a/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig +++ b/src/bb-modules/Currency/html_admin/mod_currency_settings.html.twig @@ -49,7 +49,7 @@ {{ currency.conversion_rate }} {{ mf.currency_format(1) }} = {{ mf.currency(1, currency.code) }} - + {% if not currency.default %} diff --git a/src/bb-modules/Custompages/html_admin/mod_custompages_index.html.twig b/src/bb-modules/Custompages/html_admin/mod_custompages_index.html.twig index 31db2c3ad..210825ce6 100644 --- a/src/bb-modules/Custompages/html_admin/mod_custompages_index.html.twig +++ b/src/bb-modules/Custompages/html_admin/mod_custompages_index.html.twig @@ -37,7 +37,7 @@ {{ page.slug }} - + diff --git a/src/bb-modules/Email/html_admin/mod_email_history.html.twig b/src/bb-modules/Email/html_admin/mod_email_history.html.twig index 708a4423a..502197d10 100644 --- a/src/bb-modules/Email/html_admin/mod_email_history.html.twig +++ b/src/bb-modules/Email/html_admin/mod_email_history.html.twig @@ -42,7 +42,7 @@ {{ email.subject|truncate(40) }} {{ email.created_at|date('Y-m-d') }} - + diff --git a/src/bb-modules/Email/html_admin/mod_email_settings.html.twig b/src/bb-modules/Email/html_admin/mod_email_settings.html.twig index d5eaac556..f9e95bf65 100644 --- a/src/bb-modules/Email/html_admin/mod_email_settings.html.twig +++ b/src/bb-modules/Email/html_admin/mod_email_settings.html.twig @@ -45,7 +45,7 @@ {{ template.action_code }} {{ mf.q(template.enabled) }} - + diff --git a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_preview.html.twig b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_preview.html.twig index 2f6114bf6..c39bb6c52 100644 --- a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_preview.html.twig +++ b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_preview.html.twig @@ -66,7 +66,7 @@
- Edit + Edit
diff --git a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig index 84f0f09d7..a8654e365 100644 --- a/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig +++ b/src/bb-modules/Formbuilder/html_admin/mod_formbuilder_settings.html.twig @@ -78,7 +78,7 @@ {{ form.order_count }} {{ form.product_count }} - + diff --git a/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig b/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig index 705554c87..ec87cbc26 100644 --- a/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig +++ b/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig @@ -40,7 +40,7 @@ {{ post.message|truncate(80) }} {{ post.created_at|timeago }} ago - + @@ -80,7 +80,7 @@ {{ mf.status_name(topic.status) }} {{ mf.q(topic.sticky) }} - + @@ -204,7 +204,7 @@ {{forum.title}} - + diff --git a/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig b/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig index 168f6f52a..8acc3f4eb 100644 --- a/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig +++ b/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig @@ -102,7 +102,7 @@ {{ post.message|truncate(80) }} {{ post.created_at|timeago }} ago - + diff --git a/src/bb-modules/Kb/html_admin/mod_kb_index.html.twig b/src/bb-modules/Kb/html_admin/mod_kb_index.html.twig index 2370066e0..7bcade0c4 100644 --- a/src/bb-modules/Kb/html_admin/mod_kb_index.html.twig +++ b/src/bb-modules/Kb/html_admin/mod_kb_index.html.twig @@ -38,7 +38,7 @@ {{ mf.status_name(post.status) }} {{ post.views }} - + @@ -129,7 +129,7 @@ {{cat_title}} - + diff --git a/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig b/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig index c44d4b3f0..9132d7195 100644 --- a/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig +++ b/src/bb-modules/Massmailer/html_admin/mod_massmailer_index.html.twig @@ -39,7 +39,7 @@ {{ mf.status_name(msg.status) }} - + diff --git a/src/bb-modules/News/html_admin/mod_news_index.html.twig b/src/bb-modules/News/html_admin/mod_news_index.html.twig index 8513c1f42..fc53cdd31 100644 --- a/src/bb-modules/News/html_admin/mod_news_index.html.twig +++ b/src/bb-modules/News/html_admin/mod_news_index.html.twig @@ -40,7 +40,7 @@ {{ post.created_at|bb_datetime }} - + diff --git a/src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.html.twig b/src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.html.twig index d7e3fa26a..67c249650 100644 --- a/src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.html.twig +++ b/src/bb-modules/Paidsupport/html_admin/mod_paidsupport_settings.html.twig @@ -50,7 +50,7 @@ - + {% else %} diff --git a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig index 03a56708f..b38aa43f3 100644 --- a/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig +++ b/src/bb-modules/Servicecentovacast/html_admin/mod_servicecentovacast_settings.html.twig @@ -42,7 +42,7 @@ {{ server.hostname }} {{ server.ip }} - + diff --git a/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig b/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig index f23b569dc..aa8da4fdf 100644 --- a/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig +++ b/src/bb-modules/Staff/html_admin/mod_staff_settings.html.twig @@ -49,7 +49,7 @@ {{member.group.name}} {{ mf.status_name(member.status) }} - + @@ -172,7 +172,7 @@ {{ group.name }} - + diff --git a/src/bb-modules/Support/html_admin/mod_support_settings.html.twig b/src/bb-modules/Support/html_admin/mod_support_settings.html.twig index 6a78d043e..040571319 100644 --- a/src/bb-modules/Support/html_admin/mod_support_settings.html.twig +++ b/src/bb-modules/Support/html_admin/mod_support_settings.html.twig @@ -124,7 +124,7 @@ {{ helpdesk.email }} {{ helpdesk.close_after }} hour(s) - + diff --git a/src/bb-themes/admin_default/assets/scss/main-deprecated.scss b/src/bb-themes/admin_default/assets/scss/main-deprecated.scss index d2a20ee38..c458b5e9b 100644 --- a/src/bb-themes/admin_default/assets/scss/main-deprecated.scss +++ b/src/bb-themes/admin_default/assets/scss/main-deprecated.scss @@ -998,7 +998,7 @@ button, } .leftNav ul li.forms a span { - background-image: url(../../images/icons/dark/pencil.png); + background-image: url(../../assets/icons/edit.svg); } .leftNav ul li.gallery a span { diff --git a/src/bb-themes/admin_default/html/mod_client_manage.html.twig b/src/bb-themes/admin_default/html/mod_client_manage.html.twig index 33fcf2c5f..04727397f 100644 --- a/src/bb-themes/admin_default/html/mod_client_manage.html.twig +++ b/src/bb-themes/admin_default/html/mod_client_manage.html.twig @@ -737,7 +737,7 @@ {{ email.created_at|date('l, d F Y') }} - + diff --git a/src/bb-themes/admin_default/html/mod_staff_index.html.twig b/src/bb-themes/admin_default/html/mod_staff_index.html.twig index 0c323fff6..26e11a5f7 100644 --- a/src/bb-themes/admin_default/html/mod_staff_index.html.twig +++ b/src/bb-themes/admin_default/html/mod_staff_index.html.twig @@ -52,7 +52,7 @@ {{ mf.status_name(member.status) }} - + @@ -144,7 +144,7 @@ {{ group.name }} - + diff --git a/src/install/assets/css/main.css b/src/install/assets/css/main.css index 1229cd89e..1e1b30d18 100644 --- a/src/install/assets/css/main.css +++ b/src/install/assets/css/main.css @@ -344,7 +344,7 @@ input[type=submit], input[type=reset], input[type=button], button, .button { fon .leftNav ul li.dash a span { background: url(../images/icons/dark/download.png) no-repeat 10px; } .leftNav ul li.graphs span { background: url(../images/icons/dark/graph.png) no-repeat 10px; } -.leftNav ul li.forms a span { background: url(../images/icons/dark/pencil.png) no-repeat 10px; } +.leftNav ul li.forms a span { background: url(../assets/icons/edit.svg) no-repeat 10px; } .leftNav ul li.gallery a span { background: url(../images/icons/dark/preview.png) no-repeat 10px; } .leftNav ul li.typo span { background: url(../images/icons/dark/create.png) no-repeat 10px; } .leftNav ul li.tables a span { background: url(../images/icons/dark/frames.png) no-repeat 10px; } From 821de61ca5913df471334e5e382b728a891cbe85 Mon Sep 17 00:00:00 2001 From: Benjamin Aerni Date: Tue, 11 Oct 2022 12:10:27 -0700 Subject: [PATCH 6/6] Removed files that were re-introduced --- .../html_admin/mod_forum_index.html.twig | 228 ------------------ .../html_admin/mod_forum_profile.html.twig | 169 ------------- 2 files changed, 397 deletions(-) delete mode 100644 src/bb-modules/Forum/html_admin/mod_forum_index.html.twig delete mode 100644 src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig diff --git a/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig b/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig deleted file mode 100644 index ec87cbc26..000000000 --- a/src/bb-modules/Forum/html_admin/mod_forum_index.html.twig +++ /dev/null @@ -1,228 +0,0 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} - -{% import "macro_functions.html.twig" as mf %} - -{% set active_menu = 'support' %} - -{% block meta_title %}Forum{% endblock %} - -{% block content %} -
- - -
-
-
- {{ mf.table_search }} - - - - - - - - - - - {% set posts = admin.forum_message_get_list({ "per_page": 30, "page": request.page }|merge(request)) %} - {% for i, post in posts.list %} - - - - - - - - {% else %} - - - - {% endfor %} - -
{{ 'Message'|trans }}{{ 'Date'|trans }}Actions
{{post.author.id}} - {{post.forum_title}} -
- {{ post.message|truncate(80) }}
{{ post.created_at|timeago }} ago - - -
{{ 'The list is empty'|trans }}
- {% include "partial_pagination.html.twig" with { 'list': posts, 'url': 'forum' } %} -
- -
- {{ mf.table_search }} - - - - - - - - - - - - - - {% set topics = admin.forum_topic_get_list({ "per_page": 30, "page": request.page }|merge(request)) %} - {% for i, topic in topics.list %} - - - - - - - - - - {% else %} - - - - {% endfor %} - -
{{ 'Title'|trans }}{{ 'Replies'|trans }}{{ 'Views'|trans }}{{ 'Status'|trans }}{{ 'Sticky'|trans }}Actions
{{ topic.forum.category }} > {{ topic.forum.title }} > {{ topic.title }}{{ topic.stats.posts_count }}{{ topic.stats.views_count }}{{ mf.status_name(topic.status) }}{{ mf.q(topic.sticky) }} - - -
- {{ 'The list is empty'|trans }} -
- {% include "partial_pagination.html.twig" with { 'list': topics, 'url': 'forum' } %} -
- -
- -
-
-
- -
- {{ mf.selectbox('forum_id', admin.forum_get_pairs, request.forum_id, 1) }} -
-
-
-
- -
- - -
-
-
-
- -
- - -
-
-
-
- -
- -
-
-
- -
- -
- -
-
-
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- -
- -
-
-
-
- -
- - -
-
-
-
- -
- -
-
-
- -
-
-
-
- -
-
-
- - - - - - - - - - - {% for category, forums in admin.forum_get_categories %} - - - - {% for forum in forums %} - - - - - - {% endfor %} - {% endfor %} - - - - - - - -
{{ 'Sorting'|trans }}{{ 'Title'|trans }}{{ 'Actions'|trans }}
{{ category }}
{{forum.title}} - - -
- -
-
-
-
-
-
-{% endblock %} diff --git a/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig b/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig deleted file mode 100644 index 8acc3f4eb..000000000 --- a/src/bb-modules/Forum/html_admin/mod_forum_profile.html.twig +++ /dev/null @@ -1,169 +0,0 @@ -{% extends request.ajax ? "layout_blank.html.twig" : "layout_default.html.twig" %} - -{% import "macro_functions.html.twig" as mf %} - -{% block meta_title %}Forum - Client profile{% endblock %} - -{% set active_menu = 'support' %} - -{% block content %} - -{% set params = admin.extension_config_get({ "ext": "mod_forum" }) %} -{% set fp = admin.forum_profile_get({ "client_id": client_id }) %} -{% set posts = admin.forum_message_get_list({ "client_id": client_id, "per_page": 30, "page": request.page }|merge(request)) %} -{% set last_message = posts.list[0] %} -
- - -
-
- -
- -
- {{ fp.name }} -
- - - - - - - - - - - - - - - - - - - - - - - {% if params.forum_points_enable %} - {% set points = fp.points %} - - - - - - - - - - {% endif %} - - - - - - -
Name{{ fp.name }}
Posts{{ fp.posts }}
Last Activity{% if last_message %}{{ last_message.created_at|bb_date }} ({{ last_message.created_at|timeago }} ago){% else %}-{% endif %}
Joined{{ fp.created_at|bb_date }}
Points - - {{ points }} - -
- -
- -
-

{{ 'Recent posts'|trans }}

-
- - - - - - - - - - - - {% for i, post in posts.list %} - - - - - - - {% else %} - - - - {% endfor %} - -
{{ 'Message'|trans }}{{ 'Date'|trans }}Actions
- {{post.forum_title}} -
- {{ post.message|truncate(80) }}
{{ post.created_at|timeago }} ago - - -
- {{ 'The list is empty'|trans }} -
- {% include "partial_pagination.html.twig" with { 'list': posts, 'url': 'profile/'~client_id } %} -
- - -
- {% if params.forum_points_enable %} - - - - - - - - - - {% set posts = admin.forum_message_get_list({ "per_page": 20, "client_id": client_id, "with_points": 1 }|merge(request)) %} - {% for i, post in posts.list %} - - - - - {% else %} - - - - {% endfor %} - -
{{ 'Message'|trans }}{{ 'Actions'|trans }}
- {{post.forum_title}} - {{post.points}} point(s) -
- {{post.message}} -
- -
{{ 'The list is empty'|trans }}
- {% else %} -
-

{{ 'Enable forum points feature in extension configuration page'|trans }}

-

Forum settings

-
- {% endif %} -
-
-
-{% endblock %} - -{% block js %} - -{% endblock %} \ No newline at end of file