generated from aljawaid/KanboardSkeletonPlugin
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- #24
- Loading branch information
Showing
2 changed files
with
64 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<h2 class=""> | ||
<i class="fa fa-cog"></i> <?= t('Application Information') ?> | ||
</h2> | ||
<div class="app-info"> | ||
<ul class=""> | ||
<span class="data-wrap"> | ||
<li class="app-info-title"><?= t('Application Name') ?></li> | ||
<li class="app-info-value border-bottom-thick privacy privacy-fw">Kanboard</li> | ||
</span> | ||
<span class="data-wrap"> | ||
<li class="app-info-title"><?= t('Version') ?></li> | ||
<li class="app-info-value value-version border-bottom-thick"><?= APP_VERSION ?></li> | ||
</span> | ||
<?php if ($this->user->isAdmin()): ?> | ||
<span class="data-wrap"> | ||
<li class="app-info-title"><?= t('Updates') ?></li> | ||
<li class="app-info-value border-bottom-thick"> | ||
<a href="https://github.com/kanboard/kanboard/releases" class="kb-updates-link" target="_blank" rel="noopener noreferrer" title="<?= t('Opens in a new window') ?> ⇗"> | ||
<i class="fa fa-external-link"></i> <?= t('Check for updates') ?> | ||
</a> | ||
</li> | ||
</span> | ||
<?php endif ?> | ||
<span class="data-wrap"> | ||
<li class="app-info-title"><?= t('Debug Mode') ?></li> | ||
<?php if (DEBUG == 'true'): ?> | ||
<li class="app-info-value border-bottom-thick" title="<?= t('This setting will affect performance and should only be enabled for troubleshooting purposes') ?>"> | ||
<?= t('Enabled') ?> | ||
</li> | ||
<span class="fail-x" title="<?= t('This setting will affect performance and should only be enabled for troubleshooting purposes') ?>">✘</span> | ||
<?php else: ?> | ||
<li class="app-info-value border-bottom-thick" title="<?= t('This is the default and recommended setting') ?>"> | ||
<?= t('Not Enabled') ?> | ||
</li> | ||
<span class="pass-tick" title="<?= t('This is the default and recommended setting') ?>">✔</span> | ||
<?php endif ?> | ||
</span> | ||
<br> | ||
<?php if ($this->user->isAdmin()): ?> | ||
<p class="config-notice"> | ||
<?= t('This page contains all the configuration settings from the application config file. You can also view the raw contents of the config file as-is and also compare it to the default version.') ?> <strong><?= t('The raw config file will expose sensitive information which should not be shared.') ?></strong> | ||
</p> | ||
<div class="config-btns"> | ||
<?php if (file_exists(ROOT_DIR . DIRECTORY_SEPARATOR . 'config.php')): ?> | ||
<button href="<?= $this->url->href('TechnicalSupportController', 'showCurrentRawConfigModal', array( | ||
'plugin' => 'KanboardSupport'), false, '', false) ?>" class="btn config-btn config-btn-green js-modal-confirm" title="<?= t('The settings in this file apply to the current application environment') ?>"> | ||
<?= $this->helper->supportHelper->embedSVGIcon('raw-icon') ?> <?= t('Current Raw Config File') ?> | ||
</button> | ||
<?php else: ?> | ||
<button href="<?= $this->url->href('TechnicalSupportController', 'showCurrentRawConfigModal', array( | ||
'plugin' => 'KanboardSupport'), false, '', false) ?>" class="btn config-btn config-btn-red js-modal-confirm" title="<?= t('An active configuration file has not been detected. Make sure the filename is correct.') ?>" disabled> | ||
<?= $this->helper->supportHelper->embedSVGIcon('raw-icon') ?> <?= t('Current Raw Config File') ?> | ||
</button> | ||
<?php endif ?> | ||
<button href="<?= $this->url->href('TechnicalSupportController', 'showDefaultRawConfigModal', array( | ||
'plugin' => 'KanboardSupport'), false, '', false) ?>" class="btn config-btn config-btn-red js-modal-confirm" title="<?= t('This file is for reference only') ?>"> | ||
<?= $this->helper->supportHelper->embedSVGIcon('raw-icon') ?> <?= t('Default Raw Config File') ?> | ||
</button> | ||
</div> | ||
<?php endif ?> | ||
<?= $this->render('KanboardSupport:config_sections/app-sections') ?> | ||
</ul> | ||
</div> |