changeset 4034:6903296e95be

Added css elipsing for API keys
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 25 Jun 2013 19:45:55 +0200
parents d46b56da5c21
children 4627bc2dc8be
files rhodecode/templates/admin/users/user_edit_my_account_form.html
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/templates/admin/users/user_edit_my_account_form.html	Tue Jun 25 19:31:35 2013 +0200
+++ b/rhodecode/templates/admin/users/user_edit_my_account_form.html	Tue Jun 25 19:45:55 2013 +0200
@@ -16,13 +16,14 @@
                 </div>
              </div>
             <div class="field">
-                <div class="label">
-                    <label>${_('API key')}</label> ${c.user.api_key}
+                <div class="field">
+                    <div class="label">
+                        <label>${_('Current IP')}:</label> ${c.perm_user.ip_addr or "?"}
+                    </div>
                 </div>
-            </div>
-            <div class="field">
                 <div class="label">
-                    <label>${_('Current IP')}:</label> ${c.perm_user.ip_addr or "?"}
+                    <label>${_('API key - keep this in secret, change your password to generate new key')}</label>
+                    <div class="truncate autoexpand" style="width:120px;font-size:16px;font-family: monospace">${c.user.api_key}</div>
                 </div>
             </div>
             <div class="fields">