##// END OF EJS Templates
html updates,mostly tables
marcink -
r280:373ddb86 default
parent child Browse files
Show More
@@ -1,39 +1,46
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.html"/>
2 <%! from pylons_app.lib import filters %>
2 <%! from pylons_app.lib import filters %>
3 <%def name="title()">
3 <%def name="title()">
4 ${_('Branches')}
4 ${_('Branches')}
5 </%def>
5 </%def>
6 <%def name="breadcrumbs()">
6 <%def name="breadcrumbs()">
7 ${h.link_to(u'Home',h.url('/'))}
7 ${h.link_to(u'Home',h.url('/'))}
8 /
8 /
9 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
9 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
10 /
10 /
11 ${_('branches')}
11 ${_('branches')}
12 </%def>
12 </%def>
13 <%def name="page_nav()">
13 <%def name="page_nav()">
14 ${self.menu('branches')}
14 ${self.menu('branches')}
15 </%def>
15 </%def>
16 <%def name="main()">
16 <%def name="main()">
17
17
18 <h2 class="no-link no-border">${_('Branches')}</h2>
18 <h2 class="no-link no-border">${_('Branches')}</h2>
19
19
20 <table>
20 <table class="table_disp">
21 <tr class="header">
22 <td>${_('date')}</td>
23 <td>${_('revision')}</td>
24 <td>${_('name')}</td>
25 <td>${_('links')}</td>
26 </tr>
21 %for cnt,branch in enumerate(c.repo_branches.items()):
27 %for cnt,branch in enumerate(c.repo_branches.items()):
22 <tr class="parity${cnt%2}">
28 <tr class="parity${cnt%2}">
23 <td>${branch[1]._ctx.date()|n,filters.age}</td>
29 <td>${branch[1]._ctx.date()|n,filters.age}</td>
30 <td>r${branch[1].revision}:${branch[1].raw_id}</td>
24 <td>
31 <td>
25 <span class="logtags">
32 <span class="logtags">
26 <span class="branchtag">${h.link_to(branch[0],
33 <span class="branchtag">${h.link_to(branch[0],
27 h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}</span>
34 h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}</span>
28 </span>
35 </span>
29 </td>
36 </td>
30 <td class="nowrap">
37 <td class="nowrap">
31 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
38 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
32 |
39 |
33 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
40 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
34 </td>
41 </td>
35 </tr>
42 </tr>
36 %endfor
43 %endfor
37 </table>
44 </table>
38
45
39 </%def> No newline at end of file
46 </%def>
@@ -1,92 +1,92
1 <%!
1 <%!
2 from pylons_app.lib import filters
2 from pylons_app.lib import filters
3 %>
3 %>
4 <%inherit file="/base/base.html"/>
4 <%inherit file="/base/base.html"/>
5
5
6 <%def name="title()">
6 <%def name="title()">
7 ${_('Changelog - %s') % c.repo_name}
7 ${_('Changelog - %s') % c.repo_name}
8 </%def>
8 </%def>
9 <%def name="breadcrumbs()">
9 <%def name="breadcrumbs()">
10 ${h.link_to(u'Home',h.url('/'))}
10 ${h.link_to(u'Home',h.url('/'))}
11 /
11 /
12 ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))}
12 ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))}
13 /
13 /
14 ${_('changelog')}
14 ${_('changelog')}
15 </%def>
15 </%def>
16 <%def name="page_nav()">
16 <%def name="page_nav()">
17 ${self.menu('changelog')}
17 ${self.menu('changelog')}
18 </%def>
18 </%def>
19
19
20 <%def name="main()">
20 <%def name="main()">
21
21
22 <h2 class="no-link no-border">${_('Changelog')} - ${_('showing ')} ${c.size} ${_('revisions')}</h2>
22 <h2 class="no-link no-border">${_('Changelog')} - ${_('showing last ')} ${c.size} ${_('revisions')}</h2>
23 <noscript>${_('The revision graph only works with JavaScript-enabled browsers.')}</noscript>
23 <noscript>${_('The revision graph only works with JavaScript-enabled browsers.')}</noscript>
24
24
25 <div id="graph">
25 <div id="graph">
26 ##<div id="graph_nodes" style="height:1000px">
26 ##<div id="graph_nodes" style="height:1000px">
27 ## <canvas id="graph" width="160"></canvas>
27 ## <canvas id="graph" width="160"></canvas>
28 ##</div>
28 ##</div>
29 <div id="graph_content">
29 <div id="graph_content">
30 <div class="container_header">
30 <div class="container_header">
31 ${h.form(h.url.current(),method='get')}
31 ${h.form(h.url.current(),method='get')}
32 ${_('Show')}: ${h.text('size',size=5,value=c.size)} ${_('revisions')}
32 ${_('Show')}: ${h.text('size',size=2,value=c.size)} ${_('revisions')}
33 ${h.submit('','set')}
33 ${h.submit('','set')}
34 ${h.end_form()}
34 ${h.end_form()}
35 </div>
35 </div>
36 %for cnt,cs in enumerate(c.pagination):
36 %for cnt,cs in enumerate(c.pagination):
37 <div class="container">
37 <div class="container">
38 <div class="left">
38 <div class="left">
39 <div class="date">${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}</div>
39 <div class="date">${_('commit')} ${cs.revision}: ${cs.raw_id}@${cs.date}</div>
40 <div class="author">${cs.author}</div>
40 <div class="author">${cs.author}</div>
41 <div id="chg_${cnt}" class="message">
41 <div id="chg_${cnt}" class="message">
42 ${h.link_to(cs.message,
42 ${h.link_to(cs.message,
43 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
43 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
44 title=cs.message)}
44 title=cs.message)}
45 </div>
45 </div>
46 <span class="logtags">
46 <span class="logtags">
47 <span class="branchtag">${cs.branch}</span>
47 <span class="branchtag">${cs.branch}</span>
48 %for tag in cs.tags:
48 %for tag in cs.tags:
49 <span class="tagtag">${tag}</span>
49 <span class="tagtag">${tag}</span>
50 %endfor
50 %endfor
51 </span>
51 </span>
52 </div>
52 </div>
53 <div class="right">
53 <div class="right">
54 <div class="changes">
54 <div class="changes">
55 <span class="removed" title="${_('removed')}">${len(cs.removed)}</span>
55 <span class="removed" title="${_('removed')}">${len(cs.removed)}</span>
56 <span class="changed" title="${_('changed')}">${len(cs.changed)}</span>
56 <span class="changed" title="${_('changed')}">${len(cs.changed)}</span>
57 <span class="added" title="${_('added')}">${len(cs.added)}</span>
57 <span class="added" title="${_('added')}">${len(cs.added)}</span>
58 </div>
58 </div>
59 %if len(cs.parents)>1:
59 %if len(cs.parents)>1:
60 <div class="merge">
60 <div class="merge">
61 ${_('merge')}<img alt="merge" src="/images/icons/arrow_join.png">
61 ${_('merge')}<img alt="merge" src="/images/icons/arrow_join.png">
62 </div>
62 </div>
63 %endif
63 %endif
64 %for p_cs in reversed(cs.parents):
64 %for p_cs in reversed(cs.parents):
65 <div class="parent">${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id,
65 <div class="parent">${_('Parent')} ${p_cs.revision}: ${h.link_to(p_cs.raw_id,
66 h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}
66 h.url('changeset_home',repo_name=c.repo_name,revision=p_cs.raw_id),title=p_cs.message)}
67 </div>
67 </div>
68 %endfor
68 %endfor
69 </div>
69 </div>
70 </div>
70 </div>
71
71
72 %endfor
72 %endfor
73 </div>
73 </div>
74 </div>
74 </div>
75
75
76 ##<script type="text/javascript" src="/js/graph2.js"></script>
76 ##<script type="text/javascript" src="/js/graph2.js"></script>
77 ##<script type="text/javascript" src="http://bitbucket-assets.s3.amazonaws.com/js/lib/bundle.160310Mar.js"></script>
77 ##<script type="text/javascript" src="http://bitbucket-assets.s3.amazonaws.com/js/lib/bundle.160310Mar.js"></script>
78 ##
78 ##
79 ##<script>
79 ##<script>
80 ##<!-- hide script content
80 ##<!-- hide script content
81 ##
81 ##
82 ##var jsdata = ${c.jsdata|n};
82 ##var jsdata = ${c.jsdata|n};
83 ##var r = new BranchRenderer();
83 ##var r = new BranchRenderer();
84 ##r.render(jsdata);
84 ##r.render(jsdata);
85
85
86 ##// stop hiding script -->
86 ##// stop hiding script -->
87 ##</script>
87 ##</script>
88
88
89 <div>
89 <div>
90 <h2>${c.pagination.pager('$link_previous ~2~ $link_next')}</h2>
90 <h2>${c.pagination.pager('$link_previous ~2~ $link_next')}</h2>
91 </div>
91 </div>
92 </%def> No newline at end of file
92 </%def>
@@ -1,66 +1,67
1 <%def name="file_class(node)">
1 <%def name="file_class(node)">
2 %if node.is_file():
2 %if node.is_file():
3 <%return "browser-file" %>
3 <%return "browser-file" %>
4 %else:
4 %else:
5 <%return "browser-dir"%>
5 <%return "browser-dir"%>
6 %endif
6 %endif
7 </%def>
7 </%def>
8 <div id="body" class="browserblock">
8 <div id="body" class="browserblock">
9 <div class="browser-header">
9 <div class="browser-header">
10 ${h.form(h.url.current())}
10 ${h.form(h.url.current())}
11 <span>${_('view')}@rev <a style="font-size: 1.3em" href="${c.url_prev}">&laquo;</a>${h.text('at_rev',value=c.rev_nr,size='5')}<a style="font-size: 1.3em" href="${c.url_next}">&raquo;</a></span>
11 <span>${_('view')}@rev <a style="font-size: 1.3em" href="${c.url_prev}">&laquo;</a>${h.text('at_rev',value=c.rev_nr,size='5')}<a style="font-size: 1.3em" href="${c.url_next}">&raquo;</a></span>
12 ${c.cur_rev}
12 ${h.submit('view','view')}
13 ${h.submit('view','view')}
13 ${h.end_form()}
14 ${h.end_form()}
14 </div>
15 </div>
15 <div class="browser-body">
16 <div class="browser-body">
16 <table class="code-browser">
17 <table class="code-browser">
17 <thead>
18 <thead>
18 <tr>
19 <tr>
19 <th>${_('Name')}</th>
20 <th>${_('Name')}</th>
20 <th>${_('Size')}</th>
21 <th>${_('Size')}</th>
21 <th>${_('Revision')}</th>
22 <th>${_('Revision')}</th>
22 <th>${_('Last modified')}</th>
23 <th>${_('Last modified')}</th>
23 <th>${_('Last commiter')}</th>
24 <th>${_('Last commiter')}</th>
24 </tr>
25 </tr>
25 </thead>
26 </thead>
26 <tr class="parity0">
27 <tr class="parity0">
27 <td>
28 <td>
28 % if c.files_list.parent:
29 % if c.files_list.parent:
29 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")}
30 ${h.link_to('..',h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.files_list.parent.path),class_="browser-dir")}
30 %endif
31 %endif
31 </td>
32 </td>
32 <td></td>
33 <td></td>
33 <td></td>
34 <td></td>
34 <td></td>
35 <td></td>
35 <td></td>
36 <td></td>
36 </tr>
37 </tr>
37 %for cnt,node in enumerate(c.files_list,1):
38 %for cnt,node in enumerate(c.files_list,1):
38 <tr class="parity${cnt%2}">
39 <tr class="parity${cnt%2}">
39 <td>
40 <td>
40 ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
41 ${h.link_to(node.name,h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=node.path),class_=file_class(node))}
41 </td>
42 </td>
42 <td>
43 <td>
43 %if node.is_file():
44 %if node.is_file():
44 ${h.format_byte_size(node.size,binary=True)}
45 ${h.format_byte_size(node.size,binary=True)}
45 %endif
46 %endif
46 </td>
47 </td>
47 <td>
48 <td>
48 %if node.is_file():
49 %if node.is_file():
49 ${node.last_changeset.revision}
50 ${node.last_changeset.revision}
50 %endif
51 %endif
51 </td>
52 </td>
52 <td>
53 <td>
53 %if node.is_file():
54 %if node.is_file():
54 ${node.last_changeset.date}
55 ${node.last_changeset.date}
55 %endif
56 %endif
56 </td>
57 </td>
57 <td>
58 <td>
58 %if node.is_file():
59 %if node.is_file():
59 ${node.last_changeset.author}
60 ${node.last_changeset.author}
60 %endif
61 %endif
61 </td>
62 </td>
62 </tr>
63 </tr>
63 %endfor
64 %endfor
64 </table>
65 </table>
65 </div>
66 </div>
66 </div> No newline at end of file
67 </div>
@@ -1,62 +1,62
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%!
2 <%!
3 from pylons_app.lib import filters
3 from pylons_app.lib import filters
4 %>
4 %>
5 <table class="table_disp">
5 <table class="table_disp">
6 <tr class="header">
6 <tr class="header">
7 <td>${_('date')}</td>
7 <td>${_('date')}</td>
8 <td>${_('author')}</td>
8 <td>${_('author')}</td>
9 <td>${_('revision')}</td>
9 <td>${_('revision')}</td>
10 <td>${_('commit message')}</td>
10 <td>${_('commit message')}</td>
11 <td>${_('branch')}</td>
11 <td>${_('branch')}</td>
12 <td>${_('tags')}</td>
12 <td>${_('tags')}</td>
13 <td>${_('links')}</td>
13 <td>${_('links')}</td>
14
14
15 </tr>
15 </tr>
16 %for cnt,cs in enumerate(c.repo_changesets):
16 %for cnt,cs in enumerate(c.repo_changesets):
17 <tr class="parity${cnt%2}">
17 <tr class="parity${cnt%2}">
18 <td>${cs._ctx.date()|n,filters.age}</td>
18 <td>${cs._ctx.date()|n,filters.age}</td>
19 <td title="${cs.author}">${cs.author|n,filters.person}</td>
19 <td title="${cs.author}">${cs.author|n,filters.person}</td>
20 <td>r${cs.revision}</td>
20 <td>r${cs.revision}:${cs.raw_id}</td>
21 <td>
21 <td>
22 ${h.link_to(h.truncate(cs.message,60),
22 ${h.link_to(h.truncate(cs.message,60),
23 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
23 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
24 title=cs.message)}
24 title=cs.message)}
25 </td>
25 </td>
26 <td>
26 <td>
27 <span class="logtags">
27 <span class="logtags">
28 <span class="branchtag">${cs.branch}</span>
28 <span class="branchtag">${cs.branch}</span>
29 </span>
29 </span>
30 </td>
30 </td>
31 <td>
31 <td>
32 <span class="logtags">
32 <span class="logtags">
33 %for tag in cs.tags:
33 %for tag in cs.tags:
34 <span class="tagtag">${tag}</span>
34 <span class="tagtag">${tag}</span>
35 %endfor
35 %endfor
36 </span>
36 </span>
37 </td>
37 </td>
38 <td class="nowrap">
38 <td class="nowrap">
39 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
39 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
40 |
40 |
41 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
41 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
42 </td>
42 </td>
43 </tr>
43 </tr>
44 %endfor
44 %endfor
45
45
46 </table>
46 </table>
47 <div>
47 <div>
48 <script type="text/javascript">
48 <script type="text/javascript">
49 var data_div = 'shortlog_data';
49 var data_div = 'shortlog_data';
50 YAHOO.util.Event.onDOMReady(function(){
50 YAHOO.util.Event.onDOMReady(function(){
51 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
51 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
52 YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});});
52 YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});});
53 </script>
53 </script>
54 <h2>
54 <h2>
55 ${c.repo_changesets.pager('$link_previous ~2~ $link_next',
55 ${c.repo_changesets.pager('$link_previous ~2~ $link_next',
56 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{
56 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{
57 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText;
57 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText;
58 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
58 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
59 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');});
59 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');});
60 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")}
60 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")}
61 </h2>
61 </h2>
62 </div> No newline at end of file
62 </div>
@@ -1,134 +1,162
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.html"/>
2 <%!
2 <%!
3 from pylons_app.lib import filters
3 from pylons_app.lib import filters
4 %>
4 %>
5 <%def name="title()">
5 <%def name="title()">
6 ${_('Repository managment')}
6 ${_('Repository managment')}
7 </%def>
7 </%def>
8 <%def name="breadcrumbs()">
8 <%def name="breadcrumbs()">
9 ${h.link_to(u'Home',h.url('/'))}
9 ${h.link_to(u'Home',h.url('/'))}
10 /
10 /
11 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
11 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
12 /
12 /
13 ${_('summary')}
13 ${_('summary')}
14 </%def>
14 </%def>
15 <%def name="page_nav()">
15 <%def name="page_nav()">
16 ${self.menu('summary')}
16 ${self.menu('summary')}
17 </%def>
17 </%def>
18
18
19 <%def name="js()">
19 <%def name="js()">
20 <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
20 <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
21 <script type="text/javascript">
21 <script type="text/javascript">
22 var E = YAHOO.util.Event;
22 var E = YAHOO.util.Event;
23 var D = YAHOO.util.Dom;
23 var D = YAHOO.util.Dom;
24
24
25 E.onDOMReady(function(e){
25 E.onDOMReady(function(e){
26 id = 'clone_url';
26 id = 'clone_url';
27 E.addListener(id,'click',function(e){
27 E.addListener(id,'click',function(e){
28 D.get('clone_url').select();
28 D.get('clone_url').select();
29 })
29 })
30 })
30 })
31 </script>
31 </script>
32 </%def>
32 </%def>
33
33
34 <%def name="main()">
34 <%def name="main()">
35 <h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2>
35 <h2 class="no-link no-border">${_('Mercurial Repository Overview')}</h2>
36 <dl class="overview">
36 <dl class="overview">
37 <dt>${_('name')}</dt>
37 <dt>${_('name')}</dt>
38 <dd>${c.repo_info.name}</dd>
38 <dd>${c.repo_info.name}</dd>
39 <dt>${_('description')}</dt>
39 <dt>${_('description')}</dt>
40 <dd>${c.repo_info.description}</dd>
40 <dd>${c.repo_info.description}</dd>
41 <dt>${_('contact')}</dt>
41 <dt>${_('contact')}</dt>
42 <dd>${c.repo_info.contact}</dd>
42 <dd>${c.repo_info.contact}</dd>
43 <dt>${_('last change')}</dt>
43 <dt>${_('last change')}</dt>
44 <dd>${c.repo_info.last_change|n,filters.age} - ${c.repo_info.last_change|n,filters.rfc822date}</dd>
44 <dd>${c.repo_info.last_change|n,filters.age} - ${c.repo_info.last_change|n,filters.rfc822date}</dd>
45 <dt>${_('clone url')}</dt>
45 <dt>${_('clone url')}</dt>
46 <dd><input type="text" id="clone_url" readonly="readonly" value="hg clone ${c.clone_repo_url}" size="70"/></dd>
46 <dd><input type="text" id="clone_url" readonly="readonly" value="hg clone ${c.clone_repo_url}" size="70"/></dd>
47 <dt>${_('download')}</dt>
47 <dt>${_('download')}</dt>
48 <dd>
48 <dd>
49 %for cnt,archive in enumerate(c.repo_info._get_archives()):
49 %for cnt,archive in enumerate(c.repo_info._get_archives()):
50 %if cnt >=1:
50 %if cnt >=1:
51 |
51 |
52 %endif
52 %endif
53 ${h.link_to(c.repo_info.name+'.'+archive['type'],
53 ${h.link_to(c.repo_info.name+'.'+archive['type'],
54 h.url('files_archive_home',repo_name=c.repo_info.name,
54 h.url('files_archive_home',repo_name=c.repo_info.name,
55 revision='tip',fileformat=archive['extension']),class_="archive_logo")}
55 revision='tip',fileformat=archive['extension']),class_="archive_logo")}
56 %endfor
56 %endfor
57 </dd>
57 </dd>
58 <dt>${_('feeds')}</dt>
58 <dt>${_('feeds')}</dt>
59 <dd>
59 <dd>
60 ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=c.repo_info.name),class_='rss_logo')}
60 ${h.link_to(_('RSS'),h.url('rss_feed_home',repo_name=c.repo_info.name),class_='rss_logo')}
61 ${h.link_to(_('Atom'),h.url('atom_feed_home',repo_name=c.repo_info.name),class_='atom_logo')}
61 ${h.link_to(_('Atom'),h.url('atom_feed_home',repo_name=c.repo_info.name),class_='atom_logo')}
62 </dd>
62 </dd>
63 </dl>
63 </dl>
64
64
65 <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2>
65 <h2>${h.link_to(_('Last ten changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2>
66 <table>
66 <table class="table_disp">
67 <tr class="header">
68 <td>${_('date')}</td>
69 <td>${_('author')}</td>
70 <td>${_('revision')}</td>
71 <td>${_('commit message')}</td>
72 <td>${_('branch')}</td>
73 <td>${_('tags')}</td>
74 <td>${_('links')}</td>
75
76 </tr>
67 %for cnt,cs in enumerate(c.repo_changesets):
77 %for cnt,cs in enumerate(c.repo_changesets):
68 <tr class="parity${cnt%2}">
78 <tr class="parity${cnt%2}">
69 <td>${cs._ctx.date()|n,filters.age}</td>
79 <td>${cs._ctx.date()|n,filters.age}</td>
70 <td>${cs.author|n,filters.person}</td>
80 <td>${cs.author|n,filters.person}</td>
71 <td>r${cs.revision}</td>
81 <td>r${cs.revision}:${cs.raw_id}</td>
72 <td>
82 <td>
73 ${h.link_to(h.truncate(cs.message,60),
83 ${h.link_to(h.truncate(cs.message,60),
74 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
84 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
75 title=cs.message)}
85 title=cs.message)}
76 </td>
86 </td>
77 <td>
87 <td>
78 <span class="logtags">
88 <span class="logtags">
79 <span class="branchtag">${cs.branch}</span>
89 <span class="branchtag">${cs.branch}</span>
90 </span>
91 </td>
92 <td>
93 <span class="logtags">
80 %for tag in cs.tags:
94 %for tag in cs.tags:
81 <span class="tagtag">${tag}</span>
95 <span class="tagtag">${tag}</span>
82 %endfor
96 %endfor
83 </span>
97 </span>
84 </td>
98 </td>
85 <td class="nowrap">
99 <td class="nowrap">
86 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
100 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
87 |
101 |
88 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))}
102 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))}
89 </td>
103 </td>
90 </tr>
104 </tr>
91 %endfor
105 %endfor
92 </table>
106 </table>
93
107
94 <h2>${h.link_to(_('Tags'),h.url('tags_home',repo_name=c.repo_name))}</h2>
108 <h2>${h.link_to(_('Last ten tags'),h.url('tags_home',repo_name=c.repo_name))}</h2>
95 <table>
109 <table class="table_disp">
110 <tr class="header">
111 <td>${_('date')}</td>
112 <td>${_('revision')}</td>
113 <td>${_('name')}</td>
114 <td>${_('links')}</td>
115 </tr>
96 %for cnt,tag in enumerate(c.repo_tags.items()):
116 %for cnt,tag in enumerate(c.repo_tags.items()):
97 <tr class="parity${cnt%2}">
117 <tr class="parity${cnt%2}">
98 <td>${tag[1]._ctx.date()|n,filters.age}</td>
118 <td>${tag[1]._ctx.date()|n,filters.age}</td>
119 <td>r${tag[1].revision}:${tag[1].raw_id}</td>
99 <td>
120 <td>
100 <span class="logtags">
121 <span class="logtags">
101 <span class="tagtag">${h.link_to(tag[0],
122 <span class="tagtag">${h.link_to(tag[0],
102 h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}</span>
123 h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}</span>
103 </span>
124 </span>
104 </td>
125 </td>
105 <td class="nowrap">
126 <td class="nowrap">
106 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
127 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
107 |
128 |
108 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
129 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
109 </td>
130 </td>
110 </tr>
131 </tr>
111 %endfor
132 %endfor
112 </table>
133 </table>
113
134
114 <h2>${h.link_to(_('Branches'),h.url('branches_home',repo_name=c.repo_name))}</h2>
135 <h2>${h.link_to(_('Last ten branches'),h.url('branches_home',repo_name=c.repo_name))}</h2>
115 <table>
136 <table class="table_disp">
137 <tr class="header">
138 <td>${_('date')}</td>
139 <td>${_('revision')}</td>
140 <td>${_('name')}</td>
141 <td>${_('links')}</td>
142 </tr>
116 %for cnt,branch in enumerate(c.repo_branches.items()):
143 %for cnt,branch in enumerate(c.repo_branches.items()):
117 <tr class="parity${cnt%2}">
144 <tr class="parity${cnt%2}">
118 <td>${branch[1]._ctx.date()|n,filters.age}</td>
145 <td>${branch[1]._ctx.date()|n,filters.age}</td>
146 <td>r${branch[1].revision}:${branch[1].raw_id}</td>
119 <td>
147 <td>
120 <span class="logtags">
148 <span class="logtags">
121 <span class="branchtag">${h.link_to(branch[0],
149 <span class="branchtag">${h.link_to(branch[0],
122 h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}</span>
150 h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}</span>
123 </span>
151 </span>
124 </td>
152 </td>
125 <td class="nowrap">
153 <td class="nowrap">
126 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
154 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
127 |
155 |
128 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
156 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id))}
129 </td>
157 </td>
130 </tr>
158 </tr>
131 %endfor
159 %endfor
132 </table>
160 </table>
133
161
134 </%def> No newline at end of file
162 </%def>
@@ -1,40 +1,47
1 <%inherit file="/base/base.html"/>
1 <%inherit file="/base/base.html"/>
2 <%!
2 <%!
3 from pylons_app.lib import filters
3 from pylons_app.lib import filters
4 %>
4 %>
5 <%def name="title()">
5 <%def name="title()">
6 ${_('Tags')}
6 ${_('Tags')}
7 </%def>
7 </%def>
8 <%def name="breadcrumbs()">
8 <%def name="breadcrumbs()">
9 ${h.link_to(u'Home',h.url('/'))}
9 ${h.link_to(u'Home',h.url('/'))}
10 /
10 /
11 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
11 ${h.link_to(c.repo_name,h.url('summary_home',repo_name=c.repo_name))}
12 /
12 /
13 ${_('tags')}
13 ${_('tags')}
14 </%def>
14 </%def>
15 <%def name="page_nav()">
15 <%def name="page_nav()">
16 ${self.menu('tags')}
16 ${self.menu('tags')}
17 </%def>
17 </%def>
18 <%def name="main()">
18 <%def name="main()">
19
19
20 <h2 class="no-link no-border">${_('Tags')}</h2>
20 <h2 class="no-link no-border">${_('Tags')}</h2>
21 <table>
21 <table class="table_disp">
22 <tr class="header">
23 <td>${_('date')}</td>
24 <td>${_('revision')}</td>
25 <td>${_('name')}</td>
26 <td>${_('links')}</td>
27 </tr>
22 %for cnt,tag in enumerate(c.repo_tags.items()):
28 %for cnt,tag in enumerate(c.repo_tags.items()):
23 <tr class="parity${cnt%2}">
29 <tr class="parity${cnt%2}">
24 <td>${tag[1]._ctx.date()|n,filters.age}</td>
30 <td>${tag[1]._ctx.date()|n,filters.age}</td>
31 <td>r${tag[1].revision}:${tag[1].raw_id}</td>
25 <td>
32 <td>
26 <span class="logtags">
33 <span class="logtags">
27 <span class="tagtag">${h.link_to(tag[0],
34 <span class="tagtag">${h.link_to(tag[0],
28 h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}</span>
35 h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}</span>
29 </span>
36 </span>
30 </td>
37 </td>
31 <td class="nowrap">
38 <td class="nowrap">
32 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
39 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
33 |
40 |
34 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
41 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id))}
35 </td>
42 </td>
36 </tr>
43 </tr>
37 %endfor
44 %endfor
38 </table>
45 </table>
39
46
40 </%def> No newline at end of file
47 </%def>
General Comments 0
You need to be logged in to leave comments. Login now