##// END OF EJS Templates
fixed some config bool converter problems with ldap
fixed some config bool converter problems with ldap

File last commit:

r1085:3fe32858 beta
r1135:1aa1655b beta
Show More
base.html
404 lines | 16.8 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>
removed obsolete _static flag from url, and fixed urls in webhelpers
r1050 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" />
renamed project to rhodecode
r547 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="index, nofollow"/>
<!-- stylesheets -->
${self.css()}
<!-- scripts -->
${self.js()}
implemented #89 google analytics code
r890 %if c.ga_code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '${c.ga_code}']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
%endif
renamed project to rhodecode
r547 </head>
<body>
<!-- header -->
<div id="header">
<!-- user -->
<ul id="logged-user">
hide gravatar and login info for anonymous user
r778 <li class="first">
<div class="gravatar">
Implemented fancier top menu for logged and anonymous users...
r784 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" />
hide gravatar and login info for anonymous user
r778 </div>
<div class="account">
Implemented fancier top menu for logged and anonymous users...
r784 %if c.rhodecode_user.username == 'default':
implemented public journal for anonymous users, admin can control which repositories...
r1085 <a href="${h.url('public_journal')}">${_('Public journal')}</a>
Implemented fancier top menu for logged and anonymous users...
r784 %else:
when new repo is created make user follow it automatically,...
r786 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))}
Implemented fancier top menu for logged and anonymous users...
r784 %endif
hide gravatar and login info for anonymous user
r778 </div>
</li>
Implemented fancier top menu for logged and anonymous users...
r784 <li>
<a href="${h.url('home')}">${_('Home')}</a>
</li>
disabled journal for anonymous users
r793 %if c.rhodecode_user.username != 'default':
Implemented fancier top menu for logged and anonymous users...
r784 <li>
<a href="${h.url('journal')}">${_('Journal')}</a>
##(${c.unread_journal})</a>
when new repo is created make user follow it automatically,...
r786 </li>
disabled journal for anonymous users
r793 %endif
Implemented fancier top menu for logged and anonymous users...
r784 %if c.rhodecode_user.username == 'default':
<li class="last highlight">${h.link_to(u'Login',h.url('login_home'))}</li>
when new repo is created make user follow it automatically,...
r786 %else:
Implemented fancier top menu for logged and anonymous users...
r784 <li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</li>
when new repo is created make user follow it automatically,...
r786 %endif
renamed project to rhodecode
r547 </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>
#56 added ajax removal of users groups,...
r1015 <p>RhodeCode ${c.rhodecode_version} &copy; 2010-2011 by Marcin Kuzminski</p>
added gpl license and submit a bug footer links
r626 </div>
css cleanup, fixed rounded corners, removed obsolete images and css imports
r611 </div>
fixes for journal, added paging now it's possible to view whole journal...
r995 <script type="text/javascript">
function tooltip_activate(){
${h.tooltip.activate()}
}
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">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/database.png")}" alt="${_('Products')}" />
renamed project to rhodecode
r547 </span>
<span>&darr;</span>
</a>
<ul class="repo_switcher">
Moved out reposcan into hg Model....
r665 %for repo in c.cached_repo_list:
another major codes rewrite:...
r1045 %if repo['dbrepo']['private']:
changed all urls for IMAGES files to use pylons url function
r1051 <li><img src="${h.url("/images/icons/lock.png")}" alt="${_('Private repository')}" class="repo_switcher_type"/>${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li>
renamed project to rhodecode
r547 %else:
changed all urls for IMAGES files to use pylons url function
r1051 <li><img src="${h.url("/images/icons/lock_open.png")}" alt="${_('Public repository')}" class="repo_switcher_type" />${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % 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">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/clipboard_16.png")}" alt="${_('Summary')}" />
renamed project to rhodecode
r547 </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">
changed all urls for IMAGES files to use pylons url function
r1051 ## <img src="${h.url("/images/icons/application_view_list.png")}" alt="${_('Shortlog')}" />
removed shortlog from main menu, as duplicated functionality of changelog,...
r637 ## </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">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/time.png")}" alt="${_('Changelog')}" />
renamed project to rhodecode
r547 </span>
<span>${_('Changelog')}</span>
</a>
</li>
<li ${is_current('switch_to')}>
<a title="${_('Switch to')}" href="#">
<span class="icon">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/arrow_switch.png")}" alt="${_('Switch to')}" />
renamed project to rhodecode
r547 </span>
<span>${_('Switch to')}</span>
</a>
<ul>
<li>
another major codes rewrite:...
r1045 ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
renamed project to rhodecode
r547 <ul>
another major codes rewrite:...
r1045 %if c.rhodecode_repo.branches.values():
%for cnt,branch in enumerate(c.rhodecode_repo.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>
another major codes rewrite:...
r1045 ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
renamed project to rhodecode
r547 <ul>
another major codes rewrite:...
r1045 %if c.rhodecode_repo.tags.values():
%for cnt,tag in enumerate(c.rhodecode_repo.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">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/file.png")}" alt="${_('Files')}" />
renamed project to rhodecode
r547 </span>
<span>${_('Files')}</span>
</a>
</li>
<li ${is_current('options')}>
<a title="${_('Options')}" href="#">
<span class="icon">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/table_gear.png")}" alt="${_('Admin')}" />
renamed project to rhodecode
r547 </span>
<span>${_('Options')}</span>
</a>
<ul>
%if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
enabled quick link to enabling statistics in admin page, for admins
r917 %if h.HasPermissionAll('hg.admin')('access settings on repository'):
when logged in as admin the repo settings will point to admin settings.
r916 <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li>
%else:
<li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
%endif
fixed #113 to high permission was required to fork a repository
r1054 %endif
renamed project to rhodecode
r547 <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')}
fixes #77 moved out ldap config to it's own section
r769 <%def name="admin_menu()">
added admin shortcut menu to options
r613 <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>
started working on issue #56
r956 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li>
added admin shortcut menu to options
r613 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
fixes #77 moved out ldap config to it's own section
r769 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li>
added admin shortcut menu to options
r613 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
</ul>
fixes #77 moved out ldap config to it's own section
r769 </%def>
${admin_menu()}
added admin shortcut menu to options
r613 </li>
Added icons with numbers of followers and number of forks
r747 %endif
added admin shortcut menu to options
r613
renamed project to rhodecode
r547 </ul>
</li>
Added icons with numbers of followers and number of forks
r747
<li>
<a title="${_('Followers')}" href="#">
<span class="icon_short">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/heart.png")}" alt="${_('Followers')}" />
Added icons with numbers of followers and number of forks
r747 </span>
Added dynamic followers counter change after toggle following action
r1070 <span id="current_followers_count" class="short">${c.repository_followers}</span>
Added icons with numbers of followers and number of forks
r747 </a>
</li>
<li>
<a title="${_('Forks')}" href="#">
<span class="icon_short">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/arrow_divide.png")}" alt="${_('Forks')}" />
Added icons with numbers of followers and number of forks
r747 </span>
<span class="short">${c.repository_forks}</span>
</a>
</li>
renamed project to rhodecode
r547 </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">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/home_16.png")}" alt="${_('Home')}" />
renamed project to rhodecode
r547 </span>
<span>${_('Home')}</span>
</a>
</li>
disabled journal for anonymous users
r793 %if c.rhodecode_user.username != 'default':
renamed project to rhodecode
r547 <li>
implemented user dashboards, and following system.
r734 <a title="${_('Journal')}" href="${h.url('journal')}">
<span class="icon">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/book.png")}" alt="${_('Journal')}" />
implemented user dashboards, and following system.
r734 </span>
<span>${_('Journal')}</span>
</a>
</li>
disabled journal for anonymous users
r793 %endif
implemented user dashboards, and following system.
r734 <li>
renamed project to rhodecode
r547 <a title="${_('Search')}" href="${h.url('search')}">
<span class="icon">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/search_16.png")}" alt="${_('Search')}" />
renamed project to rhodecode
r547 </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">
changed all urls for IMAGES files to use pylons url function
r1051 <img src="${h.url("/images/icons/cog_edit.png")}" alt="${_('Admin')}" />
renamed project to rhodecode
r547 </span>
<span>${_('Admin')}</span>
fixes #77 moved out ldap config to it's own section
r769 </a>
${admin_menu()}
renamed project to rhodecode
r547 </li>
%endif
</ul>
%endif
</%def>
<%def name="css()">
removed obsolete _static flag from url, and fixed urls in webhelpers
r1050 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
<link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}" />
<link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css')}" />
renamed project to rhodecode
r547 </%def>
<%def name="js()">
removed obsolete _static flag from url, and fixed urls in webhelpers
r1050 ##<script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js')}"></script>
##<script type="text/javascript" src="${h.url('/js/yui/container/container.js')}"></script>
##<script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js')}"></script>
##<script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js')}"></script>
##<script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js')}"></script>
renamed project to rhodecode
r547
removed obsolete _static flag from url, and fixed urls in webhelpers
r1050 <script type="text/javascript" src="${h.url('/js/yui2a.js')}"></script>
<!--[if IE]><script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script><![endif]-->
<script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script>
implemented user dashboards, and following system.
r734
<script type="text/javascript">
changed all url for JS file to use pylons url function
r1048 var base_url = "${h.url('toggle_following')}";
implemented user dashboards, and following system.
r734 var YUC = YAHOO.util.Connect;
var YUD = YAHOO.util.Dom;
extended trending languages to more entries, implemented new faster and "fancy"...
r763 var YUE = YAHOO.util.Event;
implemented user dashboards, and following system.
r734
fixed following js snipet. It' can be called multiple times now next to each repository...
r999 function onSuccess(target){
implemented user dashboards, and following system.
r734
fixed following js snipet. It' can be called multiple times now next to each repository...
r999 var f = YUD.get(target.id);
Added dynamic followers counter change after toggle following action
r1070 var f_cnt = YUD.get('current_followers_count');
implemented user dashboards, and following system.
r734 if(f.getAttribute('class')=='follow'){
f.setAttribute('class','following');
f.setAttribute('title',"${_('Stop following this repository')}");
Added dynamic followers counter change after toggle following action
r1070
if(f_cnt){
var cnt = Number(f_cnt.innerHTML)+1;
f_cnt.innerHTML = cnt;
}
implemented user dashboards, and following system.
r734 }
else{
f.setAttribute('class','follow');
f.setAttribute('title',"${_('Start following this repository')}");
Added dynamic followers counter change after toggle following action
r1070 if(f_cnt){
var cnt = Number(f_cnt.innerHTML)+1;
f_cnt.innerHTML = cnt;
}
implemented user dashboards, and following system.
r734 }
}
implemented public journal for anonymous users, admin can control which repositories...
r1085 function toggleFollowingUser(target,fallows_user_id,token,user_id){
implemented user dashboards, and following system.
r734 args = 'follows_user_id='+fallows_user_id;
added wrapping of long tooltips in index page
r905 args+= '&amp;auth_token='+token;
implemented public journal for anonymous users, admin can control which repositories...
r1085 if(user_id != undefined){
args+="&amp;user_id="+user_id;
}
implemented user dashboards, and following system.
r734 YUC.asyncRequest('POST',base_url,{
success:function(o){
implemented public journal for anonymous users, admin can control which repositories...
r1085 onSuccess(target);
implemented user dashboards, and following system.
r734 }
},args); return false;
}
implemented public journal for anonymous users, admin can control which repositories...
r1085 function toggleFollowingRepo(target,fallows_repo_id,token,user_id){
fixed following js snipet. It' can be called multiple times now next to each repository...
r999
implemented user dashboards, and following system.
r734 args = 'follows_repo_id='+fallows_repo_id;
added wrapping of long tooltips in index page
r905 args+= '&amp;auth_token='+token;
implemented public journal for anonymous users, admin can control which repositories...
r1085 if(user_id != undefined){
args+="&amp;user_id="+user_id;
}
implemented user dashboards, and following system.
r734 YUC.asyncRequest('POST',base_url,{
success:function(o){
fixed following js snipet. It' can be called multiple times now next to each repository...
r999 onSuccess(target);
implemented user dashboards, and following system.
r734 }
},args); return false;
}
</script>
renamed project to rhodecode
r547 </%def>
<%def name="breadcrumbs()">
<div class="breadcrumbs">
${self.breadcrumbs_links()}
</div>
</%def>