base.html
124 lines
| 3.9 KiB
| text/html
|
HtmlLexer
Marcin Kuzminski
|
r0 | ## -*- coding: utf-8 -*- | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
r101 | <link rel="icon" href="/images/hgicon.png" type="image/png" /> | ||
r44 | <meta name="robots" content="index, nofollow"/> | ||
r98 | <title>${next.title()}</title> | ||
${self.css()} | |||
Marcin Kuzminski
|
r79 | ${self.js()} | |
Marcin Kuzminski
|
r0 | </head> | |
r44 | <body> | ||
<div id="container"> | |||
<div class="page-header"> | |||
<h1> | |||
${next.breadcrumbs()} | |||
</h1> | |||
<ul class="page-nav"> | |||
r91 | ${self.page_nav()} | ||
r44 | </ul> | ||
</div> | |||
r105 | <div id="main"> | ||
${next.main()} | |||
</div> | |||
r44 | <div class="page-footer"> | ||
Marcin Kuzminski
|
r63 | Mercurial App © 2010 | |
r44 | </div> | ||
Marcin Kuzminski
|
r0 | ||
r44 | <div id="powered-by"> | ||
<p> | |||
<a href="http://mercurial.selenic.com/" title="Mercurial"> | |||
r101 | <img src="/images/hglogo.png" width="75" height="90" alt="mercurial"/></a> | ||
r44 | </p> | ||
</div> | |||
Marcin Kuzminski
|
r0 | ||
r44 | <div id="corner-top-left"></div> | ||
<div id="corner-top-right"></div> | |||
<div id="corner-bottom-left"></div> | |||
<div id="corner-bottom-right"></div> | |||
Marcin Kuzminski
|
r0 | ||
r44 | </div> | ||
</body> | |||
Marcin Kuzminski
|
r79 | </html> | |
r91 | <%def name="page_nav()"> | ||
${self.menu()} | |||
</%def> | |||
<%def name="menu(current)"> | |||
<ul class="page-nav"> | |||
r107 | <script> | ||
YAHOO.util.Event.onDOMReady(function(){ | |||
YAHOO.util.Event.addListener('repo_switcher','click',function(){ | |||
if(YAHOO.util.Dom.hasClass('repo_switcher','selected')){ | |||
YAHOO.util.Dom.setStyle('switch_repos','display','none'); | |||
r109 | YAHOO.util.Dom.setStyle('repo_switcher','background',''); | ||
r107 | YAHOO.util.Dom.removeClass('repo_switcher','selected'); | ||
} | |||
else{ | |||
YAHOO.util.Dom.setStyle('switch_repos','display',''); | |||
r109 | YAHOO.util.Dom.setStyle('repo_switcher','background','#FFFFFF'); | ||
r107 | YAHOO.util.Dom.addClass('repo_switcher','selected'); | ||
} | |||
}); | |||
YAHOO.util.Event.addListener('repos_list','change',function(e){ | |||
var wa = YAHOO.util.Dom.get('repos_list').value; | |||
var url = "${h.url('summary_home',repo_name='__REPLACE__')}".replace('__REPLACE__',wa); | |||
window.location = url; | |||
}) | |||
}); | |||
</script> | |||
<li> | |||
<a id="repo_switcher" title="${_('Switch repository')}" href="#">↓</a> | |||
r109 | <div id="switch_repos" style="display:none;position: absolute;width: 150px;height: 25px"> | ||
r107 | <select id="repos_list"> | ||
%for repo in c.repo_list: | |||
<option value="${repo}">${repo}</option> | |||
%endfor | |||
</select> | |||
</div> | |||
</li> | |||
r91 | <li | ||
%if current=='summary': | |||
class='current' | |||
%endif | |||
>${h.link_to_unless(current=='summary',_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li> | |||
<li | |||
%if current=='changelog': | |||
class='current' | |||
%endif | |||
>${h.link_to_unless(current=='changelog',_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}</li> | |||
<li | |||
%if current=='branches': | |||
class='current' | |||
%endif | |||
>${h.link_to_unless(current=='branches',_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li> | |||
<li | |||
%if current=='tags': | |||
class='current' | |||
%endif | |||
>${h.link_to_unless(current=='tags',_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li> | |||
<li | |||
%if current=='graph': | |||
class='current' | |||
%endif | |||
>${h.link_to_unless(current=='graph',_('graph'),h.url('graph_home',repo_name=c.repo_name))}</li> | |||
<li | |||
%if current=='files': | |||
class='current' | |||
%endif | |||
>${h.link_to_unless(current=='files',_('files'),h.url('files_home',repo_name=c.repo_name))}</li> | |||
</ul> | |||
</%def> | |||
r98 | <%def name="css()"> | ||
r102 | <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" /> | ||
r98 | </%def> | ||
Marcin Kuzminski
|
r79 | ||
<%def name="js()"> | |||
<script type="text/javascript" src="/js/yui/utilities/utilities.js"></script> | |||
</%def> |