Files
@ d928d5f0a251
Branch filter:
Location: kallithea/pylons_app/templates/base/base.html - annotation
d928d5f0a251
3.7 KiB
text/html
Adde raw file to routes, and refactoring
updated link to raw file at file source template
updated link to raw file at file source template
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | 564e40829f80 564e40829f80 787689980bcd 564e40829f80 8b06c420491d d924b931b488 01d0f363f36d 787689980bcd 01d0f363f36d 9fe23fdab9e9 564e40829f80 564e40829f80 787689980bcd d924b931b488 d924b931b488 d924b931b488 d924b931b488 d924b931b488 d924b931b488 25e01cb65282 d924b931b488 d924b931b488 3ac4350b7848 3ac4350b7848 3ac4350b7848 d924b931b488 3cf0603cd4f5 d924b931b488 564e40829f80 d924b931b488 d924b931b488 d924b931b488 8b06c420491d d924b931b488 d924b931b488 564e40829f80 d924b931b488 d924b931b488 d924b931b488 d924b931b488 564e40829f80 d924b931b488 d924b931b488 9fe23fdab9e9 9fe23fdab9e9 25e01cb65282 25e01cb65282 25e01cb65282 25e01cb65282 25e01cb65282 25e01cb65282 25e01cb65282 25e01cb65282 25e01cb65282 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 7b778f90a871 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 7b778f90a871 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 7b778f90a871 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 5e2470ebdbc6 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 787689980bcd 25e01cb65282 25e01cb65282 25e01cb65282 01d0f363f36d 2dc0c8e4f384 01d0f363f36d 9fe23fdab9e9 9fe23fdab9e9 9fe23fdab9e9 9fe23fdab9e9 | ## -*- 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" id="mainhtml">
<head>
<link rel="icon" href="/images/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow"/>
<title>${next.title()}</title>
##<link rel="stylesheet" href="/js/yui/reset-fonts-grids/reset-fonts-grids.css" type="text/css" />
${self.css()}
${self.js()}
</head>
<body class="mainbody">
<div id="container">
<div class="page-header">
<h1>
${next.breadcrumbs()}
</h1>
<ul class="page-nav">
${self.page_nav()}
</ul>
</div>
<div id="main">
${next.main()}
</div>
<div class="page-footer">
Mercurial App © 2010
</div>
<div id="powered-by">
<p>
<a href="http://mercurial.selenic.com/" title="Mercurial">
<img src="/images/hglogo.png" width="75" height="90" alt="mercurial"/></a>
</p>
</div>
<div id="corner-top-left"></div>
<div id="corner-top-right"></div>
<div id="corner-bottom-left"></div>
<div id="corner-bottom-right"></div>
</div>
</body>
</html>
<%def name="page_nav()">
${self.menu()}
</%def>
<%def name="menu(current)">
<ul class="page-nav">
<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');
YAHOO.util.Dom.setStyle('repo_switcher','background','');
YAHOO.util.Dom.removeClass('repo_switcher','selected');
}
else{
YAHOO.util.Dom.setStyle('switch_repos','display','');
YAHOO.util.Dom.setStyle('repo_switcher','background','#FFFFFF');
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>
<div id="switch_repos" style="display:none;position: absolute;width: 150px;height: 25px">
<select id="repos_list">
%for repo in c.repo_list:
<option value="${repo}">${repo}</option>
%endfor
</select>
</div>
</li>
<%def name="is_current(selected)">
<%
if selected == current:
return 'current'
else:
return ''
%>
</%def>
<li class="${is_current('summary')}">${h.link_to(_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li>
<li class="${is_current('shortlog')}">${h.link_to(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}</li>
<li class="${is_current('changelog')}">${h.link_to(_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}</li>
<li class="${is_current('branches')}">${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li>
<li class="${is_current('tags')}">${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li>
<li class="${is_current('files')}">${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name))}</li>
</ul>
</%def>
<%def name="css()">
<link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" />
</%def>
<%def name="js()">
<script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
</%def>
|