Mercurial > kallithea
annotate rhodecode/templates/journal/journal_data.html @ 3197:b4f401524060 beta
html: don't use tabs
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 22 Jan 2013 23:44:38 +0100 |
parents | 44827c84dc66 |
children | 371898dc9a91 |
rev | line source |
---|---|
996
69e744932d22
Added missing journal_data template
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
69e744932d22
Added missing journal_data template
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 |
69e744932d22
Added missing journal_data template
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 %if c.journal_day_aggreagate: |
69e744932d22
Added missing journal_data template
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
4 %for day,items in c.journal_day_aggreagate: |
69e744932d22
Added missing journal_data template
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
5 <div class="journal_day">${day}</div> |
1041
98be43b888c4
Updated new Journal with users and dates aggregates
Marcin Kuzminski <marcin@python-works.com>
parents:
997
diff
changeset
|
6 % for user,entries in items: |
3197 | 7 <div class="journal_container"> |
8 <div class="gravatar"> | |
9 <img alt="gravatar" src="${h.gravatar_url(user.email if user else 'anonymous@rhodecode.org',24)}"/> | |
10 </div> | |
3068
44827c84dc66
added handling of deleted users in journal data
Marcin Kuzminski <marcin@python-works.com>
parents:
2971
diff
changeset
|
11 %if user: |
3197 | 12 <div class="journal_user">${user.name} ${user.lastname}</div> |
3068
44827c84dc66
added handling of deleted users in journal data
Marcin Kuzminski <marcin@python-works.com>
parents:
2971
diff
changeset
|
13 %else: |
44827c84dc66
added handling of deleted users in journal data
Marcin Kuzminski <marcin@python-works.com>
parents:
2971
diff
changeset
|
14 <div class="journal_user deleted">${entries[0].username}</div> |
44827c84dc66
added handling of deleted users in journal data
Marcin Kuzminski <marcin@python-works.com>
parents:
2971
diff
changeset
|
15 %endif |
3197 | 16 <div class="journal_action_container"> |
17 % for entry in entries: | |
18 <div class="journal_icon"> ${h.action_parser(entry)[2]()}</div> | |
19 <div class="journal_action">${h.action_parser(entry)[0]()}</div> | |
20 <div class="journal_repo"> | |
21 <span class="journal_repo_name"> | |
22 %if entry.repository is not None: | |
23 ${h.link_to(entry.repository.repo_name, | |
24 h.url('summary_home',repo_name=entry.repository.repo_name))} | |
25 %else: | |
26 ${entry.repository_name} | |
27 %endif | |
28 </span> | |
29 </div> | |
30 <div class="journal_action_params">${h.literal(h.action_parser(entry)[1]())}</div> | |
31 <div class="date"><span class="tooltip" title="${h.tooltip(h.fmt_date(entry.action_date))}">${h.age(entry.action_date)}</span></div> | |
32 %endfor | |
33 </div> | |
34 </div> | |
996
69e744932d22
Added missing journal_data template
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
35 %endfor |
69e744932d22
Added missing journal_data template
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
36 %endfor |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1746
diff
changeset
|
37 |
1746
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
38 <div class="pagination-wh pagination-left"> |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
39 <script type="text/javascript"> |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
40 YUE.onDOMReady(function(){ |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
41 YUE.delegate("journal","click",function(e, matchedEl, container){ |
3197 | 42 ypjax(e.target.href,"journal",function(){ |
43 show_more_event(); | |
44 tooltip_activate(); | |
45 show_changeset_tooltip(); | |
46 }); | |
1746
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
47 YUE.preventDefault(e); |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
48 },'.pager_link'); |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
49 }); |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
50 </script> |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
51 ${c.journal_pager.pager('$link_previous ~2~ $link_next')} |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
52 </div> |
996
69e744932d22
Added missing journal_data template
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
53 %else: |
1746
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
54 <div style="padding:5px 0px 10px 10px;"> |
753aeb4a5c58
Journal refresh button
Marcin Kuzminski <marcin@python-works.com>
parents:
1421
diff
changeset
|
55 ${_('No entries yet')} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1746
diff
changeset
|
56 </div> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1746
diff
changeset
|
57 %endif |