Skip to content

Commit 3aed431

Browse files
committed
Rename CSS class
1 parent 87b92d2 commit 3aed431

5 files changed

Lines changed: 18 additions & 15 deletions

File tree

Plugin.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,16 @@ public function getPluginAuthor()
7171

7272
public function getPluginVersion()
7373
{
74-
return '1.0.3';
74+
return '1.0.4';
7575
}
7676

7777
public function getPluginHomepage()
7878
{
7979
return 'https://github.com/kanboard/plugin-google-auth';
8080
}
81+
82+
public function getCompatibleVersion()
83+
{
84+
return '>=1.0.37';
85+
}
8186
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Author
1515
Requirements
1616
------------
1717

18-
- Kanboard >= 1.0.29
18+
- Kanboard >= 1.0.37
1919
- Access to the [Google Developer Console](https://console.developers.google.com)
2020
- OAuth2 Google API credentials
2121

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-google fa-fw"></i>
4-
<?= $this->url->link(t('Login with my Google Account'), 'OAuthController', 'handler', array('plugin' => 'GoogleAuth')) ?>
3+
<?= $this->url->icon('google', t('Login with my Google Account'), 'OAuthController', 'handler', array('plugin' => 'GoogleAuth')) ?>
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-google fa-fw"></i><?= t('Google Authentication') ?></h3>
2-
<div class="listing">
3-
2+
<div class="panel">
43
<?= $this->form->label(t('Google OAuth callback URL'), 'google_oauth_url') ?>
54
<input type="text" class="auto-select" readonly="readonly" value="<?= $this->url->href('OAuthController', 'handler', array('plugin' => 'GoogleAuth'), 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-google fa-fw"></i> <?= t('Google Account') ?></h3>
22

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

0 commit comments

Comments
 (0)