aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/components/plugin_dependencies.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-04 21:04:34 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-04 21:04:34 +0000
commit1026deb7ef24677a2a0b48b4297911a4c2eceb6d (patch)
treef155d96d9369aab9adae2f2c07c69fac1fd84914 /views/default/admin/components/plugin_dependencies.php
parent21874b0235acfe83d9f260d9bc71489dbce9172f (diff)
downloadelgg-1026deb7ef24677a2a0b48b4297911a4c2eceb6d.tar.gz
elgg-1026deb7ef24677a2a0b48b4297911a4c2eceb6d.tar.bz2
Added new priority 'requires' for plugin dep system. You can now say that a plugin is required to be after / before another plugin in the system.
git-svn-id: http://code.elgg.org/elgg/trunk@8016 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/admin/components/plugin_dependencies.php')
-rw-r--r--views/default/admin/components/plugin_dependencies.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/views/default/admin/components/plugin_dependencies.php b/views/default/admin/components/plugin_dependencies.php
index 9e0e284f1..cd38e98b0 100644
--- a/views/default/admin/components/plugin_dependencies.php
+++ b/views/default/admin/components/plugin_dependencies.php
@@ -11,7 +11,7 @@
$plugin = elgg_get_array_value('plugin', $vars, false);
$deps = $plugin->package->checkDependencies(true);
-$columns = array('type', 'name', 'value', 'local_value', 'comment');
+$columns = array('type', 'name', 'expected_value', 'local_value', 'comment');
echo '<table class="elgg-plugins-dependencies styled">
<tr>
@@ -19,11 +19,12 @@ echo '<table class="elgg-plugins-dependencies styled">
foreach ($columns as $column) {
$column = elgg_echo("admin:plugins:dependencies:$column");
- echo "<th>$column</th>";
+ echo "<th class=\"pas\">$column</th>";
}
echo '<tr/>';
+$row = 'odd';
foreach ($deps as $dep) {
$fields = elgg_get_plugin_dependency_strings($dep);
@@ -33,13 +34,15 @@ foreach ($deps as $dep) {
$class = 'elgg-unsatisfied-dependency';
}
- echo "<tr class=\"$class\">";
+ echo "<tr class=\"$row\">";
foreach ($columns as $column) {
- echo "<td class=\"pam \">{$fields[$column]}</td>";
+ echo "<td class=\"pas $class\">{$fields[$column]}</td>";
}
echo '</tr>';
+
+ $row = ($row == 'odd') ? 'even' : 'odd';
}
echo '</table>'; \ No newline at end of file