Show More
@@ -3,9 +3,9 b'' | |||||
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | %if c.show_private: |
|
5 | %if c.show_private: | |
6 |
${_('Private Gists for user |
|
6 | ${_('Private Gists for user {}').format(c.rhodecode_user.username)} | |
7 | %elif c.show_public: |
|
7 | %elif c.show_public: | |
8 |
${_('Public Gists for user |
|
8 | ${_('Public Gists for user {}').format(c.rhodecode_user.username)} | |
9 | %else: |
|
9 | %else: | |
10 | ${_('Public Gists')} |
|
10 | ${_('Public Gists')} | |
11 | %endif |
|
11 | %endif | |
@@ -20,8 +20,6 b'' | |||||
20 | ${self.menu_items(active='gists')} |
|
20 | ${self.menu_items(active='gists')} | |
21 | </%def> |
|
21 | </%def> | |
22 |
|
22 | |||
23 |
|
||||
24 |
|
||||
25 | <%def name="main()"> |
|
23 | <%def name="main()"> | |
26 |
|
24 | |||
27 | <div class="box"> |
|
25 | <div class="box"> | |
@@ -29,13 +27,13 b'' | |||||
29 |
|
27 | |||
30 | <ul class="button-links"> |
|
28 | <ul class="button-links"> | |
31 | % if c.is_super_admin: |
|
29 | % if c.is_super_admin: | |
32 | <li class="btn ${'active' if c.active=='all' else ''}"><a href="${h.route_path('gists_show', _query={'all': 1})}">${_('All gists')}</a></li> |
|
30 | <li class="btn ${('active' if c.active=='all' else '')}"><a href="${h.route_path('gists_show', _query={'all': 1})}">${_('All gists')}</a></li> | |
33 | %endif |
|
31 | %endif | |
34 | <li class="btn ${'active' if c.active=='public' else ''}"><a href="${h.route_path('gists_show')}">${_('All public')}</a></li> |
|
32 | <li class="btn ${('active' if c.active=='public' else '')}"><a href="${h.route_path('gists_show')}">${_('All public')}</a></li> | |
35 | %if c.rhodecode_user.username != h.DEFAULT_USER: |
|
33 | %if c.rhodecode_user.username != h.DEFAULT_USER: | |
36 | <li class="btn ${'active' if c.active=='my_all' else ''}"><a href="${h.route_path('gists_show', _query={'public':1, 'private': 1})}">${_('My gists')}</a></li> |
|
34 | <li class="btn ${('active' if c.active=='my_all' else '')}"><a href="${h.route_path('gists_show', _query={'public':1, 'private': 1})}">${_('My gists')}</a></li> | |
37 | <li class="btn ${'active' if c.active=='my_private' else ''}"><a href="${h.route_path('gists_show', _query={'private': 1})}">${_('My private')}</a></li> |
|
35 | <li class="btn ${('active' if c.active=='my_private' else '')}"><a href="${h.route_path('gists_show', _query={'private': 1})}">${_('My private')}</a></li> | |
38 | <li class="btn ${'active' if c.active=='my_public' else ''}"><a href="${h.route_path('gists_show', _query={'public': 1})}">${_('My public')}</a></li> |
|
36 | <li class="btn ${('active' if c.active=='my_public' else '')}"><a href="${h.route_path('gists_show', _query={'public': 1})}">${_('My public')}</a></li> | |
39 | %endif |
|
37 | %endif | |
40 | </ul> |
|
38 | </ul> | |
41 |
|
39 |
General Comments 0
You need to be logged in to leave comments.
Login now