Skip to content

Commit

Permalink
Rename CSS class
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Jan 8, 2017
1 parent 4f9156f commit 96b8b17
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
7 changes: 6 additions & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,17 @@ public function getPluginAuthor()

public function getPluginVersion()
{
return '1.0.0';
return '1.0.1';
}

public function getPluginHomepage()
{
return 'https://github.com/kanboard/plugin-oauth2';
}

public function getCompatibleVersion()
{
return '>=1.0.37';
}
}

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Author
Requirements
------------

- Kanboard >= 1.0.34
- Kanboard >= 1.0.37

Installation
------------
Expand Down Expand Up @@ -52,6 +52,9 @@ Copy those values in the Kanboard's settings.
- **Email Key**: Key used to fetch the user email
- **User ID Key**: Key used to fetch the unique user ID

Examples
--------

Example for Github OAuth2:

- **Authorize URL**: `https://github.com/login/oauth/authorize`
Expand Down
3 changes: 1 addition & 2 deletions Template/auth/login.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<ul class="no-bullet">
<li>
<i class="fa fa-lock fa-fw" aria-hidden="true"></i>
<?= $this->url->link(t('OAuth2 login'), 'OAuthController', 'handler', array('plugin' => 'OAuth2')) ?>
<?= $this->url->icon('lock', t('OAuth2 login'), 'OAuthController', 'handler', array('plugin' => 'OAuth2')) ?>
</li>
</ul>
3 changes: 1 addition & 2 deletions Template/config/integration.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<h3><i class="fa fa-lock fa-fw" aria-hidden="true"></i><?= t('OAuth2 Authentication') ?></h3>
<div class="listing">

<div class="panel">
<?= $this->form->label(t('Callback URL'), 'oauth2_callback_url') ?>
<input type="text" class="auto-select" readonly="readonly" value="<?= $this->url->href('OAuthController', 'handler', array('plugin' => 'OAuth2'), false, '', true) ?>"/>

Expand Down
18 changes: 9 additions & 9 deletions Template/user/external.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<h3><i class="fa fa-lock fa-fw" aria-hidden="true"></i><?= t('OAuth2 Account') ?></h3>

<p class="listing">
<?php if ($this->user->isCurrentUser($user['id'])): ?>
<?php if (empty($user['oauth2_user_id'])): ?>
<?= $this->url->link(t('Link OAuth2 account'), 'OAuthController', 'handler', array('plugin' => 'OAuth2'), true) ?>
<div class="panel">
<?php if ($this->user->isCurrentUser($user['id'])): ?>
<?php if (empty($user['oauth2_user_id'])): ?>
<?= $this->url->link(t('Link OAuth2 account'), 'OAuthController', 'handler', array('plugin' => 'OAuth2'), true) ?>
<?php else: ?>
<?= $this->url->link(t('Unlink my OAuth2 account'), 'OAuthController', 'unlink', array('backend' => 'OAuth2'), true) ?>
<?php endif ?>
<?php else: ?>
<?= $this->url->link(t('Unlink my OAuth2 account'), 'OAuthController', 'unlink', array('backend' => 'OAuth2'), true) ?>
<?= empty($user['oauth2_user_id']) ? t('No account linked.') : t('Account linked.') ?>
<?php endif ?>
<?php else: ?>
<?= empty($user['oauth2_user_id']) ? t('No account linked.') : t('Account linked.') ?>
<?php endif ?>
</p>
</div>

0 comments on commit 96b8b17

Please sign in to comment.