##// END OF EJS Templates
timezone: fix issues with timezone detection of current logic....
timezone: fix issues with timezone detection of current logic. - it was reported that in certain timezones e.g `US/Central` the generated offset was +19:00 which is incorrect and should be -05:00. - we now use a special library for detection of local timezone and use logic of pytz to calculate the offset - fixes #5371

File last commit:

r2638:01feb8aa default
r2676:7fe5f77f default
Show More
profile.mako
69 lines | 2.8 KiB | application/x-mako | MakoHtmlLexer
<%namespace name="base" file="/base/base.mako"/>
<div class="panel panel-default user-profile">
<div class="panel-heading">
<h3 class="panel-title">${_('User group profile')}</h3>
%if h.HasPermissionAny('hg.admin')():
${h.link_to(_('Edit'), h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id), class_='panel-edit')}
%endif
</div>
<div class="panel-body user-profile-content">
<div class="fieldset">
<div class="left-label">
${_('Group Name')}:
</div>
<div class="right-content">
${c.user_group.users_group_name}
</div>
</div>
<div class="fieldset">
<div class="left-label">
${_('Owner')}:
</div>
<div class="group_member">
${base.gravatar(c.user_group.user.email, 16)}
<span class="username user">${h.link_to_user(c.user_group.user)}</span>
</div>
</div>
<div class="fieldset">
<div class="left-label">
${_('Active')}:
</div>
<div class="right-content">
${c.user_group.users_group_active}
</div>
</div>
% if not c.anonymous:
<div class="fieldset">
<div class="left-label">
${_('Members')}:
</div>
<div class="right-content">
<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">
${base.gravatar(user.email, 16)}
<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>
% endif
</div>
</div>