##// END OF EJS Templates
i18n: Updated message catalog template
i18n: Updated message catalog template

File last commit:

r4026:ed756817 default
r4358:3df0d479 stable
Show More
profile.mako
85 lines | 3.4 KiB | application/x-mako | MakoHtmlLexer
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 <%namespace name="base" file="/base/base.mako"/>
user/user-groups: render description in unified way with support of metatags
r4025 <%namespace name="dt" file="/data_table/_dt_elements.mako"/>
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638
<div class="panel panel-default user-profile">
<div class="panel-heading">
profiles: cleanup profile pages to not include side nav bar which didn't gave any purpose.
r4016 <h3 class="panel-title">${_('User Group Profile')}</h3>
auth: reduced usage of raw auth calls inside templates
r3587 %if c.is_super_admin:
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 ${h.link_to(_('Edit'), h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id), class_='panel-edit')}
%endif
</div>
Liviu
fixed user groups layout
r3701 <div class="panel-body user-profile-content fields">
<div class="field">
<div class="label">
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 ${_('Group Name')}:
</div>
Liviu
fixed user groups layout
r3701 <div class="input">
<div class="text-as-placeholder">
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 ${c.user_group.users_group_name}
Liviu
fixed user groups layout
r3701 </div>
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 </div>
</div>
Liviu
fixed user groups layout
r3701 <div class="field">
<div class="label">
user/user-groups: render description in unified way with support of metatags
r4025 ${_('Description')}:
</div>
<div class="input">
<div class="text-as-placeholder">
<div class="user-hovercard-bio">${dt.render_description(c.user_group.user_group_description, c.visual.stylify_metatags)}</div>
</div>
</div>
</div>
<div class="field">
<div class="label">
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 ${_('Owner')}:
</div>
<div class="group_member">
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 ${base.gravatar(c.user_group.user.email, 16, user=c.user_group.user, tooltip=True)}
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 <span class="username user">${h.link_to_user(c.user_group.user)}</span>
</div>
</div>
Liviu
fixed user groups layout
r3701 <div class="field">
<div class="label">
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 ${_('Active')}:
</div>
Liviu
fixed user groups layout
r3701 <div class="input">
<div class="text-as-placeholder">
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 ${c.user_group.users_group_active}
Liviu
fixed user groups layout
r3701 </div>
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 </div>
</div>
% if not c.anonymous:
Liviu
fixed user groups layout
r3701 <div class="field">
<div class="label">
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 ${_('Members')}:
</div>
Liviu
fixed user groups layout
r3701
<div class="input">
<div class="text-as-placeholder">
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 <table id="group_members_placeholder" class="rctable group_members">
<th>${_('Username')}</th>
% if c.group_members:
% for user in c.group_members:
<tr>
<td id="member_user_${user.user_id}" class="td-author">
<div class="group_member">
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 ${base.gravatar(user.email, 16, user=user, tooltip=True)}
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 <span class="username user">${h.link_to(h.person(user), h.route_path('user_edit',user_id=user.user_id))}</span>
<input type="hidden" name="__start__" value="member:mapping">
<input type="hidden" name="member_user_id" value="${user.user_id}">
<input type="hidden" name="type" value="existing" id="member_${user.user_id}">
<input type="hidden" name="__end__" value="member:mapping">
</div>
</td>
</tr>
% endfor
% else:
<tr><td colspan="2">${_('No members yet')}</td></tr>
% endif
</table>
</div>
</div>
Liviu
fixed user groups layout
r3701 </div>
Bartłomiej Wołyńczyk
Public user group profile Task #5326
r2638 % endif
</div>
</div>