Skip to content

Commit

Permalink
FIX: Migrate Icons for Improved Performance
Browse files Browse the repository at this point in the history
 - Resolves #15
  • Loading branch information
aljawaid committed Sep 7, 2023
1 parent 22d5c92 commit 5d1fbb5
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 26 deletions.
6 changes: 6 additions & 0 deletions Assets/css/kanboard-support-icons.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Assets/css/kanboard-support.css
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,9 @@ a.kb-updates-link {
transition: var(--transition-kanboard-support);
font-style: italic;
}

.webhooks-page h2 .webhooks-icon {
vertical-align: text-top;
width: 22px;
height: 22px;
}
54 changes: 28 additions & 26 deletions Template/config/webhook.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
<!-- KanboardSupport Plugin -->
<div class="page-header">
<h2 class=""><?= t('Webhook Settings') ?></h2>
</div>
<form method="post" class="" action="<?= $this->url->href('ConfigController', 'save', array('redirect' => 'webhook')) ?>" autocomplete="true">
<?= $this->form->csrf() ?>
<div class="webhooks-page">
<div class="page-header" style="margin-top: 10px;">
<h2 class=""><span class="webhooks-icon"></span> <?= t('Webhook Settings') ?></h2>
</div>
<form method="post" class="" action="<?= $this->url->href('ConfigController', 'save', array('redirect' => 'webhook')) ?>" autocomplete="true">
<?= $this->form->csrf() ?>

<?= $this->form->label(t('Webhook URL'), 'webhook_url') ?>
<?= $this->form->text('webhook_url', $values, $errors) ?>

<?= $this->form->label(t('Webhook URL'), 'webhook_url') ?>
<?= $this->form->text('webhook_url', $values, $errors) ?>
<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
</div>
</form>

<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
<div class="page-header margin-top">
<h2 class=""><?= t('Webhook Token') ?></h2>
</div>
<section class="message error cleaner-warning">
<header></header>
<i class=""></i>
<h3 class="">
<span class="message-title"><?= t('Warning') ?></span>
<span class="message-text"><?= t('Resetting the webhook token may require the cron background jobs to be manually updated') ?></span>
</h3>
</section>
<div class="panel">
<?= t('Token:') ?>
<strong><?= $this->text->e($values['webhook_token']) ?></strong>
</div>
</form>

<div class="page-header margin-top">
<h2 class=""><?= t('Webhook Token') ?></h2>
</div>
<section class="message error cleaner-warning">
<header></header>
<i class=""></i>
<h3 class="">
<span class="message-title"><?= t('Warning') ?></span>
<span class="message-text"><?= t('Resetting the webhook token may require the cron background jobs to be manually updated') ?></span>
</h3>
</section>
<div class="panel">
<?= t('Token:') ?>
<strong><?= $this->text->e($values['webhook_token']) ?></strong>
<?= $this->url->link(t('Reset Token'), 'ConfigController', 'token', array('type' => 'webhook'), true, 'btn btn-red') ?>
</div>

<?= $this->url->link(t('Reset Token'), 'ConfigController', 'token', array('type' => 'webhook'), true, 'btn btn-red') ?>

0 comments on commit 5d1fbb5

Please sign in to comment.