##// END OF EJS Templates
added limits to single file diffs...
added limits to single file diffs changed changeset to use .size for cut off

File last commit:

r532:946ed295 default
r544:d8778cde default
Show More
base.html
268 lines | 11.3 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>
version bump to 0.8...
r362 <title>${next.title()}</title>
statics moved to pylons.
r101 <link rel="icon" href="/images/hgicon.png" type="image/png" />
version bump to 0.8...
r362 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
Added managment pages....
r44 <meta name="robots" content="index, nofollow"/>
version bump to 0.8...
r362 <!-- stylesheets -->
added pygments webhelper
r98 ${self.css()}
version bump to 0.8...
r362 <!-- scripts -->
Marcin Kuzminski
Implemented AJAH paging
r79 ${self.js()}
Marcin Kuzminski
initial commit.
r0 </head>
version bump to 0.8...
r362 <body>
<!-- header -->
<div id="header">
<!-- user -->
<ul id="logged-user">
<li class="first">
implemented gravatars into main bar....
r402 <div class="gravatar">
<img alt="gravatar" src="${h.gravatar_url(c.hg_app_user.email,24)}" />
</div>
<div class="account">
${h.link_to('%s %s'%(c.hg_app_user.name,c.hg_app_user.lastname),h.url('admin_settings_my_account'))}<br/>
${h.link_to(c.hg_app_user.username,h.url('admin_settings_my_account'))}
</div>
version bump to 0.8...
r362 </li>
<li class="last highlight">${h.link_to(u'Logout',h.url('logout_home'))}</li>
</ul>
<!-- end user -->
<div id="header-inner">
<div id="home">
<a href="${h.url('hg_home')}"></a>
</div>
<!-- logo -->
<div id="logo">
<h1><a href="${h.url('hg_home')}">${c.hg_app_name}</a></h1>
</div>
<!-- end logo -->
<!-- quick menu -->
${self.page_nav()}
<!-- end quick -->
<div class="corner tl"></div>
<div class="corner tr"></div>
</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 -->
Marcin Kuzminski
initial commit.
r0
version bump to 0.8...
r362 <!-- footer -->
<div id="footer">
<p>Hg App ${c.hg_app_version} &copy; 2010 by Marcin Kuzminski</p>
<script type="text/javascript">${h.tooltip.activate()}</script>
</div>
<!-- end footer -->
</body>
Marcin Kuzminski
initial commit.
r0
Marcin Kuzminski
Implemented AJAH paging
r79 </html>
new way of menu generation for base, and all admin pages
r182 ### MAKO DEFS ###
Added menu generation as function
r91 <%def name="page_nav()">
${self.menu()}
</%def>
version bump to 0.8...
r362 <%def name="menu(current=None)">
<%
def is_current(selected):
if selected == current:
fixed escaping for new webhelpers and added perm2user constraint
r414 return h.literal('class="current"')
version bump to 0.8...
r362 %>
fixed repo switcher,...
r454 %if current not in ['home','admin']:
version bump to 0.8...
r362 ##REGULAR MENU
<ul id="quick">
<!-- repo switcher -->
new way of menu generation for base, and all admin pages
r182 <li>
version bump to 0.8...
r362 <a id="repo_switcher" title="${_('Switch repository')}" href="#">
<span class="icon">
<img src="/images/icons/database.png" alt="${_('Products')}" />
</span>
<span>&darr;</span>
</a>
fixed repo switcher,...
r454 <ul class="repo_switcher">
Some gui fixes
r477 %for repo,private in c.repo_switcher_list:
%if private:
<li>${h.link_to(repo,h.url('summary_home',repo_name=repo),class_="private_repo")}</li>
%else:
<li>${h.link_to(repo,h.url('summary_home',repo_name=repo),class_="public_repo")}</li>
%endif
fixed repo switcher,...
r454 %endfor
</ul>
new way of menu generation for base, and all admin pages
r182 </li>
version bump to 0.8...
r362
<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>
<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_double.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="/images/icons/time.png" alt="${_('Changelog')}" />
</span>
<span>${_('Changelog')}</span>
</a>
reimplemented tags/branches menu....
r453 </li>
<li ${is_current('switch_to')}>
<a title="${_('Switch to')}" href="#">
version bump to 0.8...
r362 <span class="icon">
reimplemented tags/branches menu....
r453 <img src="/images/icons/arrow_switch.png" alt="${_('Switch to')}" />
version bump to 0.8...
r362 </span>
reimplemented tags/branches menu....
r453 <span>${_('Switch to')}</span>
</a>
<ul>
<li>
${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
<ul>
fixes to pidlock, to not raise unneded execptions...
r509 %if c.repository_branches.values():
reimplemented tags/branches menu....
r453 %for cnt,branch in enumerate(c.repository_branches.items()):
<li>${h.link_to('%s - %s' % (branch[0],branch[1]),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li>
%endfor
fixes to pidlock, to not raise unneded execptions...
r509 %else:
<li>${h.link_to(_('There are no branches yet'),'#')}</li>
%endif
reimplemented tags/branches menu....
r453 </ul>
</li>
<li>
${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
<ul>
fixes to pidlock, to not raise unneded execptions...
r509 %if c.repository_tags.values():
reimplemented tags/branches menu....
r453 %for cnt,tag in enumerate(c.repository_tags.items()):
<li>${h.link_to('%s - %s' % (tag[0],tag[1]),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li>
%endfor
fixes to pidlock, to not raise unneded execptions...
r509 %else:
<li>${h.link_to(_('There are no tags yet'),'#')}</li>
%endif
reimplemented tags/branches menu....
r453 </ul>
</li>
</ul>
version bump to 0.8...
r362 </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>
a lot of fixes in templates,...
r524
<li ${is_current('options')}>
<a title="${_('Options')}" href="#">
version bump to 0.8...
r362 <span class="icon">
a lot of fixes in templates,...
r524 <img src="/images/icons/table_gear.png" alt="${_('Admin')}" />
version bump to 0.8...
r362 </span>
a lot of fixes in templates,...
r524 <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>
template updates, added icon to repo name showing private/public...
r532 ## %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
## <li class="last">
## ${h.link_to(_('delete'),'#',class_='delete')}
a lot of fixes in templates,...
r524 ## ${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()}
template updates, added icon to repo name showing private/public...
r532 ## </li>
## %endif
a lot of fixes in templates,...
r524 </ul>
</li>
new way of menu generation for base, and all admin pages
r182 </ul>
%else:
version bump to 0.8...
r362 ##ROOT MENU
<ul id="quick">
<li>
<a title="${_('Home')}" href="${h.url('hg_home')}">
<span class="icon">
<img src="/images/icons/home_16.png" alt="${_('Home')}" />
</span>
<span>${_('Home')}</span>
</a>
</li>
implemented gravatars into main bar....
r402
<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>
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
r318 %if h.HasPermissionAll('hg.admin')('access admin main page'):
version bump to 0.8...
r362 <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>
added journal icon and made active links in journal, fixed edit user bug when given wrong id
r476 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
version bump to 0.8...
r362 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
<li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
permission refactoring,...
r417 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
reimplemented tags/branches menu....
r453 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
version bump to 0.8...
r362 </ul>
</li>
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
r318 %endif
version bump to 0.8...
r362
new way of menu generation for base, and all admin pages
r182 </ul>
%endif
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
r216 </%def>
Added menu generation as function
r91
added pygments webhelper
r98 <%def name="css()">
version bump to 0.8...
r362 <link rel="stylesheet" type="text/css" href="/css/reset.css" />
<link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" />
<link id="color" rel="stylesheet" type="text/css" href="/css/colors/blue.css" />
<link rel="stylesheet" type="text/css" href="/css/pygments.css" />
<link rel="stylesheet" type="text/css" href="/css/diff.css" />
added pygments webhelper
r98 </%def>
Marcin Kuzminski
Implemented AJAH paging
r79
<%def name="js()">
Code cleanups, made js rollup file, some preparation for .egg creation
r457 ##<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>
<script type="text/javascript" src="/js/yui2.js"></script>
version bump to 0.8...
r362 <!--[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>
moved get_form_error to base
r176 </%def>
version bump to 0.8...
r362 <%def name="breadcrumbs()">
<div class="breadcrumbs">
${self.breadcrumbs_links()}
</div>
Marcin Kuzminski
Implemented AJAH paging
r79 </%def>