##// END OF EJS Templates
Moved out reposcan into hg Model....
Moved out reposcan into hg Model. Rewrote repo scann and caching of repositories, all is in hgModel. Changed invalidate cache calls. mergeds main repo list and repo switcher list into one new based on hgModel.

File last commit:

r665:070f3274 beta
r665:070f3274 beta
Show More
base.html
285 lines | 12.7 KiB | text/html | HtmlLexer
renamed project to rhodecode
r547 ## -*- 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>
<title>${next.title()}</title>
<link rel="icon" href="/images/hgicon.png" type="image/png" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="index, nofollow"/>
<!-- stylesheets -->
${self.css()}
<!-- scripts -->
${self.js()}
</head>
<body>
<!-- header -->
<div id="header">
<!-- user -->
<ul id="logged-user">
<li class="first">
<div class="gravatar">
renamed hg_app to rhodecode
r548 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,24)}" />
renamed project to rhodecode
r547 </div>
<div class="account">
renamed hg_app to rhodecode
r548 ${h.link_to('%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname),h.url('admin_settings_my_account'))}<br/>
${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'))}
renamed project to rhodecode
r547 </div>
</li>
<li class="last highlight">${h.link_to(u'Logout',h.url('logout_home'))}</li>
</ul>
<!-- end user -->
css cleanup, fixed rounded corners, removed obsolete images and css imports
r611 <div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner">
renamed project to rhodecode
r547 <!-- logo -->
<div id="logo">
Fixes for raw_id, needed for git...
r636 <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1>
renamed project to rhodecode
r547 </div>
<!-- end logo -->
css cleanup, fixed rounded corners, removed obsolete images and css imports
r611 <!-- menu -->
renamed project to rhodecode
r547 ${self.page_nav()}
css cleanup, fixed rounded corners, removed obsolete images and css imports
r611 <!-- quick -->
renamed project to rhodecode
r547 </div>
</div>
<!-- end header -->
<!-- CONTENT -->
<div id="content">
<div class="flash_msg">
<% messages = h.flash.pop_messages() %>
% if messages:
<ul id="flash-messages">
% for message in messages:
<li class="${message.category}_msg">${message}</li>
% endfor
</ul>
% endif
</div>
<div id="main">
${next.main()}
</div>
</div>
<!-- END CONTENT -->
<!-- footer -->
<div id="footer">
css cleanup, fixed rounded corners, removed obsolete images and css imports
r611 <div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner">
added gpl license and submit a bug footer links
r626 <div>
<p class="footer-link">${h.link_to(_('Submit a bug'),h.url('bugtracker'))}</p>
<p class="footer-link">${h.link_to(_('GPL license'),h.url('gpl_license'))}</p>
<p>RhodeCode ${c.rhodecode_version} &copy; 2010 by Marcin Kuzminski</p>
</div>
css cleanup, fixed rounded corners, removed obsolete images and css imports
r611 </div>
<script type="text/javascript">${h.tooltip.activate()}</script>
renamed project to rhodecode
r547 </div>
<!-- end footer -->
</body>
</html>
### MAKO DEFS ###
<%def name="page_nav()">
${self.menu()}
</%def>
<%def name="menu(current=None)">
<%
def is_current(selected):
if selected == current:
return h.literal('class="current"')
%>
%if current not in ['home','admin']:
##REGULAR MENU
<ul id="quick">
<!-- repo switcher -->
<li>
<a id="repo_switcher" title="${_('Switch repository')}" href="#">
<span class="icon">
<img src="/images/icons/database.png" alt="${_('Products')}" />
</span>
<span>&darr;</span>
</a>
<ul class="repo_switcher">
Moved out reposcan into hg Model....
r665 %for repo in c.cached_repo_list:
%if repo['repo'].dbrepo.private:
<li>${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="private_repo %s" % repo['repo'].dbrepo.repo_type)}</li>
renamed project to rhodecode
r547 %else:
Moved out reposcan into hg Model....
r665 <li>${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="public_repo %s" % repo['repo'].dbrepo.repo_type)}</li>
renamed project to rhodecode
r547 %endif
%endfor
</ul>
</li>
<li ${is_current('summary')}>
<a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
<span class="icon">
<img src="/images/icons/clipboard_16.png" alt="${_('Summary')}" />
</span>
<span>${_('Summary')}</span>
</a>
</li>
removed shortlog from main menu, as duplicated functionality of changelog,...
r637 ##<li ${is_current('shortlog')}>
## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}">
## <span class="icon">
## <img src="/images/icons/application_view_list.png" alt="${_('Shortlog')}" />
## </span>
## <span>${_('Shortlog')}</span>
## </a>
##</li>
renamed project to rhodecode
r547 <li ${is_current('changelog')}>
<a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
<span class="icon">
<img src="/images/icons/time.png" alt="${_('Changelog')}" />
</span>
<span>${_('Changelog')}</span>
</a>
</li>
<li ${is_current('switch_to')}>
<a title="${_('Switch to')}" href="#">
<span class="icon">
<img src="/images/icons/arrow_switch.png" alt="${_('Switch to')}" />
</span>
<span>${_('Switch to')}</span>
</a>
<ul>
<li>
removed shortlog from main menu, as duplicated functionality of changelog,...
r637 ${h.link_to('%s (%s)' % (_('branches'),len(c.repository_branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
renamed project to rhodecode
r547 <ul>
%if c.repository_branches.values():
%for cnt,branch in enumerate(c.repository_branches.items()):
Fixes for raw_id, needed for git...
r636 <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li>
renamed project to rhodecode
r547 %endfor
%else:
<li>${h.link_to(_('There are no branches yet'),'#')}</li>
%endif
</ul>
</li>
<li>
removed shortlog from main menu, as duplicated functionality of changelog,...
r637 ${h.link_to('%s (%s)' % (_('tags'),len(c.repository_tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
renamed project to rhodecode
r547 <ul>
%if c.repository_tags.values():
%for cnt,tag in enumerate(c.repository_tags.items()):
Fixes for raw_id, needed for git...
r636 <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li>
renamed project to rhodecode
r547 %endfor
%else:
<li>${h.link_to(_('There are no tags yet'),'#')}</li>
%endif
</ul>
</li>
</ul>
</li>
<li ${is_current('files')}>
<a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
<span class="icon">
<img src="/images/icons/file.png" alt="${_('Files')}" />
</span>
<span>${_('Files')}</span>
</a>
</li>
<li ${is_current('options')}>
<a title="${_('Options')}" href="#">
<span class="icon">
<img src="/images/icons/table_gear.png" alt="${_('Admin')}" />
</span>
<span>${_('Options')}</span>
</a>
<ul>
%if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
<li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
%endif
<li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li>
<li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
added admin shortcut menu to options
r613
%if h.HasPermissionAll('hg.admin')('access admin main page'):
<li>
${h.link_to(_('admin'),h.url('admin_home'),class_='admin')}
<ul>
<li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
<li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
<li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
<li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
<li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
</ul>
</li>
%endif
renamed project to rhodecode
r547 ## %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
## <li class="last">
## ${h.link_to(_('delete'),'#',class_='delete')}
## ${h.form(url('repo_settings_delete', repo_name=c.repo_name),method='delete')}
## ${h.submit('remove_%s' % c.repo_name,'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
## ${h.end_form()}
## </li>
## %endif
</ul>
</li>
</ul>
%else:
##ROOT MENU
<ul id="quick">
<li>
Fixes for raw_id, needed for git...
r636 <a title="${_('Home')}" href="${h.url('home')}">
renamed project to rhodecode
r547 <span class="icon">
<img src="/images/icons/home_16.png" alt="${_('Home')}" />
</span>
<span>${_('Home')}</span>
</a>
</li>
<li>
<a title="${_('Search')}" href="${h.url('search')}">
<span class="icon">
<img src="/images/icons/search_16.png" alt="${_('Search')}" />
</span>
<span>${_('Search')}</span>
</a>
</li>
%if h.HasPermissionAll('hg.admin')('access admin main page'):
<li ${is_current('admin')}>
<a title="${_('Admin')}" href="${h.url('admin_home')}">
<span class="icon">
<img src="/images/icons/cog_edit.png" alt="${_('Admin')}" />
</span>
<span>${_('Admin')}</span>
</a>
<ul>
<li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
<li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
<li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
<li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
<li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
</ul>
</li>
%endif
</ul>
%endif
</%def>
<%def name="css()">
<link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/pygments.css" />
<link rel="stylesheet" type="text/css" href="/css/diff.css" />
</%def>
<%def name="js()">
##<script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
##<script type="text/javascript" src="/js/yui/container/container.js"></script>
##<script type="text/javascript" src="/js/yui/datasource/datasource.js"></script>
##<script type="text/javascript" src="/js/yui/autocomplete/autocomplete.js"></script>
#43 main page quick filter
r646 ##<script type="text/javascript" src="/js/yui/selector/selector-min.js"></script>
renamed project to rhodecode
r547
<script type="text/javascript" src="/js/yui2.js"></script>
#43 main page quick filter
r646 <script type="text/javascript" src="/js/yui/selector/selector-min.js"></script>
renamed project to rhodecode
r547 <!--[if IE]><script language="javascript" type="text/javascript" src="/js/excanvas.min.js"></script><![endif]-->
<script type="text/javascript" src="/js/yui.flot.js"></script>
</%def>
<%def name="breadcrumbs()">
<div class="breadcrumbs">
${self.breadcrumbs_links()}
</div>
</%def>