##// END OF EJS Templates
removed login from admin, from now we're have to be globally logged in.
removed login from admin, from now we're have to be globally logged in.

File last commit:

r166:664cc734 default
r175:d69e19fc default
Show More
base.html
101 lines | 3.6 KiB | text/html | HtmlLexer
Marcin Kuzminski
initial commit.
r0 ## -*- coding: utf-8 -*-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Tempaltes changes for changelog and shortlog, changed menu generation in base
r143 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
Marcin Kuzminski
initial commit.
r0 <head>
statics moved to pylons.
r101 <link rel="icon" href="/images/hgicon.png" type="image/png" />
Added managment pages....
r44 <meta name="robots" content="index, nofollow"/>
added pygments webhelper
r98 <title>${next.title()}</title>
Tempaltes changes for changelog and shortlog, changed menu generation in base
r143 ##<link rel="stylesheet" href="/js/yui/reset-fonts-grids/reset-fonts-grids.css" type="text/css" />
added pygments webhelper
r98 ${self.css()}
Marcin Kuzminski
Implemented AJAH paging
r79 ${self.js()}
Marcin Kuzminski
initial commit.
r0 </head>
Tempaltes changes for changelog and shortlog, changed menu generation in base
r143 <body class="mainbody">
Added managment pages....
r44 <div id="container">
<div class="page-header">
updated erros found in base.html
r155 <h1>${next.breadcrumbs()}</h1>
${self.page_nav()}
Added managment pages....
r44 </div>
Html updates and fixes
r105 <div id="main">
${next.main()}
</div>
Added managment pages....
r44 <div class="page-footer">
Marcin Kuzminski
Templating small fixes
r63 Mercurial App &copy; 2010
Added managment pages....
r44 </div>
Marcin Kuzminski
initial commit.
r0
Added managment pages....
r44 <div id="powered-by">
<p>
<a href="http://mercurial.selenic.com/" title="Mercurial">
statics moved to pylons.
r101 <img src="/images/hglogo.png" width="75" height="90" alt="mercurial"/></a>
Added managment pages....
r44 </p>
</div>
Marcin Kuzminski
initial commit.
r0
Added managment pages....
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
initial commit.
r0
Added managment pages....
r44 </div>
</body>
Marcin Kuzminski
Implemented AJAH paging
r79 </html>
Added menu generation as function
r91 <%def name="page_nav()">
${self.menu()}
</%def>
<%def name="menu(current)">
updated erros found in base.html
r154 <script type="text/javascript">
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>
Added menu generation as function
r91 <ul class="page-nav">
Added repo switcher, in base and long term caching for this.
r107 <li>
<a id="repo_switcher" title="${_('Switch repository')}" href="#">&darr;</a>
html updates
r109 <div id="switch_repos" style="display:none;position: absolute;width: 150px;height: 25px">
fixed repo switcher for easier switches. And took repo list from general cache
r166 <select id="repos_list" size="=10">
%for repo in c.cached_repo_list:
<option value="${repo['name']}">${repo['name']}</option>
Added repo switcher, in base and long term caching for this.
r107 %endfor
</select>
</div>
</li>
Tempaltes changes for changelog and shortlog, changed menu generation in base
r143 <%def name="is_current(selected)">
<%
updated erros found in base.html
r154 if selected == current:
return 'class="current"'
Tempaltes changes for changelog and shortlog, changed menu generation in base
r143 %>
</%def>
updated erros found in base.html
r154 <li ${is_current('summary')|n}>${h.link_to(_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li>
<li ${is_current('shortlog')|n}>${h.link_to(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}</li>
<li ${is_current('changelog')|n}>${h.link_to(_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}</li>
<li ${is_current('branches')|n}>${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li>
<li ${is_current('tags')|n}>${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li>
<li ${is_current('files')|n}>${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name))}</li>
Added menu generation as function
r91 </ul>
</%def>
added pygments webhelper
r98 <%def name="css()">
Updated tempaltes, added file browser breadcrumbs, and feed icons
r102 <link rel="stylesheet" href="/css/monoblue_custom.css" type="text/css" />
added pygments webhelper
r98 </%def>
Marcin Kuzminski
Implemented AJAH paging
r79
<%def name="js()">
<script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
</%def>