|
|
|
@ -116,8 +116,8 @@ def:print_form_header(form_name, action) ?><?cs #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def:show_volume_icon(volume) ?><?cs
|
|
|
|
|
# show the appropriate icon for the current state of the volume ?>
|
|
|
|
|
<?cs if:volume.active ?><?cs
|
|
|
|
|
# show the appropriate icon for the current state of the volume ?><?cs
|
|
|
|
|
if:volume.active ?><?cs
|
|
|
|
|
if:volume.encryption ?><?cs
|
|
|
|
|
set:filename='volume_active_crypto.gif' ?><?cs
|
|
|
|
|
else ?><?cs
|
|
|
|
@ -129,8 +129,7 @@ def:show_volume_icon(volume) ?><?cs
|
|
|
|
|
else ?><?cs
|
|
|
|
|
set:filename='volume_passive_plain.gif' ?><?cs
|
|
|
|
|
/if ?><?cs
|
|
|
|
|
/if ?>
|
|
|
|
|
<img src="<?cs call:link('cryptobox-misc/' + filename,'','','','') ?>" alt="icon: volume" /><?cs
|
|
|
|
|
/if ?><img src="<?cs call:link('cryptobox-misc/' + filename,'','','','') ?>" alt="icon: volume" /><?cs
|
|
|
|
|
/def ?><?cs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -156,9 +155,11 @@ def:help_link(pagename) ?><?cs
|
|
|
|
|
|
|
|
|
|
def:handle_messages() ?><?cs
|
|
|
|
|
# call this function once for every page - otherwise your risk to loose messages
|
|
|
|
|
?><?cs if:messages_are_handled ?>HANDLE_MESSAGE CALLED TWICE - PLEASE FIX THIS<?cs /if
|
|
|
|
|
?><?cs if:Data.Warning ?><?cs call:warning(Data.Warning) ?><?cs /if
|
|
|
|
|
?><?cs if:Data.Success ?><?cs call:success(Data.Success) ?><?cs /if
|
|
|
|
|
?><?cs set:messages_are_handled = 1 ?><?cs
|
|
|
|
|
# if it gets called twice somehow, then we just ignore it
|
|
|
|
|
?><?cs if:!messages_are_handled
|
|
|
|
|
?><?cs if:Data.Warning ?><?cs call:warning(Data.Warning) ?><?cs /if
|
|
|
|
|
?><?cs if:Data.Success ?><?cs call:success(Data.Success) ?><?cs /if
|
|
|
|
|
?><?cs set:messages_are_handled = 1
|
|
|
|
|
?><?cs /if ?><?cs
|
|
|
|
|
/def ?>
|
|
|
|
|
|
|
|
|
|