$def with (plugins)
$var title: PluginManager
$var hierarchy = []
$var tab: pluginmanager
$var css = ["pmanager.css"]

$for p in plugins:
    <div class="plugin$(" enabled" if p.enabled else "")">
        <div class="plugin_title">
            $p.human_name ($p.version)
        </div>
        <div class="plugin_description">
        <p>$p.description</p>
        </div>
        <ul class="plugin_dependencies">
            $for dep in p.get_dependencies():
                <li> $dep </li>
        </ul>

        <div class="tools">
            $if p.enabled:
                <a href="/pluginmanager/disable/$p.name">$_("Disable")</a>
                $if p.get_options():
                    <a href="/pluginmanager/options/$p.name">$_("Options")</a>
            $else:
                <a href="/pluginmanager/enable/$p.name">$_("Enable")</a>

            <a href="/pluginmanager/uninstall/$p.name">$_("Uninstall")</a>
        </div>
    </div>
