Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.1.1 (Unreleased)
-----------------------
- Fix #7: Use bootstrap class to build button and link

1.1.0 (August 28, 2025)
-----------------------
- Fix: Update module resources path
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Integrating GitHub Sign-In (OAuth 2.0).",
"keywords": [
],
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/humhub-contrib/auth-github",
"humhub": {
"minVersion": "1.18"
Expand Down
16 changes: 9 additions & 7 deletions views/admin/index.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php
/* @var $this \humhub\components\View */
/* @var $model \humhubContrib\auth\github\models\ConfigureForm */

use humhub\widgets\bootstrap\Button;
use humhub\widgets\bootstrap\Link;
use humhub\widgets\form\ActiveForm;
use yii\helpers\Html;
use humhubContrib\auth\github\models\ConfigureForm;

/* @var $model ConfigureForm */
?>
<div class="container-fluid">
<div class="panel panel-default">
Expand All @@ -13,7 +14,10 @@

<div class="panel-body">
<p>
<?= Html::a(Yii::t('AuthGithubModule.base', 'GitHub Documentation'), 'https://docs.github.com/en/developers/apps/creating-an-oauth-app', ['class' => 'btn btn-primary float-end btn-sm', 'target' => '_blank']); ?>
<?= Link::primary(Yii::t('AuthGithubModule.base', 'GitHub Documentation'))
->link('https://docs.github.com/en/developers/apps/creating-an-oauth-app')
->blank()->loader(false)
->right()->sm() ?>
<?= Yii::t('AuthGithubModule.base', 'Please follow the GitHub instructions to create the required <strong>OAuth client</strong> credentials.'); ?>
<br/>
</p>
Expand All @@ -31,9 +35,7 @@
<?= $form->field($model, 'redirectUri')->textInput(['readonly' => true]); ?>
<br/>

<div class="mb-3">
<?= Html::submitButton(Yii::t('base', 'Save'), ['class' => 'btn btn-primary', 'data-ui-loader' => '']) ?>
</div>
<?= Button::save()->submit() ?>

<?php ActiveForm::end(); ?>

Expand Down
Loading