Skip to content

Commit

Permalink
NEW: Display Plugin Setup Information
Browse files Browse the repository at this point in the history
 - #19
  • Loading branch information
aljawaid committed Sep 13, 2023
1 parent ea62d11 commit f3bd2e6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ This plugin shows a configuration section to display all the default and custom
- Displays Kanboard name, version and (if admin user) direct link to GitHub releases for Kanboard
- Displays useful directory locations and session information
- Show if debug mode is enabled or not
- Display plugin setup information
- **Database Connection**
- Display basic database information (without password) from the config file
- Moved SQLite database (upload/download) options from the About page
Expand Down
29 changes: 29 additions & 0 deletions Template/config/support.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,21 @@
<?php endif ?>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="app-info-title"><?= t('Plugins Installer') ?></li>
<li class="app-info-value border-bottom-thick">
<?php if(PLUGIN_INSTALLER == false): ?>
<?= t('Disabled') ?>
<?php else: ?>
<?= t('Enabled') ?>
<?php endif ?>
</li>
<?php if (PLUGIN_INSTALLER == false): ?>
<span class="fail-x" title="<?= t('Plugins cannot be installed. This is also set by default for security reasons.') ?>">&#10008;</span>
<?php else: ?>
<span class="pass-tick" title="<?= t('Plugins can be automatically installed through the Plugins Directory') ?>">&#10004;</span>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="app-info-title"><?= t('Plugins Directory') ?></li>
<li class="app-info-value value-path border-bottom-thick privacy"><?= PLUGINS_DIR ?></li>
Expand Down Expand Up @@ -252,6 +267,20 @@
</div>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="app-info-title"><?= t('Plugins Directory URL') ?></li>
<?php if (PLUGIN_API_URL == 'https://kanboard.org/plugins.json'): ?>
<li class="app-info-value border-bottom-thick" title="<?= t('Plugins will be listed from the default source') ?>">
<?= PLUGIN_API_URL ?>
</li>
<span class="pass-tick" title="<?= t('Plugins will be listed from the default source') ?>">&#10004;</span>
<?php else: ?>
<li class="app-info-value border-bottom-thick privacy" title="<?= t('Plugins will be listed from a custom source') ?>">
<?= PLUGIN_API_URL ?>
</li>
<span class="pass-tick" title="<?= t('Plugins will be listed from a custom source') ?>">&#10004;</span>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="app-info-title"><?= t('Log File') ?></li>
<li class="app-info-value value-path border-bottom-thick privacy"><?= LOG_FILE ?></li>
Expand Down

0 comments on commit f3bd2e6

Please sign in to comment.