cryptonas-branches/pythonrewrite/templates/form_system.cs

28 lines
814 B
C#

<?cs # $Id$ ?>
<h1><?cs var:html_escape(Lang.Title.System) ?></h1>
<p><ul>
<?cs # sort the Plugins - using the most stupid way :) ?>
<?cs loop: order = #0, #100, #1
?><?cs # plugins ?><?cs each:x = Lang.Modules
?><?cs if:x.Rank == order ?>
<li><a href="<?cs call:link('module_' + name(x),'','','','') ?>" title="<?cs
var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs
/if ?><?cs
/each ?><?cs
/loop ?>
<?cs # maybe someone forgot to set the rank of a module: we try to catch them ?>
<?cs # plugins ?><?cs each:x = Lang.Modules ?><?cs
if:!x.Rank || !(x.Rank >= 0 && x.Rank <= 100) ?>
<li><a href="<?cs call:link('module_' + name(x),'','','','') ?>" title="<?cs
var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs
/if ?><?cs
/each ?>
</ul></p>