##// 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:

r2478:0874da14 default
r2676:7fe5f77f default
Show More
user_edit_ssh_keys_generate.mako
51 lines | 1.7 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / users / user_edit_ssh_keys_generate.mako
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">${_('New SSH Key generated')}</h3>
</div>
<div class="panel-body">
<p>
${_('Below is a 2048 bit generated SSH RSA key. You can use it to access RhodeCode via the SSH wrapper.')}
</p>
<h4>${_('Private key')}</h4>
<pre>
# Save the content as
# Windows: /Users/<username>/.ssh/id_rsa_rhodecode_access_priv.key
# macOS: /Users/<yourname>/.ssh/id_rsa_rhodecode_access_priv.key
# Linux: /home/<username>/.ssh/id_rsa_rhodecode_access_priv.key
# Change permissions to 0600 to make it secure, and usable.
e.g chmod 0600 /home/<username>/.ssh/id_rsa_rhodecode_access_priv.key
</pre>
<div>
<textarea style="height: 300px">${c.private}</textarea>
</div>
<br/>
<h4>${_('Public key')}</h4>
<pre>
# Save the content as
# Windows: /Users/<username>/.ssh/id_rsa_rhodecode_access_pub.key
# macOS: /Users/<yourname>/.ssh/id_rsa_rhodecode_access_pub.key
# Linux: /home/<username>/.ssh/id_rsa_rhodecode_access_pub.key
</pre>
<input type="text" value="${c.public}" class="large text" size="100"/>
<p>
% if hasattr(c, 'target_form_url'):
<a href="${c.target_form_url}">${_('Use this generated key')}.</a>
% else:
<a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id, _query=dict(default_key=c.public))}">${_('Use this generated key')}.</a>
% endif
${_('Confirmation required on the next screen')}.
</p>
</div>
</div>
<script>
$(document).ready(function(){
});
</script>