##// END OF EJS Templates
diff line numbers fix
diff line numbers fix

File last commit:

r1748:a3ee2611 beta
r1773:e8caed09 beta
Show More
base.html
336 lines | 14.1 KiB | text/html | HtmlLexer
renamed project to rhodecode
r547 ## -*- coding: utf-8 -*-
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <%inherit file="root.html"/>
<!-- HEADER -->
<div id="header">
<!-- user -->
<ul id="logged-user">
<li class="first">
added draft for quick login menu
r1316 <div id="quick_login" style="display:none">
${h.form(h.url('login_home',came_from=h.url.current()))}
<div class="form">
<div class="fields">
<div class="field">
<div class="label">
<label for="username">${_('Username')}:</label>
</div>
<div class="input">
${h.text('username',class_='focus',size=40)}
</div>
</div>
<div class="field">
<div class="label">
<label for="password">${_('Password')}:</label>
</div>
<div class="input">
${h.password('password',class_='focus',size=40)}
</div>
</div>
<div class="buttons">
#243 add register link to login dropdown...
r1468 <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div>
<div class="register">
%if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
${h.link_to(_("Don't have an account ?"),h.url('register'))}
%endif
</div>
Augusto Herrmann
Wrapped 1 missing i18n call & fixed typo in pt_BR l10n
r1474 ${h.submit('sign_in',_('Sign In'),class_="ui-button")}
added draft for quick login menu
r1316 </div>
</div>
</div>
${h.end_form()}
</div>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <div class="gravatar">
<img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" />
</div>
<div class="account">
%if c.rhodecode_user.username == 'default':
<a href="${h.url('public_journal')}">${_('Public journal')}</a>
%else:
ui fixes
r1706 <div style="float: left">
${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))}
</div>
#302 - basic notification system, models+tests
r1702 <div class="notifications">
Notification system improvements...
r1712 <a href="${h.url('notifications')}">${c.unread_notifications}</a>
#302 - basic notification system, models+tests
r1702 </div>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 %endif
</div>
</li>
<li>
<a href="${h.url('home')}">${_('Home')}</a>
</li>
%if c.rhodecode_user.username != 'default':
<li>
implements #135 bookmark support for UI
r1748 <a href="${h.url('journal')}">${_('Journal')}</a>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 </li>
%endif
%if c.rhodecode_user.username == 'default':
Augusto Herrmann
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
r1472 <li class="last highlight">${h.link_to(_(u'Login'),h.url('login_home'),id='quick_login_link')}</li>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 %else:
Augusto Herrmann
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
r1472 <li class="last highlight">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 %endif
</ul>
<!-- end user -->
beatify !
r1470 <div id="header-inner" class="title">
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <div id="logo">
<h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1>
</div>
<!-- MENU -->
${self.page_nav()}
<!-- END MENU -->
${self.body()}
</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
renamed project to rhodecode
r547 </ul>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 % endif
</div>
<div id="main">
${next.main()}
</div>
</div>
<!-- END CONTENT -->
renamed project to rhodecode
r547
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <!-- FOOTER -->
<div id="footer">
beatify !
r1470 <div id="footer-inner" class="title">
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <div>
<p class="footer-link">
<a href="${h.url('bugtracker')}">${_('Submit a bug')}</a>
</p>
<p class="footer-link-right">
<a href="${h.url('rhodecode_official')}">RhodeCode</a>
${c.rhodecode_version} &copy; 2010-${h.datetime.today().year} by Marcin Kuzminski
</p>
</div>
</div>
</div>
<!-- END FOOTER -->
renamed project to rhodecode
r547
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 ### MAKO DEFS ###
<%def name="page_nav()">
${self.menu()}
</%def>
renamed project to rhodecode
r547
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157 <%def name="breadcrumbs()">
<div class="breadcrumbs">
${self.breadcrumbs_links()}
</div>
renamed project to rhodecode
r547 </%def>
rewrote templates, all small pages will inherit from root for easier changes and controll
r1157
renamed project to rhodecode
r547 <%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">
added draft for quick login menu
r1316 <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" />
renamed project to rhodecode
r547 </span>
<span>&darr;</span>
</a>
implemented repo switcher list as dynamically loaded by xhr requestt....
r1158 <ul id="repo_switcher_list" class="repo_switcher">
<li>
<a href="#">${_('loading...')}</a>
</li>
</ul>
renamed project to rhodecode
r547 </li>
<li ${is_current('summary')}>
<a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
<span class="icon">
quick login toggle
r1318 <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">
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
r1421 ## <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">
quick login toggle
r1318 <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')}>
lazy load of branches and tags menu...
r1608 <a id="branch_tag_switcher" title="${_('Switch to')}" href="#">
renamed project to rhodecode
r547 <span class="icon">
quick login toggle
r1318 <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" />
renamed project to rhodecode
r547 </span>
<span>${_('Switch to')}</span>
</a>
lazy load of branches and tags menu...
r1608 <ul id="switch_to_list" class="switch_to">
<li><a href="#">${_('loading...')}</a></li>
</ul>
renamed project to rhodecode
r547 </li>
<li ${is_current('files')}>
<a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
<span class="icon">
quick login toggle
r1318 <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">
quick login toggle
r1318 <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
Added server side file editing with commit
r1305 % if h.HasPermissionAll('hg.admin')('access admin main page'):
<li>
added admin shortcut menu to options
r613 ${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>
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods....
r1345 <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li>
added admin shortcut menu to options
r613 <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 server side file editing with commit
r1305 </li>
% endif
renamed project to rhodecode
r547 </ul>
</li>
Added icons with numbers of followers and number of forks
r747
<li>
#179 Added followers page
r1279 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
Added icons with numbers of followers and number of forks
r747 <span class="icon_short">
quick login toggle
r1318 <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>
Added simple forks page, resolves issue #179
r1301 <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
Added icons with numbers of followers and number of forks
r747 <span class="icon_short">
quick login toggle
r1318 <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>
lazy load of branches and tags menu...
r1608 <script type="text/javascript">
YUE.on('repo_switcher','mouseover',function(){
function qfilter(){
one generic qfilter function.
r1653 var nodes = YUQ('ul#repo_switcher_list li a.repo_name');
var target = 'q_filter_rs';
var func = function(node){
return node.parentNode;
}
q_filter(target,nodes,func);
}
lazy load of branches and tags menu...
r1608 var loaded = YUD.hasClass('repo_switcher','loaded');
if(!loaded){
YUD.addClass('repo_switcher','loaded');
ypjax("${h.url('repo_switcher')}",'repo_switcher_list',
function(o){qfilter();},
function(o){YUD.removeClass('repo_switcher','loaded');}
,null);
}
return false;
});
one generic qfilter function.
r1653 YUE.on('branch_tag_switcher','mouseover',function(){
var loaded = YUD.hasClass('branch_tag_switcher','loaded');
if(!loaded){
YUD.addClass('branch_tag_switcher','loaded');
ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list',
function(o){},
function(o){YUD.removeClass('branch_tag_switcher','loaded');}
,null);
}
return false;
});
lazy load of branches and tags menu...
r1608 </script>
renamed project to rhodecode
r547 %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">
quick login toggle
r1318 <img src="${h.url('/images/icons/home_16.png')}" alt="${_('Home')}" />
renamed project to rhodecode
r547 </span>
<span>${_('Home')}</span>
</a>
</li>
Added server side file editing with commit
r1305 % if c.rhodecode_user.username != 'default':
<li>
implemented user dashboards, and following system.
r734 <a title="${_('Journal')}" href="${h.url('journal')}">
<span class="icon">
quick login toggle
r1318 <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" />
implemented user dashboards, and following system.
r734 </span>
<span>${_('Journal')}</span>
</a>
Added server side file editing with commit
r1305 </li>
% endif
implemented user dashboards, and following system.
r734 <li>
renamed project to rhodecode
r547 <a title="${_('Search')}" href="${h.url('search')}">
<span class="icon">
quick login toggle
r1318 <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">
quick login toggle
r1318 <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>
lazy load of branches and tags menu...
r1608 %endif
Augusto Herrmann
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
r1472 </%def>