Skip to content

Commit

Permalink
Merge pull request #73 from humhub-contrib/fix-resources-path-v17
Browse files Browse the repository at this point in the history
Fix for assets
  • Loading branch information
luke- authored Nov 14, 2024
2 parents 10a5548 + 8225559 commit 9abb5ec
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 7 deletions.
33 changes: 33 additions & 0 deletions assets/Assets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php

/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/

namespace humhub\modules\linklist\assets;

use yii\web\AssetBundle;

class Assets extends AssetBundle
{
/**
* @inheritdoc
*/
public $sourcePath = '@linklist/resources';

/**
* @inheritdoc
*/
public $css = [
'linklist.css',
];

/**
* @inheritdoc
*/
public $js = [
'linklist.js',
];
}
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog
-------------------------
- Enh #69: Use PHP CS Fixer
- Enh #70: Reduce translation message categories
- Fix #73: Asset not being loaded

0.8.4 (July 30, 2024)
---------------------
Expand Down
2 changes: 1 addition & 1 deletion views/linklist/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use humhub\modules\ui\form\widgets\ActiveForm;
use yii\helpers\Html;

humhub\modules\linklist\Assets::register($this);
humhub\modules\linklist\assets\Assets::register($this);

?>

Expand Down
4 changes: 2 additions & 2 deletions views/linklist/editCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Sebastian Stumpf
*
*/
humhub\modules\linklist\Assets::register($this);
humhub\modules\linklist\assets\Assets::register($this);

use humhub\modules\ui\form\widgets\ActiveForm;
use yii\helpers\Html;
Expand Down Expand Up @@ -42,4 +42,4 @@

<?php $form::end(); ?>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions views/linklist/editLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author Sebastian Stumpf
*
*/
humhub\modules\linklist\Assets::register($this);
humhub\modules\linklist\assets\Assets::register($this);

use humhub\modules\ui\form\widgets\ActiveForm;
use yii\helpers\Html;
Expand Down Expand Up @@ -46,4 +46,4 @@

<?php $form::end(); ?>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion views/linklist/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/* @var Link[] $links */
/* @var int $accessLevel */

humhub\modules\linklist\Assets::register($this);
humhub\modules\linklist\assets\Assets::register($this);
?>
<div class="panel panel-default">
<div class="panel-body">
Expand Down
2 changes: 1 addition & 1 deletion widgets/views/linklistPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

use humhub\libs\Html;

humhub\modules\linklist\Assets::register($this);
humhub\modules\linklist\assets\Assets::register($this);
?>
<div class="panel panel-default panel-linklist-widget">
<div class="panel-heading">
Expand Down

0 comments on commit 9abb5ec

Please sign in to comment.