##// END OF EJS Templates
fixed pages naves html errors
fixed pages naves html errors

File last commit:

r156:3985d769 default
r161:9936a1d3 default
Show More
summary.html
124 lines | 3.8 KiB | text/html | HtmlLexer
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
r127 <%inherit file="/base/base.html"/>
Marcin Kuzminski
implemented Shortlog as seperate controller,...
r83 <%!
from pylons_app.lib import filters
%>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <%def name="title()">
${_('Repository managment')}
</%def>
<%def name="breadcrumbs()">
${h.link_to(u'Home',h.url('/'))}
/
${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
/
${_('summary')}
</%def>
<%def name="page_nav()">
Marcin Kuzminski
Moved summary to seperate controller,...
r82 <form action="log">
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <dl class="search">
<dt><label>Search: </label></dt>
<dd><input type="text" name="rev" /></dd>
</dl>
</form>
Added menu generation as function
r91 ${self.menu('summary')}
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 </%def>
<%def name="main()">
<h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2>
<dl class="overview">
Marcin Kuzminski
Moved summary to seperate controller,...
r82 <dt>${_('name')}</dt>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <dd>${c.repo_info.name}</dd>
Marcin Kuzminski
Moved summary to seperate controller,...
r82 <dt>${_('description')}</dt>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <dd>${c.repo_info.description}</dd>
Marcin Kuzminski
Moved summary to seperate controller,...
r82 <dt>${_('contact')}</dt>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <dd>${c.repo_info.contact}</dd>
Marcin Kuzminski
Moved summary to seperate controller,...
r82 <dt>${_('last change')}</dt>
Marcin Kuzminski
implemented Shortlog as seperate controller,...
r83 <dd>${c.repo_info.last_change|n,filters.rfc822date} - ${c.repo_info.last_change|n,filters.age}</dd>
Marcin Kuzminski
Moved summary to seperate controller,...
r82 <dt>${_('url')}</dt>
fixed pre margin for summary page
r150 <dd><pre style="margin:0">hg clone <a href="${c.clone_repo_url}">${c.clone_repo_url}</a></pre></dd>
Marcin Kuzminski
Moved summary to seperate controller,...
r82 <dt>${_('Download')}</dt>
<dd>
Updated template for summary (archives links)...
r149 %for cnt,archive in enumerate(c.repo_info._get_archives()):
%if cnt >=1:
|
%endif
${h.link_to(c.repo_info.name+'.'+archive['type'],
h.url('files_archive_home',repo_name=c.repo_info.name,
revision='tip',fileformat=archive['extension']))}
Marcin Kuzminski
Moved summary to seperate controller,...
r82 %endfor
</dd>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 </dl>
Html updates and fixes
r105 <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <table>
fixed listings, of commits, added slugs for longer commits messages
r141 <%def name="message_slug(msg)">
<%
limit = 60
if len(msg) > limit:
return msg[:limit]+'...'
else:
return msg
%>
</%def>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 %for cnt,cs in enumerate(c.repo_changesets):
<tr class="parity${cnt%2}">
Marcin Kuzminski
implemented Shortlog as seperate controller,...
r83 <td>${cs._ctx.date()|n,filters.age}</td>
fixed listings, of commits, added slugs for longer commits messages
r141 <td>${cs.author|n,filters.person}</td>
added images updated htl added tags,branches display
r110 <td>
fixed listings, of commits, added slugs for longer commits messages
r141 ${h.link_to(message_slug(cs.message),
h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
title=cs.message)}
</td>
<td>
added images updated htl added tags,branches display
r110 <span class="logtags">
<span class="branchtag">${cs.branch}</span>
%for tag in cs.tags:
<span class="tagtag">${tag}</span>
%endfor
</span>
</td>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <td class="nowrap">
Html updates and fixes
r105 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 |
Html updates and fixes
r105 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))}
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 </td>
</tr>
%endfor
</table>
Html updates and fixes
r105 <h2>${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}</h2>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <table>
Updated summary page
r126 %for cnt,tag in enumerate(c.repo_tags):
<tr class="parity${cnt%2}">
<td>${tag._ctx.date()|n,filters.age}</td>
<td>
<span class="logtags">
<span class="tagtag">${h.link_to(tag.tags[-1],h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}</span>
</span>
</td>
<td class="nowrap">
${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag._short))}
|
${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag._short))}
</td>
</tr>
Marcin Kuzminski
reimplemented summary page,...
r80 %endfor
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 </table>
Html updates and fixes
r105 <h2>${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}</h2>
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 <table>
Updated summary page
r126 %for cnt,branch in enumerate(c.repo_branches):
<tr class="parity${cnt%2}">
<td>${branch._ctx.date()|n,filters.age}</td>
<td>
<span class="logtags">
<span class="branchtag">${h.link_to(branch.branch,h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}</span>
</span>
</td>
<td class="nowrap">
${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch._short))}
|
${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch._short))}
</td>
</tr>
Marcin Kuzminski
reimplemented summary page,...
r80 %endfor
Marcin Kuzminski
Started summary page. Added filters to templates. used by n,self.f.filtername prefixed by n to disable other filters. Few other fixes found
r74 </table>
</%def>