cryptonas-branches/pythonrewrite/templates/show_volumes.cs

18 lines
660 B
C#
Raw Normal View History

2006-08-14 17:40:12 +02:00
<?cs # $Id$ ?>
<?cs # we use "loop" instead of "each" to keep the order of the disks ?>
<?cs loop: index = #0, subcount(Data.Disks)-1, #1 ?>
<a href="<?cs call:link('show_volume','device',Data.Disks[index].device,'','') ?>" title="<?cs
var:Data.Disks[index].name ?>">
2006-08-14 17:40:12 +02:00
<?cs # the "div" is the container for the background image ?>
<div class="<?cs if:Data.Disks[index].active ?>active<?cs
elif:Data.Disks[index].encryption || Data.Disks[index].plaintext ?>passive<?cs
else ?>void<?cs /if ?><?cs
if:Data.Disks[index].device == Data.CurrentDisk.device ?> current<?cs /if ?>">
<p><?cs var:Data.Disks[index].name ?></p>
2006-08-14 17:40:12 +02:00
</div>
</a>
<?cs /loop ?>
2006-08-14 17:40:12 +02:00