Files
@ f4807acf643d
Branch filter:
Location: kallithea/rhodecode/templates/base/base.html - annotation
f4807acf643d
13.0 KiB
text/html
added __license__ into main of rhodecode, PEP8ify
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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | 1e757ac98988 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 1e757ac98988 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 1e757ac98988 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 1e757ac98988 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 1e757ac98988 41241617a7a3 41241617a7a3 41241617a7a3 41241617a7a3 1e757ac98988 1e757ac98988 41241617a7a3 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 1e757ac98988 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 f63cc1cbce27 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 b04d5214fd3c b04d5214fd3c b04d5214fd3c 90eadff2c2a8 b04d5214fd3c b04d5214fd3c b04d5214fd3c b04d5214fd3c 1e757ac98988 1e757ac98988 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 3fc9183e05dd 1e757ac98988 3fc9183e05dd 3fc9183e05dd ffd07396d315 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 3fc9183e05dd 1e757ac98988 3fc9183e05dd 3fc9183e05dd ffd07396d315 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 de8b95f461f6 415321076046 415321076046 415321076046 415321076046 32dbf759fa98 1e757ac98988 1e757ac98988 956952fea94c 956952fea94c 956952fea94c 956952fea94c 4bdcc08b04c4 956952fea94c 956952fea94c 956952fea94c 956952fea94c 83d35d716a02 956952fea94c 4bdcc08b04c4 956952fea94c 956952fea94c 4bdcc08b04c4 4bdcc08b04c4 4bdcc08b04c4 956952fea94c 2f89beda06a1 956952fea94c 1e757ac98988 1e757ac98988 2f89beda06a1 2f89beda06a1 2f89beda06a1 2f89beda06a1 90eadff2c2a8 2f89beda06a1 f52aab02db29 2f89beda06a1 2f89beda06a1 2f89beda06a1 2f89beda06a1 2f89beda06a1 90eadff2c2a8 2f89beda06a1 2f89beda06a1 2f89beda06a1 2f89beda06a1 2f89beda06a1 2f89beda06a1 2f89beda06a1 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 ffd07396d315 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 3025b0f9475e 1e757ac98988 49eb69d78988 49eb69d78988 90eadff2c2a8 49eb69d78988 49eb69d78988 49eb69d78988 49eb69d78988 3025b0f9475e 49eb69d78988 1e757ac98988 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 90eadff2c2a8 1e757ac98988 1e757ac98988 4bdcc08b04c4 4bdcc08b04c4 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 | ## -*- coding: utf-8 -*-
<%inherit file="root.html"/>
<!-- HEADER -->
<div id="header">
<!-- user -->
<ul id="logged-user">
<li class="first">
<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:
${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))}
%endif
</div>
</li>
<li>
<a href="${h.url('home')}">${_('Home')}</a>
</li>
%if c.rhodecode_user.username != 'default':
<li>
<a href="${h.url('journal')}">${_('Journal')}</a>
##(${c.unread_journal}
</li>
%endif
%if c.rhodecode_user.username == 'default':
<li class="last highlight">${h.link_to(u'Login',h.url('login_home'))}</li>
%else:
<li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</li>
%endif
</ul>
<!-- end user -->
<div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner">
<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
</ul>
% endif
</div>
<div id="main">
${next.main()}
</div>
</div>
<!-- END CONTENT -->
<!-- FOOTER -->
<div id="footer">
<div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner">
<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} © 2010-${h.datetime.today().year} by Marcin Kuzminski
</p>
</div>
</div>
<script type="text/javascript">
function tooltip_activate(){
${h.tooltip.activate()}
}
tooltip_activate();
</script>
</div>
<!-- END FOOTER -->
### MAKO DEFS ###
<%def name="page_nav()">
${self.menu()}
</%def>
<%def name="breadcrumbs()">
<div class="breadcrumbs">
${self.breadcrumbs_links()}
</div>
</%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="${h.url("/images/icons/database.png")}" alt="${_('Products')}" />
</span>
<span>↓</span>
</a>
<ul id="repo_switcher_list" class="repo_switcher">
<li>
<a href="#">${_('loading...')}</a>
</li>
</ul>
<script type="text/javascript">
YUE.on('repo_switcher','mouseover',function(){
var loaded = YUD.hasClass('repo_switcher','loaded');
if(!loaded){
YUD.addClass('repo_switcher','loaded');
YAHOO.util.Connect.asyncRequest('GET',"${h.url('repo_switcher')}",{
success:function(o){
YUD.get('repo_switcher_list').innerHTML = o.responseText;
},
failure:function(o){
YUD.removeClass('repo_switcher','loaded');
}
},null);
}
return false;
});
</script>
</li>
<li ${is_current('summary')}>
<a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
<span class="icon">
<img src="${h.url("/images/icons/clipboard_16.png")}" alt="${_('Summary')}" />
</span>
<span>${_('Summary')}</span>
</a>
</li>
##<li ${is_current('shortlog')}>
## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}">
## <span class="icon">
## <img src="${h.url("/images/icons/application_view_list.png")}" alt="${_('Shortlog')}" />
## </span>
## <span>${_('Shortlog')}</span>
## </a>
##</li>
<li ${is_current('changelog')}>
<a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
<span class="icon">
<img src="${h.url("/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="${h.url("/images/icons/arrow_switch.png")}" alt="${_('Switch to')}" />
</span>
<span>${_('Switch to')}</span>
</a>
<ul>
<li>
${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
<ul>
%if c.rhodecode_repo.branches.values():
%for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
<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>
%endfor
%else:
<li>${h.link_to(_('There are no branches yet'),'#')}</li>
%endif
</ul>
</li>
<li>
${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
<ul>
%if c.rhodecode_repo.tags.values():
%for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
<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>
%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="${h.url("/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="${h.url("/images/icons/table_gear.png")}" alt="${_('Admin')}" />
</span>
<span>${_('Options')}</span>
</a>
<ul>
%if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
%if h.HasPermissionAll('hg.admin')('access settings on repository'):
<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
%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>
%if h.HasPermissionAll('hg.admin')('access admin main page'):
<li>
${h.link_to(_('admin'),h.url('admin_home'),class_='admin')}
<%def name="admin_menu()">
<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(_('users groups'),h.url('users_groups'),class_='groups')}</li>
<li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
<li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li>
<li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
</ul>
</%def>
${admin_menu()}
</li>
%endif
</ul>
</li>
<li>
<a title="${_('Followers')}" href="#">
<span class="icon_short">
<img src="${h.url("/images/icons/heart.png")}" alt="${_('Followers')}" />
</span>
<span id="current_followers_count" class="short">${c.repository_followers}</span>
</a>
</li>
<li>
<a title="${_('Forks')}" href="#">
<span class="icon_short">
<img src="${h.url("/images/icons/arrow_divide.png")}" alt="${_('Forks')}" />
</span>
<span class="short">${c.repository_forks}</span>
</a>
</li>
</ul>
%else:
##ROOT MENU
<ul id="quick">
<li>
<a title="${_('Home')}" href="${h.url('home')}">
<span class="icon">
<img src="${h.url("/images/icons/home_16.png")}" alt="${_('Home')}" />
</span>
<span>${_('Home')}</span>
</a>
</li>
%if c.rhodecode_user.username != 'default':
<li>
<a title="${_('Journal')}" href="${h.url('journal')}">
<span class="icon">
<img src="${h.url("/images/icons/book.png")}" alt="${_('Journal')}" />
</span>
<span>${_('Journal')}</span>
</a>
</li>
%endif
<li>
<a title="${_('Search')}" href="${h.url('search')}">
<span class="icon">
<img src="${h.url("/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="${h.url("/images/icons/cog_edit.png")}" alt="${_('Admin')}" />
</span>
<span>${_('Admin')}</span>
</a>
${admin_menu()}
</li>
%endif
</ul>
%endif
</%def>
|