'show_volume' splitted into different pages
'/plugins' shows only plugins with 'system' capability development draft for volume sub-page links "access_denied" page added
This commit is contained in:
parent
5fd04cf350
commit
0e8a5daa73
8 changed files with 75 additions and 87 deletions
22
pythonrewrite/templates/volume_plugins.cs
Normal file
22
pythonrewrite/templates/volume_plugins.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?cs # $Id$ ?>
|
||||
|
||||
<?cs set:volume_plugin_count=0 ?><?cs
|
||||
each: x = Settings.PluginList ?><?cs
|
||||
if:x.Types.volume ?><?cs set:volume_plugin_count=volume_plugin_count+1 ?><?cs /if ?><?cs
|
||||
/each ?>
|
||||
|
||||
<?cs if:volume_plugin_count>0 ?>
|
||||
|
||||
<?cs # sort the Plugins - using the most stupid way :) ?>
|
||||
<?cs loop: order = #0, #100, #1
|
||||
?><?cs # plugins ?><?cs each:x = Settings.PluginList
|
||||
?><?cs if:x.Types.volume && x.Rank == order ?>
|
||||
<td <?cs if:Data.ActivePlugin == name(x)
|
||||
?>class="volume_plugin_active"<?cs
|
||||
else ?>class="volume_plugin_passive"<?cs
|
||||
/if ?>><a href="<?cs call:link('plugins/' + name(x),'device',Data.CurrentDisk.device,'','') ?>" title="<?cs var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></td><?cs
|
||||
/if ?><?cs
|
||||
/each ?><?cs
|
||||
/loop ?>
|
||||
|
||||
<?cs /if ?>
|
Loading…
Add table
Add a link
Reference in a new issue