From f0cb98e63c97c26e2414fc27ada3457590c8d360 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Thu, 27 Nov 2014 17:56:59 +1100 Subject: [PATCH] Fixes #145 - Plugin details now support "homepage" property --- CHANGELOG.md | 4 ++++ modules/backend/assets/js/october.rowlink.js | 2 +- modules/system/controllers/updates/_column_author.htm | 9 +++++++++ modules/system/models/PluginVersion.php | 2 +- modules/system/models/pluginversion/columns.yaml | 4 +++- 5 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 modules/system/controllers/updates/_column_author.htm diff --git a/CHANGELOG.md b/CHANGELOG.md index e9a6d3270..c266b8875 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +* **Build 16x** (2014-11-xx) + - Plugin details method now support "homepage" property (see Plugins > Registration & Versions docs). + - Fixes a bug in the Datepicker using `time` mode. + * **Build 162** (2014-11-10) - Fixes an issue where the *Pages* tab is shown in the CMS when permission is denied. - Updates are no longer shown on the Dashboard if permission is denied. diff --git a/modules/backend/assets/js/october.rowlink.js b/modules/backend/assets/js/october.rowlink.js index 4ec11e93f..d61038b81 100644 --- a/modules/backend/assets/js/october.rowlink.js +++ b/modules/backend/assets/js/october.rowlink.js @@ -28,7 +28,7 @@ tr.each(function(){ var link = $(this).find(options.target).filter(function(){ - return !$(this).closest('td').hasClass(options.excludeClass) + return !$(this).closest('td').hasClass(options.excludeClass) && !$(this).hasClass(options.excludeClass) }).first() if (!link.length) return diff --git a/modules/system/controllers/updates/_column_author.htm b/modules/system/controllers/updates/_column_author.htm new file mode 100644 index 000000000..cc30988b4 --- /dev/null +++ b/modules/system/controllers/updates/_column_author.htm @@ -0,0 +1,9 @@ +homepage): ?> + + + + + + + + \ No newline at end of file diff --git a/modules/system/models/PluginVersion.php b/modules/system/models/PluginVersion.php index d8dbbe704..21045996c 100644 --- a/modules/system/models/PluginVersion.php +++ b/modules/system/models/PluginVersion.php @@ -25,7 +25,7 @@ class PluginVersion extends Model /** * @var array List of attribute names which should not be saved to the database. */ - protected $purgeable = ['name', 'description', 'orphaned', 'author', 'icon']; + protected $purgeable = ['name', 'description', 'orphaned', 'author', 'icon', 'homepage']; public $timestamps = false; diff --git a/modules/system/models/pluginversion/columns.yaml b/modules/system/models/pluginversion/columns.yaml index 0e3c09bea..5bd7b41e5 100644 --- a/modules/system/models/pluginversion/columns.yaml +++ b/modules/system/models/pluginversion/columns.yaml @@ -18,4 +18,6 @@ columns: author: label: system::lang.updates.plugin_author - sortable: false \ No newline at end of file + sortable: false + type: partial + path: column_author \ No newline at end of file