comparison rhodecode/templates/journal.html @ 734:49eb69d78988 beta

implemented user dashboards, and following system.
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 22 Nov 2010 03:57:47 +0100
parents
children d5bad4a2432f
comparison
equal deleted inserted replaced
733:ac701b421053 734:49eb69d78988
1 ## -*- coding: utf-8 -*-
2 <%inherit file="base/base.html"/>
3 <%def name="title()">
4 ${_('Journal')} - ${c.rhodecode_name}
5 </%def>
6 <%def name="breadcrumbs()">
7 ${c.rhodecode_name}
8 </%def>
9 <%def name="page_nav()">
10 ${self.menu('home')}
11 </%def>
12 <%def name="main()">
13
14 <div class="box box-left">
15 <!-- box / title -->
16 <div class="title">
17 <h5>${_('Journal')}</h5>
18 </div>
19 <div>
20 %if c.journal:
21 %for entry in c.journal:
22 <div style="padding:10px">
23 <div class="gravatar">
24 <img alt="gravatar" src="${h.gravatar_url(entry.user.email)}"/>
25 </div>
26 <div>${entry.user.name} ${entry.user.lastname}</div>
27 <div style="padding-left: 45px;">${h.action_parser(entry)} <br/>
28 <b>
29 %if entry.repository:
30 ${h.link_to(entry.repository.repo_name,
31 h.url('summary_home',repo_name=entry.repository.repo_name))}
32 %else:
33 ${entry.repository_name}
34 %endif
35 </b> - <span title="${entry.action_date}">${h.age(entry.action_date)}</span>
36 </div>
37 </div>
38 <div style="clear:both;border-bottom:1px dashed #DDD;padding:3px 3px;margin:0px 10px 0px 10px"></div>
39 %endfor
40 %else:
41 ${_('No entries yet')}
42 %endif
43 </div>
44 </div>
45
46 <div class="box box-right">
47 <!-- box / title -->
48 <div class="title">
49 <h5>${_('Following')}</h5>
50 </div>
51 <div>
52 %if c.following:
53 %for entry in c.following:
54 <div>
55 %if entry.follows_user_id:
56 <img alt="" src="/images/icons/user.png"/>
57
58 ${entry.follows_user.username}
59 %endif
60
61 %if entry.follows_repo_id:
62
63 %if entry.follows_repository.private:
64 <img alt="" src="/images/icons/lock_closed.png"/>
65 %else:
66 <img alt="" src="/images/icons/lock_open.png"/>
67 %endif
68
69 ${h.link_to(entry.follows_repository.repo_name,h.url('summary_home',
70 repo_name=entry.follows_repository.repo_name))}
71
72 %endif
73 </div>
74 %endfor
75 %else:
76 ${_('You are not following any users or repositories')}
77 %endif
78 </div>
79 </div>
80 </%def>