Show More
@@ -1,4 +1,6 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | |
|
3 | ||
|
2 | 4 | <div class="panel panel-default user-profile"> |
|
3 | 5 | <div class="panel-heading"> |
|
4 | 6 | <h3 class="panel-title">${_('My Profile')}</h3> |
@@ -52,6 +54,16 b'' | |||
|
52 | 54 | </div> |
|
53 | 55 | <div class="field"> |
|
54 | 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 | 67 | ${_('Email')}: |
|
56 | 68 | </div> |
|
57 | 69 | <div class="input"> |
@@ -37,6 +37,18 b'' | |||
|
37 | 37 | </table> |
|
38 | 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 | 52 | ## REPOSITORY RENDERERS |
|
41 | 53 | <%def name="quick_menu(repo_name)"> |
|
42 | 54 | <i class="icon-more"></i> |
@@ -219,7 +231,8 b'' | |||
|
219 | 231 | <%def name="repo_group_desc(description, personal, stylify_metatags)"> |
|
220 | 232 | |
|
221 | 233 | <% |
|
222 | tags, description = h.extract_metatags(description) | |
|
234 | if stylify_metatags: | |
|
235 | tags, description = h.extract_metatags(description) | |
|
223 | 236 | %> |
|
224 | 237 | |
|
225 | 238 | <div class="truncate-wrap"> |
@@ -1,4 +1,5 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | |
|
2 | 3 | |
|
3 | 4 | <div class="panel panel-default user-profile"> |
|
4 | 5 | <div class="panel-heading"> |
@@ -21,6 +22,16 b'' | |||
|
21 | 22 | </div> |
|
22 | 23 | <div class="field"> |
|
23 | 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 | 35 | ${_('Owner')}: |
|
25 | 36 | </div> |
|
26 | 37 | <div class="group_member"> |
@@ -1,4 +1,5 b'' | |||
|
1 | 1 | <%namespace name="base" file="/base/base.mako"/> |
|
2 | <%namespace name="dt" file="/data_table/_dt_elements.mako"/> | |
|
2 | 3 | |
|
3 | 4 | <div class="panel panel-default user-profile"> |
|
4 | 5 | <div class="panel-heading"> |
@@ -55,6 +56,16 b'' | |||
|
55 | 56 | </div> |
|
56 | 57 | <div class="field"> |
|
57 | 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 | 69 | ${_('Email')}: |
|
59 | 70 | </div> |
|
60 | 71 | <div class="input"> |
General Comments 0
You need to be logged in to leave comments.
Login now