Show More
@@ -1,4 +1,6 b'' | |||||
1 | <%namespace name="base" file="/base/base.mako"/> |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
|
2 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | |||
|
3 | ||||
2 | <div class="panel panel-default user-profile"> |
|
4 | <div class="panel panel-default user-profile"> | |
3 | <div class="panel-heading"> |
|
5 | <div class="panel-heading"> | |
4 | <h3 class="panel-title">${_('My Profile')}</h3> |
|
6 | <h3 class="panel-title">${_('My Profile')}</h3> | |
@@ -52,6 +54,16 b'' | |||||
52 | </div> |
|
54 | </div> | |
53 | <div class="field"> |
|
55 | <div class="field"> | |
54 | <div class="label"> |
|
56 | <div class="label"> | |
|
57 | ${_('Description')}: | |||
|
58 | </div> | |||
|
59 | <div class="input"> | |||
|
60 | <div class="text-as-placeholder"> | |||
|
61 | ${dt.render_description(c.user.description, c.visual.stylify_metatags)} | |||
|
62 | </div> | |||
|
63 | </div> | |||
|
64 | </div> | |||
|
65 | <div class="field"> | |||
|
66 | <div class="label"> | |||
55 | ${_('Email')}: |
|
67 | ${_('Email')}: | |
56 | </div> |
|
68 | </div> | |
57 | <div class="input"> |
|
69 | <div class="input"> |
@@ -37,6 +37,18 b'' | |||||
37 | </table> |
|
37 | </table> | |
38 | </%def> |
|
38 | </%def> | |
39 |
|
39 | |||
|
40 | <%def name="render_description(description, stylify_metatags)"> | |||
|
41 | <% | |||
|
42 | tags = [] | |||
|
43 | if stylify_metatags: | |||
|
44 | tags, description = h.extract_metatags(description) | |||
|
45 | %> | |||
|
46 | % for tag_type, tag in tags: | |||
|
47 | ${h.style_metatag(tag_type, tag)|n,trim} | |||
|
48 | % endfor | |||
|
49 | <code style="white-space: pre-wrap">${description}</code> | |||
|
50 | </%def> | |||
|
51 | ||||
40 | ## REPOSITORY RENDERERS |
|
52 | ## REPOSITORY RENDERERS | |
41 | <%def name="quick_menu(repo_name)"> |
|
53 | <%def name="quick_menu(repo_name)"> | |
42 | <i class="icon-more"></i> |
|
54 | <i class="icon-more"></i> | |
@@ -219,6 +231,7 b'' | |||||
219 | <%def name="repo_group_desc(description, personal, stylify_metatags)"> |
|
231 | <%def name="repo_group_desc(description, personal, stylify_metatags)"> | |
220 |
|
232 | |||
221 | <% |
|
233 | <% | |
|
234 | if stylify_metatags: | |||
222 | tags, description = h.extract_metatags(description) |
|
235 | tags, description = h.extract_metatags(description) | |
223 | %> |
|
236 | %> | |
224 |
|
237 |
@@ -1,4 +1,5 b'' | |||||
1 | <%namespace name="base" file="/base/base.mako"/> |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
|
2 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | |||
2 |
|
3 | |||
3 | <div class="panel panel-default user-profile"> |
|
4 | <div class="panel panel-default user-profile"> | |
4 | <div class="panel-heading"> |
|
5 | <div class="panel-heading"> | |
@@ -21,6 +22,16 b'' | |||||
21 | </div> |
|
22 | </div> | |
22 | <div class="field"> |
|
23 | <div class="field"> | |
23 | <div class="label"> |
|
24 | <div class="label"> | |
|
25 | ${_('Description')}: | |||
|
26 | </div> | |||
|
27 | <div class="input"> | |||
|
28 | <div class="text-as-placeholder"> | |||
|
29 | <div class="user-hovercard-bio">${dt.render_description(c.user_group.user_group_description, c.visual.stylify_metatags)}</div> | |||
|
30 | </div> | |||
|
31 | </div> | |||
|
32 | </div> | |||
|
33 | <div class="field"> | |||
|
34 | <div class="label"> | |||
24 | ${_('Owner')}: |
|
35 | ${_('Owner')}: | |
25 | </div> |
|
36 | </div> | |
26 | <div class="group_member"> |
|
37 | <div class="group_member"> |
@@ -1,4 +1,5 b'' | |||||
1 | <%namespace name="base" file="/base/base.mako"/> |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
|
2 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | |||
2 |
|
3 | |||
3 | <div class="panel panel-default user-profile"> |
|
4 | <div class="panel panel-default user-profile"> | |
4 | <div class="panel-heading"> |
|
5 | <div class="panel-heading"> | |
@@ -55,6 +56,16 b'' | |||||
55 | </div> |
|
56 | </div> | |
56 | <div class="field"> |
|
57 | <div class="field"> | |
57 | <div class="label"> |
|
58 | <div class="label"> | |
|
59 | ${_('Description')}: | |||
|
60 | </div> | |||
|
61 | <div class="input"> | |||
|
62 | <div class="text-as-placeholder"> | |||
|
63 | ${dt.render_description(c.user.description, c.visual.stylify_metatags)} | |||
|
64 | </div> | |||
|
65 | </div> | |||
|
66 | </div> | |||
|
67 | <div class="field"> | |||
|
68 | <div class="label"> | |||
58 | ${_('Email')}: |
|
69 | ${_('Email')}: | |
59 | </div> |
|
70 | </div> | |
60 | <div class="input"> |
|
71 | <div class="input"> |
General Comments 0
You need to be logged in to leave comments.
Login now