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