Skip to content

Commit

Permalink
[Improvement]: Consider & showing Platform Version when installed (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp authored Jun 18, 2024
1 parent 6ae0a3b commit db29c04
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
10 changes: 8 additions & 2 deletions public/js/pimcore/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -2483,8 +2483,14 @@ pimcore.helpers.showAbout = function () {

var html = '<div class="pimcore_about_window">';
html += '<br><img src="/bundles/pimcoreadmin/img/logo-gray.svg" style="width: 300px;"><br>';
html += '<br><b>Version: ' + pimcore.settings.version + '</b>';
html += '<br><b>Git Hash: <a href="https://github.com/pimcore/pimcore/commit/' + pimcore.settings.build + '" target="_blank">' + pimcore.settings.build + '</a></b>';

if(pimcore.settings.platform_version) {
html += '<br><b>Platform Version: ' + pimcore.settings.platform_version + '</b>';
} else {
html += '<br><b>Core Version: ' + pimcore.settings.version + '</b>';
}


html += '<br><br>&copy; by pimcore GmbH (<a href="https://pimcore.com/" target="_blank">pimcore.com</a>)';
html += '<br><br><a href="https://github.com/pimcore/pimcore/blob/11.x/LICENSE.md" target="_blank">License</a> | ';
html += '<a href="https://pimcore.com/en/about/contact" target="_blank">Contact</a>';
Expand Down
1 change: 1 addition & 0 deletions public/js/pimcore/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ Ext.onReady(function () {
data.append('id', pimcore.settings.instanceId);
data.append('revision', pimcore.settings.build);
data.append('version', pimcore.settings.version);
data.append('platform_version', pimcore.settings.platform_version);
data.append('debug', pimcore.settings.debug);
data.append('devmode', pimcore.settings.devmode);
data.append('environment', pimcore.settings.environment);
Expand Down
2 changes: 2 additions & 0 deletions src/Controller/Admin/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public function statisticsAction(Request $request, Connection $db, KernelInterfa
'pimcore_major_version' => Version::getMajorVersion(),
'pimcore_version' => Version::getVersion(),
'pimcore_hash' => Version::getRevision(),
'pimcore_platform_version' => Version::getPlatformVersion(),
'php_version' => PHP_VERSION,
'mysql_version' => $mysqlVersion,
'bundles' => array_keys($kernel->getBundles()),
Expand Down Expand Up @@ -215,6 +216,7 @@ protected function buildPimcoreSettings(
'instanceId' => $this->getInstanceId(),
'version' => Version::getVersion(),
'build' => Version::getRevision(),
'platform_version' => Version::getPlatformVersion(),
'debug' => \Pimcore::inDebugMode(),
'devmode' => \Pimcore::inDevMode(),
'disableMinifyJs' => \Pimcore::disableMinifyJs(),
Expand Down
2 changes: 1 addition & 1 deletion templates/admin/index/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
</form>
{% endblock %}
<div id="pimcore_signet" data-menu-tooltip="Pimcore Platform ({{ settings.version }}|{{ settings.build }})" style="text-indent: -10000px">
<div id="pimcore_signet" data-menu-tooltip="{{ settings.platform_version ? 'Pimcore Platform ' ~ settings.platform_version : 'Pimcore Core Version ' ~ settings.version }}" style="text-indent: -10000px">
BE RESPECTFUL AND HONOR OUR WORK FOR FREE & OPEN SOURCE SOFTWARE BY NOT REMOVING OUR LOGO.
WE OFFER YOU THE POSSIBILITY TO ADDITIONALLY ADD YOUR OWN LOGO IN PIMCORE'S SYSTEM SETTINGS. THANK YOU!
</div>
Expand Down

0 comments on commit db29c04

Please sign in to comment.