diff --git a/src/mibew/libs/classes/Mibew/Controller/AboutController.php b/src/mibew/libs/classes/Mibew/Controller/AboutController.php index 6badacb7..6ed659df 100644 --- a/src/mibew/libs/classes/Mibew/Controller/AboutController.php +++ b/src/mibew/libs/classes/Mibew/Controller/AboutController.php @@ -35,8 +35,10 @@ class AboutController extends AbstractController */ public function indexAction(Request $request) { + $operator = $this->getOperator(); $page = array_merge( array( + 'showSystemInfo' => is_capable(CAN_ADMINISTRATE, $operator), 'localizations' => get_available_locales(), 'phpVersion' => phpversion(), 'extensions' => $this->getExtensionsInfo(), @@ -45,7 +47,7 @@ class AboutController extends AbstractController 'menuid' => 'about', 'availableUpdates' => $this->getAvailableUpdates(), ), - prepare_menu($this->getOperator()) + prepare_menu($operator) ); return $this->render('about', $page); diff --git a/src/mibew/styles/pages/default/templates_src/server_side/about.handlebars b/src/mibew/styles/pages/default/templates_src/server_side/about.handlebars index 74678f92..429e4058 100644 --- a/src/mibew/styles/pages/default/templates_src/server_side/about.handlebars +++ b/src/mibew/styles/pages/default/templates_src/server_side/about.handlebars @@ -14,43 +14,45 @@

{{{l10n "Copyright © {0} Contributors of the Mibew Messenger project." "2005-2017"}}}

{{{l10n "For more information visit the official site of the project: https://mibew.org/"}}}

-

+ {{#if showSystemInfo}} +

-

{{l10n "System information"}}

-

{{l10n "You are using:"}}

-
{{version}}
+

{{l10n "System information"}}

+

{{l10n "You are using:"}}

+
{{version}}
-
+
-

{{l10n "Installed localizations:"}}

- {{#each localizations}} - {{this}} - {{/each}} - -

- -

{{l10n "Environment:"}}

- PHP {{phpVersion}} {{#each extensions}}{{@key}}{{#if loaded}}{{#if version}}/{{version}}{{/if}}{{else}}/absent{{/if}} {{/each}} - -

- -

{{l10n "Available updates"}}

- {{#if availableUpdates}} - {{#each availableUpdates}} -

{{title}} ({{version}})

- {{#if description}} -
{{description}}
- {{/if}} -
- {{l10n "Download"}} -
- -
+

{{l10n "Installed localizations:"}}

+ {{#each localizations}} + {{this}} {{/each}} - {{else}} - {{l10n "There is no available updates."}}

+ +

+ +

{{l10n "Environment:"}}

+ PHP {{phpVersion}} {{#each extensions}}{{@key}}{{#if loaded}}{{#if version}}/{{version}}{{/if}}{{else}}/absent{{/if}} {{/each}} + +

+ +

{{l10n "Available updates"}}

+ {{#if availableUpdates}} + {{#each availableUpdates}} +

{{title}} ({{version}})

+ {{#if description}} +
{{description}}
+ {{/if}} +
+ {{l10n "Download"}} +
+ +
+ {{/each}} + {{else}} + {{l10n "There is no available updates."}}

+ {{/if}} + {{l10n "Check for available updates"}} {{/if}} - {{l10n "Check for available updates"}}