|
|
|
@ -86,8 +86,34 @@ def:print_form_header(form_name, action) ?><?cs #
|
|
|
|
|
/def ?><?cs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def:show_plugin(plugin) ?><?cs
|
|
|
|
|
# show the icon and the name of this plugin
|
|
|
|
|
?><a href="<?cs call:link('plugins/' + plugin,'','','','') ?>" title="<?cs var:html_escape(Settings.PluginList[plugin].Name) ?>"><div<?cs each:x=Settings.PluginList[plugin].Types ?> class="plugin_<?cs var:html_escape(name(x)) ?><?cs /each ?>"><img src="<?cs call:link('icons/plugins/' + plugin, '','','','') ?>" alt="<?cs var:html_escape('icon: ' + plugin) ?>" /><br/><?cs var:html_escape(Settings.PluginList[plugin].Link) ?></div></a><?cs
|
|
|
|
|
def:show_plugin(plugin, type) ?><?cs
|
|
|
|
|
# show the icon and the name of a plugin of a give type (system/volume/menu) ?>
|
|
|
|
|
<div class="plugin_<?cs var:html_escape(type) ?>">
|
|
|
|
|
<a href="<?cs call:link('plugins/' + plugin,'','','','') ?>" title="<?cs var:html_escape(Settings.PluginList[plugin].Link) ?>">
|
|
|
|
|
<img src="<?cs call:link('icons/plugins/' + plugin, '','','','') ?>" alt="<?cs var:html_escape('icon: ' + plugin) ?>" /><br/><?cs
|
|
|
|
|
var:html_escape(Settings.PluginList[plugin].Link) ?></a></div><?cs
|
|
|
|
|
/def ?><?cs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def:show_volume(index) ?><?cs
|
|
|
|
|
# show the icon of the volume ?>
|
|
|
|
|
<?cs if:Data.Disks[index].active ?><?cs
|
|
|
|
|
if:Data.Disks[index].encryption ?><?cs
|
|
|
|
|
set:filename='volume_active_crypto.png' ?><?cs
|
|
|
|
|
else ?><?cs
|
|
|
|
|
set:filename='volume_active_plain.png' ?><?cs
|
|
|
|
|
/if ?><?cs
|
|
|
|
|
else ?><?cs
|
|
|
|
|
if:Data.Disks[index].encryption ?><?cs
|
|
|
|
|
set:filename='volume_passive_crypto.png' ?><?cs
|
|
|
|
|
else ?><?cs
|
|
|
|
|
set:filename='volume_passive_plain.png' ?><?cs
|
|
|
|
|
/if ?><?cs
|
|
|
|
|
/if ?>
|
|
|
|
|
<div class="volume">
|
|
|
|
|
<a href="<?cs call:link('plugins/volume_mount','device',Data.Disks[index].device,'','') ?>" title="<?cs var:html_escape(Data.Disks[index].name) ?>">
|
|
|
|
|
<img src="<?cs call:link('cryptobox-misc/' + filename,'','','','') ?>" alt="icon: volume" /><br/><?cs
|
|
|
|
|
var:html_escape(Data.Disks[index].name) ?></a></div><?cs
|
|
|
|
|
/def ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|