Skip to content

Commit

Permalink
NEW: Fade Not Set and Unavailable Default Values
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed Sep 15, 2023
1 parent ce7ed3d commit fa6098a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 31 deletions.
5 changes: 5 additions & 0 deletions Assets/css/kanboard-support.css
Original file line number Diff line number Diff line change
Expand Up @@ -693,3 +693,8 @@ fieldset.brute-force-protection {
fieldset.brute-force-protection p:first-of-type {
line-height: 1.25;
}

li.not-set, li.not-available {
color: var(--pp-grey-alt);
font-style: italic;
}
12 changes: 6 additions & 6 deletions Template/config/app-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@
<span class="data-wrap">
<li class="app-info-title"><?= t('Proxy Hostname') ?></li>
<?php if (HTTP_PROXY_HOSTNAME == ''): ?>
<li class="app-info-value border-bottom-thick" title="<?= t('This is the default setting') ?>">
<i><?= t('Not Set') ?></i>
<li class="app-info-value border-bottom-thick not-set" title="<?= t('This is the default setting') ?>">
<?= t('Not Set') ?>
</li>
<?php else: ?>
<li class="app-info-value border-bottom-thick">
Expand All @@ -408,8 +408,8 @@
<span class="data-wrap">
<li class="app-info-title"><?= t('Proxy Username') ?></li>
<?php if (HTTP_PROXY_USERNAME == ''): ?>
<li class="app-info-value border-bottom-thick privacy" title="<?= t('This is the default setting') ?>">
<i><?= t('Not Set') ?></i>
<li class="app-info-value border-bottom-thick privacy not-set" title="<?= t('This is the default setting') ?>">
<?= t('Not Set') ?>
</li>
<?php else: ?>
<li class="app-info-value border-bottom-thick privacy">
Expand All @@ -420,8 +420,8 @@
<span class="data-wrap">
<li class="app-info-title"><?= t('Proxy Password') ?></li>
<?php if (HTTP_PROXY_PASSWORD == ''): ?>
<li class="app-info-value border-bottom-thick privacy" title="<?= t('This is the default setting') ?>">
<i><?= t('Not Set') ?></i>
<li class="app-info-value border-bottom-thick privacy not-set" title="<?= t('This is the default setting') ?>">
<?= t('Not Set') ?>
</li>
<?php else: ?>
<li class="app-info-value border-bottom-thick privacy">
Expand Down
54 changes: 29 additions & 25 deletions Template/config/support.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@
<?php if (DB_TIMEOUT != null): ?>
<li class="db-info-value border-bottom-thick" title="<?= t('This value must be in seconds') ?>"><?= DB_TIMEOUT ?>s</li>
<?php else: ?>
<li class="db-info-value border-bottom-thick" title="<?= t('This is the default and recommended setting. If set, the value must be in seconds.') ?>"><i><?= t('Not Set') ?></i></li>
<li class="db-info-value border-bottom-thick not-set" title="<?= t('This is the default and recommended setting. If set, the value must be in seconds.') ?>">
<?= t('Not Set') ?>
</li>
<span class="pass-tick" title="<?= t('This is the default and recommended setting. If set, the value must be in seconds.') ?>">&#10004;</span>
<?php endif ?>
</span>
Expand Down Expand Up @@ -240,31 +242,39 @@
<?php if (DB_SSL_KEY != null): ?>
<li class="db-info-value value-path border-bottom-thick privacy"><?= DB_SSL_KEY ?></li>
<?php else: ?>
<li class="db-info-value border-bottom-thick" title="<?= t('This is the default setting') ?>"><i><?= t('Not Set') ?></i></li>
<li class="db-info-value border-bottom-thick not-set" title="<?= t('This is the default setting') ?>">
<?= t('Not Set') ?>
</li>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="db-info-title"><?= t('MySQL SSL Certificate') ?></li>
<?php if (DB_SSL_CERT != null): ?>
<li class="db-info-value value-path border-bottom-thick privacy"><?= DB_SSL_CERT ?></li>
<?php else: ?>
<li class="db-info-value border-bottom-thick" title="<?= t('This is the default setting') ?>"><i><?= t('Not Set') ?></i></li>
<li class="db-info-value border-bottom-thick not-set" title="<?= t('This is the default setting') ?>">
<?= t('Not Set') ?>
</li>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="db-info-title"><?= t('MySQL SSL Certificate Authority') ?></li>
<?php if (DB_SSL_CA != null): ?>
<li class="db-info-value value-path border-bottom-thick privacy"><?= DB_SSL_CA ?></li>
<?php else: ?>
<li class="db-info-value border-bottom-thick" title="<?= t('This is the default setting') ?>"><i><?= t('Not Set') ?></i></li>
<li class="db-info-value border-bottom-thick not-set" title="<?= t('This is the default setting') ?>">
<?= t('Not Set') ?>
</li>
<?php endif ?>
</span>
<span class="data-wrap">
<li class="db-info-title"><?= t('MySQL SSL Server Verification') ?></li>
<?php if (DB_VERIFY_SERVER_CERT != null): ?>
<li class="db-info-value value-path border-bottom-thick privacy"><?= DB_VERIFY_SERVER_CERT ?></li>
<?php else: ?>
<li class="db-info-value border-bottom-thick" title="<?= t('This is the default setting') ?>"><i><?= t('Not Set') ?></i></li>
<li class="db-info-value border-bottom-thick not-set" title="<?= t('This is the default setting') ?>">
<?= t('Not Set') ?>
</li>
<?php endif ?>
</span>
</div>
Expand Down Expand Up @@ -324,13 +334,11 @@
<?php if ($this->user->isAdmin()): ?>
<span class="data-wrap">
<li class="mail-info-title"><abbr title="Blind Carbon Copy">BCC</abbr></li>
<li class="mail-info-value border-bottom-thick privacy">
<?php if (empty(MAIL_BCC)): ?>
<i><?= t('Not Set') ?></i>
<li class="mail-info-value border-bottom-thick not-set"><?= t('Not Set') ?></li>
<?php else: ?>
<?= MAIL_BCC ?>
<li class="mail-info-value border-bottom-thick privacy"><?= MAIL_BCC ?></li>
<?php endif ?>
</li>
</span>
<?php endif ?>
<span class="data-wrap">
Expand Down Expand Up @@ -365,15 +373,13 @@
<li class="mail-info-title">
<abbr title="Simple Mail Transport Protocol"><?= t('SMTP Encryption') ?></abbr>
</li>
<li class="mail-info-value border-bottom-thick">
<?php if (MAIL_SMTP_ENCRYPTION == 'ssl'): ?>
SSL
<?php elseif (MAIL_SMTP_ENCRYPTION == 'tls'): ?>
TLS
<?php else: ?>
<?= t('Not Set') ?>
<?php endif ?>
</li>
<?php if (MAIL_SMTP_ENCRYPTION == 'ssl'): ?>
<li class="mail-info-value border-bottom-thick">SSL</li>
<?php elseif (MAIL_SMTP_ENCRYPTION == 'tls'): ?>
<li class="mail-info-value border-bottom-thick">TLS</li>
<?php else: ?>
<li class="mail-info-value border-bottom-thick not-set"><?= t('Not Set') ?></li>
<?php endif ?>
</span>
<?php endif ?>
<span class="data-wrap">
Expand All @@ -392,13 +398,11 @@
<li class="mail-info-title">
<abbr title="Simple Mail Transport Protocol">SMTP HELO <?= t('Command Name') ?></abbr>
</li>
<li class="mail-info-value border-bottom-thick">
<?php if (!empty(MAIL_SMTP_HELO_NAME)): ?>
<?= MAIL_SMTP_HELO_NAME ?>
<?php else: ?>
<i><?= t('Not Set') ?></i>
<?php endif ?>
</li>
<?php if (!empty(MAIL_SMTP_HELO_NAME)): ?>
<li class="mail-info-value border-bottom-thick"><?= MAIL_SMTP_HELO_NAME ?></li>
<?php else: ?>
<li class="mail-info-value border-bottom-thick not-set"><?= t('Not Set') ?></li>
<?php endif ?>
</span>
<?php endif ?>
<?php if (MAIL_TRANSPORT == 'sendmail'): ?>
Expand Down

0 comments on commit fa6098a

Please sign in to comment.