$def with (disk_profile)


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title>$_p("Boot menu")</title>
        <link rel="stylesheet" href="/static/plugins/bootmenu/bootmenu.css" type="text/css" media="screen" charset="utf-8"/>
    </head>
    <body>
        <div id="header">
            <img id="logo" src="/static/images/logo.png" />
            <h1>$_p("OpenGnSys Boot Menu")</h1>
        </div>

        <div id="content">
        $if disk_profile:
            $for disk in disk_profile.get_disks():
                $for partition in disk.get_bootable_partitions():
                    <div id="disk">
                        <div class="entry boot">
                            <a href="command:ogr Boot $(disk.number) $(partition.number)">
                                <img src="/static/plugins/bootmenu/$(partition.getos())-boot.png" alt="boot"/><br/>
                                $(_p("Boot %s") % partition.image.name)
                            </a>
                            <p>$(partition.image.description)</p>
                        </div>
                        <div class="entry restore">
                            <a href="command:ogr RestoreImage 'REPO' $(partition.image.name) $(disk.number) $(partition.number)">
                                <img src="/static/plugins/bootmenu/$(partition.getos())-restore.png" alt="restore"/><br/>
                                $(_p("Restore %s") % partition.image.name)
                            </a>
                            <p>$(partition.image.description)</p>
                        </div>
                        <div class="clear"></div>
                    </div>
        $else:
            <p>$_p("No disk profile associated to this computer yet")</p>
        </div>
        <div id="foot">
            <div class="entry">
            <a href="command:ogr reboot">$_p("Reboot")</a>
            </div>
            <div class="entry">
            <a href="command:ogr shutdown">$_p("Power off")</a>
            </div>
        </div>
    <body>
</html>
