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