##// END OF EJS Templates
Gist small ui improvements on listing
marcink -
r3851:24e479e2 beta
parent child Browse files
Show More
@@ -1,70 +1,71 b''
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
2 <%inherit file="/base/base.html"/>
3
3
4 <%def name="title()">
4 <%def name="title()">
5 ${_('Gists')} &middot; ${c.rhodecode_name}
5 ${_('Gists')} &middot; ${c.rhodecode_name}
6 </%def>
6 </%def>
7
7
8 <%def name="breadcrumbs_links()">
8 <%def name="breadcrumbs_links()">
9 %if c.show_private:
9 %if c.show_private:
10 ${_('Private Gists for user %s') % c.rhodecode_user.username}
10 ${_('Private Gists for user %s') % c.rhodecode_user.username}
11 %elif c.show_public:
11 %elif c.show_public:
12 ${_('Public Gists for user %s') % c.rhodecode_user.username}
12 ${_('Public Gists for user %s') % c.rhodecode_user.username}
13 %else:
13 %else:
14 ${_('Public Gists')}
14 ${_('Public Gists')}
15 %endif
15 %endif
16 - ${c.gists_pager.item_count}
16 - ${c.gists_pager.item_count}
17 </%def>
17 </%def>
18
18
19 <%def name="page_nav()">
19 <%def name="page_nav()">
20 ${self.menu('gists')}
20 ${self.menu('gists')}
21 </%def>
21 </%def>
22
22
23 <%def name="main()">
23 <%def name="main()">
24 <div class="box">
24 <div class="box">
25 <!-- box / title -->
25 <!-- box / title -->
26 <div class="title">
26 <div class="title">
27 ${self.breadcrumbs()}
27 ${self.breadcrumbs()}
28 %if c.rhodecode_user.username != 'default':
28 %if c.rhodecode_user.username != 'default':
29 <ul class="links">
29 <ul class="links">
30 <li>
30 <li>
31 <span>${h.link_to(_(u'Create new gist'), h.url('new_gist'))}</span>
31 <span>${h.link_to(_(u'Create new gist'), h.url('new_gist'))}</span>
32 </li>
32 </li>
33 </ul>
33 </ul>
34 %endif
34 %endif
35 </div>
35 </div>
36 %if c.gists_pager.item_count>0:
36 %if c.gists_pager.item_count>0:
37 % for gist in c.gists_pager:
37 % for gist in c.gists_pager:
38 <div class="gist-item" style="padding:10px 20px 10px 15px">
38 <div class="gist-item" style="padding:10px 20px 10px 15px">
39
39
40 <div class="gravatar">
40 <div class="gravatar">
41 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(gist.owner.full_contact),24)}"/>
41 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(gist.owner.full_contact),28)}"/>
42 </div>
42 </div>
43 <div title="${gist.owner.full_contact}" class="user">
43 <div title="${gist.owner.full_contact}" class="user" style="font-size: 16px">
44 <b>${h.person(gist.owner.full_contact)}</b> /
44 <b>${h.person(gist.owner.full_contact)}</b> /
45 <b><a href="${h.url('gist',id=gist.gist_access_id)}">gist:${gist.gist_access_id}</a></b>
45 <b><a href="${h.url('gist',id=gist.gist_access_id)}">gist:${gist.gist_access_id}</a></b>
46 </div>
47 <div style="padding: 4px 0px 0px 0px">
48 ${_('Created')} ${h.age(gist.created_on)} /
46 <span style="color: #AAA">
49 <span style="color: #AAA">
47 %if gist.gist_expires == -1:
50 %if gist.gist_expires == -1:
48 ${_('Expires')}: ${_('never')}
51 ${_('Expires')}: ${_('never')}
49 %else:
52 %else:
50 ${_('Expires')}: ${h.age(h.time_to_datetime(gist.gist_expires))}
53 ${_('Expires')}: ${h.age(h.time_to_datetime(gist.gist_expires))}
51 %endif
54 %endif
52 </span>
55 </span>
53 </div>
56 </div>
54 <div>${_('Created')} ${h.age(gist.created_on)}
55 </div>
56
57
57 <div style="border:0px;padding:10px 0px 0px 35px;color:#AAA">${gist.gist_description}</div>
58 <div style="border:0px;padding:10px 0px 0px 40px;color:#AAA">${gist.gist_description}</div>
58 </div>
59 </div>
59 % endfor
60 % endfor
60
61
61 <div class="notification-paginator">
62 <div class="notification-paginator">
62 <div class="pagination-wh pagination-left">
63 <div class="pagination-wh pagination-left">
63 ${c.gists_pager.pager('$link_previous ~2~ $link_next')}
64 ${c.gists_pager.pager('$link_previous ~2~ $link_next')}
64 </div>
65 </div>
65 </div>
66 </div>
66 %else:
67 %else:
67 <div class="table">${_('There are no gists yet')}</div>
68 <div class="table">${_('There are no gists yet')}</div>
68 %endif
69 %endif
69 </div>
70 </div>
70 </%def>
71 </%def>
General Comments 0
You need to be logged in to leave comments. Login now