| 1 |
? my ($app, @windows) = @_; |
| 2 |
? my $titlewin = @windows > 1 ? $windows[1] : $windows[0]; |
| 3 |
<!DOCTYPE html> |
| 4 |
<html> |
| 5 |
<head> |
| 6 |
<title><?= $titlewin->title ?></title> |
| 7 |
<script type="text/javascript" src="<?= $app->static_url("alice.js") ?>?images=<?= $_[0]->config->images || 'show' ?>&debug=<?= $app->config->show_debug ? 'true' : 'false' ?>&timeformat=<?= $app->config->timeformat ?>&mtime=1272819991"></script> |
| 8 |
<link rel="shortcut icon" href="<?= $app->static_url("favicon.ico") ?>"> |
| 9 |
<link type="text/css" rel="stylesheet" href="<?= $app->static_url("alice-".$app->config->style.".css") ?>" /> |
| 10 |
<link rel="apple-touch-icon" href="<?= $app->static_url("image/alice.png") ?>" /> |
| 11 |
<link rel="apple-touch-startup-image" href="<?= $app->static_url("image/alice.png") ?>" /> |
| 12 |
<meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1" /> |
| 13 |
<meta name="apple-mobile-web-app-capable" content="yes"> |
| 14 |
<meta name="format-detection" content="telephone=no"> |
| 15 |
</head> |
| 16 |
<body> |
| 17 |
<img style="position:absolute;top:-100px;left:-100px" src="<?= $app->static_url("image/sprites.png") ?>" /> |
| 18 |
<div id="container"> |
| 19 |
<ul id="controls"> |
| 20 |
<li id="config_button"> |
| 21 |
<select class="select_overlay" id="config_overlay"> |
| 22 |
<option value="Logs">Logs</option> |
| 23 |
<option value="Preferences">Preferences</option> |
| 24 |
<option value="Connections">Connections</option> |
| 25 |
<option value="Help">Help</option> |
| 26 |
<? if ($_[0]->auth_enabled) { ?> |
| 27 |
<option disabled>──────</option> |
| 28 |
<option value="Logout">Logout</option> |
| 29 |
<? } ?> |
| 30 |
</select> |
| 31 |
</li> |
| 32 |
<li id="tab_overflow_button"> |
| 33 |
<select class="select_overlay" id="tab_overflow_overlay"> |
| 34 |
<? for my $window (@windows) { ?> |
| 35 |
<?= $_mt->render_file('select.html', $_[0], $window); ?> |
| 36 |
<? } ?> |
| 37 |
</select> |
| 38 |
</li> |
| 39 |
</ul> |
| 40 |
<div id="tab_container"> |
| 41 |
<ul id="tabs"> |
| 42 |
<? for my $window (@windows) { ?> |
| 43 |
<?= $_mt->render_file('tab.html', $_[0], $window) ?> |
| 44 |
<? } ?> |
| 45 |
</ul> |
| 46 |
</div> |
| 47 |
<div id="windows"> |