annotate pylons_app/templates/shortlog/shortlog_data.html @ 320:05b212954275

Implemented owner settings, as separete posibility to edit repositry by non administrative owner of repository
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 30 Jun 2010 15:35:10 +0200
parents 237470e64bb8
children 558eb7c5028f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
1 ## -*- coding: utf-8 -*-
282
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
2 % if c.repo_changesets:
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
3
279
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
4 <table class="table_disp">
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
5 <tr class="header">
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
6 <td>${_('date')}</td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
7 <td>${_('author')}</td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
8 <td>${_('revision')}</td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
9 <td>${_('commit message')}</td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
10 <td>${_('branch')}</td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
11 <td>${_('tags')}</td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
12 <td>${_('links')}</td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
13
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
14 </tr>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
15 %for cnt,cs in enumerate(c.repo_changesets):
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
16 <tr class="parity${cnt%2}">
282
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
17 <td>${h.age(cs._ctx.date())}</td>
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
18 <td title="${cs.author}">${h.person(cs.author)}</td>
280
373ddb868bd6 html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents: 279
diff changeset
19 <td>r${cs.revision}:${cs.raw_id}</td>
141
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
20 <td>
260
6ada8c223374 made global funcion to clean repo names, and remove all special chars from the name.
Marcin Kuzminski <marcin@python-works.com>
parents: 259
diff changeset
21 ${h.link_to(h.truncate(cs.message,60),
141
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
22 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
23 title=cs.message)}
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
24 </td>
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
25 <td>
280
373ddb868bd6 html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents: 279
diff changeset
26 <span class="logtags">
373ddb868bd6 html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents: 279
diff changeset
27 <span class="branchtag">${cs.branch}</span>
373ddb868bd6 html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents: 279
diff changeset
28 </span>
110
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
29 </td>
279
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
30 <td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
31 <span class="logtags">
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
32 %for tag in cs.tags:
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
33 <span class="tagtag">${tag}</span>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
34 %endfor
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
35 </span>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
36 </td>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
37 <td class="nowrap">
277
7ec4463b6e53 fixed branches and tags, fetching for new vcs implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 260
diff changeset
38 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
39 |
277
7ec4463b6e53 fixed branches and tags, fetching for new vcs implementation
Marcin Kuzminski <marcin@python-works.com>
parents: 260
diff changeset
40 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
41 </td>
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
42 </tr>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
43 %endfor
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
44
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
45 </table>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
46 <div>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
47 <script type="text/javascript">
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
48 var data_div = 'shortlog_data';
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
49 YAHOO.util.Event.onDOMReady(function(){
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
50 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
51 YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});});
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
52 </script>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
53 <h2>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
54 ${c.repo_changesets.pager('$link_previous ~2~ $link_next',
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
55 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
56 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText;
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
57 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
58 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');});
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
59 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")}
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
60 </h2>
282
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
61 </div>
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
62 %else:
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
63 ${_('There are no commits yet')}
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
64 %endif