[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.7-885-gf54031c
Thomas Sibley
trs at bestpractical.com
Wed Dec 15 16:31:08 EST 2010
The branch, 3.9-trunk has been updated
via f54031c07ce86be01c7d401abfd88e258b468c56 (commit)
from 3d682a92a227a8483f314b7ad0e976af7fd1f8a7 (commit)
Summary of changes:
share/html/Admin/Global/Plugins.html | 36 +++++++++++++++------------------
share/html/NoAuth/css/base/admin.css | 34 ++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+), 20 deletions(-)
- Log -----------------------------------------------------------------
commit f54031c07ce86be01c7d401abfd88e258b468c56
Author: Thomas Sibley <trs at bestpractical.com>
Date: Wed Dec 15 16:15:18 2010 -0500
Style the plugins list a little cleaner
diff --git a/share/html/Admin/Global/Plugins.html b/share/html/Admin/Global/Plugins.html
index cb2f177..4e79226 100644
--- a/share/html/Admin/Global/Plugins.html
+++ b/share/html/Admin/Global/Plugins.html
@@ -49,33 +49,29 @@
<& /Elements/Tabs &>
<& /Admin/Elements/CheckRestart &>
-<style type="text/css">
-li.plugin-enabled {
- background: lightgreen;
-}
-</style>
-
<& /Elements/ListActions, actions => \@results &>
-<ul>
+
+% if (not keys %$plugins) {
+<p><&|/l&>No installed plugins were found.</&></p>
+% } else {
+<p><&|/l&>The following plugins were found. You may enable or disable plugins not listed in your SiteConfig's <code>@Plugins</code> setting by using the buttons below.</&></p>
+% }
+
+<ul class="plugin-list">
% for my $plugin_name (sort keys %$plugins) {
% my $plugin = $plugins->{$plugin_name};
% my $enabled = $plugin->Enabled;
<li class="plugin-<% $enabled ? 'enabled' : 'disabled'%>">
-<span><% $plugin->Name %></span>
-<span><% $plugin->Description || loc('(No Description)') %></span>
- <form method="POST">
- <input name="PluginName" value="<% $plugin->Name %>" type="hidden" />
-% if ($enabled) {
- <input name="Disable" value="Disable" type="submit" />
-% }
-% else {
- <input name="Enable" value="Enable" type="submit" />
-% }
- </form>
-
+<span class="name"><% $plugin->Name %></span>
+<span class="description"><% $plugin->Description || loc("No description") %></span>
+<form method="POST">
+ <input name="PluginName" value="<% $plugin->Name %>" type="hidden" />
+ <input name="<% $enabled ? 'Disable' : 'Enable' %>"
+ value="<% $enabled ? loc('Disable') : loc('Enable') %>"
+ type="submit" class="submit" />
+</form>
</li>
% }
-
</ul>
<%init>
diff --git a/share/html/NoAuth/css/base/admin.css b/share/html/NoAuth/css/base/admin.css
index 2d03ace..6caad45 100644
--- a/share/html/NoAuth/css/base/admin.css
+++ b/share/html/NoAuth/css/base/admin.css
@@ -90,3 +90,37 @@ ul.list-menu ul li {
padding-bottom: 0;
}
+.plugin-list {
+ margin-left: 0;
+ padding-left: 0;
+ list-style: none;
+ width: 50%;
+}
+
+.plugin-list li {
+ border-bottom: 1px solid #ccc;
+ padding: 0.5em 1em;
+ clear: both;
+ position: relative;
+}
+
+.plugin-list .name {
+ font-weight: bold;
+}
+
+.plugin-list .description {
+ display: block;
+ font-style: italic;
+ margin-right: 6em;
+}
+
+.plugin-list .plugin-disabled {
+ color: #a0a0a0;
+}
+
+.plugin-list li form .submit {
+ position: absolute;
+ top: 0.5em;
+ right: 1em;
+}
+
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list