diff --git a/resources/views/plugins/list.blade.php b/resources/views/plugins/list.blade.php index b912911..5657974 100644 --- a/resources/views/plugins/list.blade.php +++ b/resources/views/plugins/list.blade.php @@ -33,37 +33,55 @@ {{ json_decode($item->description)->{app()->getLocale()} }}

-
- @if(class_exists("Doctrine\DBAL\DriverManager") && (bool)config('tomato-plugins.allow_generator')) - - - - - - @endif - @if((bool)config('tomato-plugins.allow_toggle')) - @if(!$item->active) - - - +
+
+ @if(class_exists("Doctrine\DBAL\DriverManager") && (bool)config('tomato-plugins.allow_generator')) + + + @endif - @if($item->active) - - - + @if((bool)config('tomato-plugins.allow_toggle')) + @if(!$item->active) + + + + + + @endif + @if($item->active) + + + + + + @endif + @endif + @if((bool)config('tomato-plugins.allow_destroy')) + + + @endif - @endif - @if((bool)config('tomato-plugins.allow_destroy')) - - - +
+
+ @if($item->github) + + + + - - @endif + @endif + @if($item->docs) + + + + + + @endif +
@endforeach diff --git a/src/Models/Plugin.php b/src/Models/Plugin.php index 73a503d..d5b507f 100644 --- a/src/Models/Plugin.php +++ b/src/Models/Plugin.php @@ -20,6 +20,8 @@ class Plugin extends Model 'placeholder' => 'string', 'icon' => 'string', 'version' => 'string', + 'docs' => 'string', + 'github' => 'string', 'active' => 'boolean', ]; @@ -46,6 +48,8 @@ public function getRows() "placeholder" => $info->placeholder, "version" => $info->version, "icon" => $info->icon, + "github" => isset($info->github)?$info->github:null, + "docs" => isset($info->docs)?$info->docs:null, "active" => Module::find($info->name)->isEnabled() ]; });