Skip to content

Commit 96b8b17

Browse files
committed
Rename CSS class
1 parent 4f9156f commit 96b8b17

5 files changed

Lines changed: 21 additions & 15 deletions

File tree

Plugin.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,17 @@ public function getPluginAuthor()
4545

4646
public function getPluginVersion()
4747
{
48-
return '1.0.0';
48+
return '1.0.1';
4949
}
5050

5151
public function getPluginHomepage()
5252
{
5353
return 'https://github.com/kanboard/plugin-oauth2';
5454
}
55+
56+
public function getCompatibleVersion()
57+
{
58+
return '>=1.0.37';
59+
}
5560
}
5661

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Author
1414
Requirements
1515
------------
1616

17-
- Kanboard >= 1.0.34
17+
- Kanboard >= 1.0.37
1818

1919
Installation
2020
------------
@@ -52,6 +52,9 @@ Copy those values in the Kanboard's settings.
5252
- **Email Key**: Key used to fetch the user email
5353
- **User ID Key**: Key used to fetch the unique user ID
5454

55+
Examples
56+
--------
57+
5558
Example for Github OAuth2:
5659

5760
- **Authorize URL**: `https://github.com/login/oauth/authorize`

Template/auth/login.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<ul class="no-bullet">
22
<li>
3-
<i class="fa fa-lock fa-fw" aria-hidden="true"></i>
4-
<?= $this->url->link(t('OAuth2 login'), 'OAuthController', 'handler', array('plugin' => 'OAuth2')) ?>
3+
<?= $this->url->icon('lock', t('OAuth2 login'), 'OAuthController', 'handler', array('plugin' => 'OAuth2')) ?>
54
</li>
65
</ul>

Template/config/integration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<h3><i class="fa fa-lock fa-fw" aria-hidden="true"></i><?= t('OAuth2 Authentication') ?></h3>
2-
<div class="listing">
3-
2+
<div class="panel">
43
<?= $this->form->label(t('Callback URL'), 'oauth2_callback_url') ?>
54
<input type="text" class="auto-select" readonly="readonly" value="<?= $this->url->href('OAuthController', 'handler', array('plugin' => 'OAuth2'), false, '', true) ?>"/>
65

Template/user/external.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<h3><i class="fa fa-lock fa-fw" aria-hidden="true"></i><?= t('OAuth2 Account') ?></h3>
22

3-
<p class="listing">
4-
<?php if ($this->user->isCurrentUser($user['id'])): ?>
5-
<?php if (empty($user['oauth2_user_id'])): ?>
6-
<?= $this->url->link(t('Link OAuth2 account'), 'OAuthController', 'handler', array('plugin' => 'OAuth2'), true) ?>
3+
<div class="panel">
4+
<?php if ($this->user->isCurrentUser($user['id'])): ?>
5+
<?php if (empty($user['oauth2_user_id'])): ?>
6+
<?= $this->url->link(t('Link OAuth2 account'), 'OAuthController', 'handler', array('plugin' => 'OAuth2'), true) ?>
7+
<?php else: ?>
8+
<?= $this->url->link(t('Unlink my OAuth2 account'), 'OAuthController', 'unlink', array('backend' => 'OAuth2'), true) ?>
9+
<?php endif ?>
710
<?php else: ?>
8-
<?= $this->url->link(t('Unlink my OAuth2 account'), 'OAuthController', 'unlink', array('backend' => 'OAuth2'), true) ?>
11+
<?= empty($user['oauth2_user_id']) ? t('No account linked.') : t('Account linked.') ?>
912
<?php endif ?>
10-
<?php else: ?>
11-
<?= empty($user['oauth2_user_id']) ? t('No account linked.') : t('Account linked.') ?>
12-
<?php endif ?>
13-
</p>
13+
</div>

0 commit comments

Comments
 (0)