RT mobile UI, #11630
[freeside.git] / rt / share / html / m / _elements / header
1 <%args>
2 $title => undef
3 $show_home_button => 1
4 </%args>
5 <%init>
6 $r->headers_out->{'Pragma'} = 'no-cache';
7 $r->headers_out->{'Cache-control'} = 'no-cache';
8
9 my $head = '';
10
11 my $etc = '';
12
13 </%init>
14 <& /elements/header.html, {
15     'title'   => $title,
16     'head'    => $head,
17     'etc'     => $etc,
18     'nocss'   => 1,
19     'nobr'    => 1,
20     'mobile'  => 1,
21 } &>
22 <link rel="stylesheet" type="text/css" href="<%RT->Config->Get('WebPath')|n%>/m/style.css"/>
23 % if ( 0 ) { # Disabled in favor of Freeside header
24 <html>
25 <head>
26 <title><%$title%></title>
27 </head>
28 <body>
29 % if ($show_home_button) {
30 % # The align is for older browsers, like the blackberry
31 <div id="gohome" align="right">
32 <a href="<%RT->Config->Get('WebPath')%>/m/"><&|/l&>Homepage</&></a>
33 </div>
34 % }
35 % if ($title) {
36 <h1><%$title%></h1>
37 % }
38 % } # disabled