* added help content for disk overview

* legend for disk icons
 * larger disk icons
This commit is contained in:
age 2007-02-25 01:01:33 +00:00
parent a3b8057623
commit 6266c1f124
5 changed files with 41 additions and 6 deletions

View file

@ -7,6 +7,7 @@
<?cs call:show_plugin_icon() ?>
<?cs var:html_escape(Lang.Plugins.disks.Title) ?>
</legend>
<?cs call:show_help(Lang.Plugins.disks.Help.Disks) ?>
<?cs if:subcount(Data.Disks) == 0 ?>
<?cs call:hint("Plugins.disks.NoDisksAvailable") ?>
<?cs else ?>
@ -17,3 +18,26 @@
<?cs /if ?>
</fieldset>
<!-- display this symbol legend if help is enabled -->
<?cs if:Settings.Help ?>
<fieldset>
<legend>
<?cs call:show_plugin_icon() ?>
<?cs var:html_escape(Lang.Plugins.disks.Legend) ?>
</legend>
<?cs call:show_help(Lang.Plugins.disks.Help.Legend) ?>
<!-- this legend is hard coded -->
<br />
<p class="legend">
<b>unencrypted</b> volumes:<br />
<img src="cryptobox-misc/volume_passive_plain.gif" alt="disk_symbol" /> - deactivated
<img src="cryptobox-misc/volume_active_plain.gif" alt="disk_symbol" /> - activated
</p>
<p class="legend">
<b>encrypted</b> volumes:<br />
<img src="cryptobox-misc/volume_passive_crypto.gif" alt="disk_symbol" /> - deactivated
<img src="cryptobox-misc/volume_active_crypto.gif" alt="disk_symbol" /> - activated
</p>
</fieldset>
<?cs /if ?>

7
plugins/disks/disks.css Normal file
View file

@ -0,0 +1,7 @@
.legend img {
width: 64px;
height: 64px;
padding: 10px 5px 10px 25px;
margin-bottom:20px;
vertical-align: middle;
}

View file

@ -2,9 +2,13 @@ Name = Disk overview
Link = Disks
Title = Available disks
Help.Disks = All available disks appear in this frame. To divide several disks from each other, their names and sizes are written below. Reload this page after you've connected a new device. Click on a disk symbol to activate or format it or for getting detailed information. It's good practice to give your volumes identifying names before you use them.
AdviceMessage {
NoDisksAvailable {
Text = No available disks were found!
}
}
Legend = Icon legend
Help.Legend = Here you see all used disk icons and next to each its correlating meaning. Just to make sure: "unencrypted" means that anyone who get's this disk in his/her fingers will be able to read all data stored on it! The options "activated" and "deactivated" are describing the status of the disk inside the CryptoBox and so in your network. If a disk is "activated" its content is available in your network. So if you "activated" an "encrypted" disk, you can access its data in your network. This is symbolized by an opened lock icon.

View file

@ -92,7 +92,7 @@ class CryptoBoxContainer:
def set_name(self, new_name):
"""Define a humanly readable name of this container.
"""Define a human readable name of this container.
this also manages the name database
Available since: 0.3.0
@ -108,7 +108,7 @@ class CryptoBoxContainer:
raise CBInvalidName("the supplied new name contains illegal characters")
## check for another partition with the same name
if self.cbox.get_container_list(filter_name=new_name):
raise CBNameIsInUse("the supplied new name is already in use for anonther partition")
raise CBNameIsInUse("the supplied new name is already in use for another partition")
## maybe there a is an entry in the volumes database (but the partition is not active)
try:
## remove possibly existing inactive database item

View file

@ -365,8 +365,8 @@ div.volume {
}
div.volume img {
width: 48px;
height: 48px;
width: 64px;
height: 64px;
}
/* -------------=-=-=- help -=-=-=------------------ */
@ -450,8 +450,8 @@ table#volume_area td.volume_plugin_active img, table#volume_area td.volume_plugi
a.disk_symbol img {
margin-left: 20px;
width: 64px;
height: 64px;
width: 48px;
height: 48px;
}
div#pane_div {