Changeset - 6903296e95be
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 12 years ago 2013-06-25 19:45:55
marcin@python-works.com
Added css elipsing for API keys
1 file changed with 5 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/admin/users/user_edit_my_account_form.html
Show inline comments
 
@@ -7,33 +7,34 @@
 
                    <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(c.user.email)}"/></div>
 
                    <p>
 
                    %if c.use_gravatar:
 
                    <strong>${_('Change your avatar at')} <a href="http://gravatar.com">gravatar.com</a></strong>
 
                    <br/>${_('Using')} ${c.user.email}
 
                    %else:
 
                    <br/>${c.user.email}
 
                    %endif
 
                    </p>
 
                </div>
 
             </div>
 
            <div class="field">
 
                <div class="label">
 
                    <label>${_('API key')}</label> ${c.user.api_key}
 
                </div>
 
            </div>
 
            <div class="field">
 
                <div class="label">
 
                    <label>${_('Current IP')}:</label> ${c.perm_user.ip_addr or "?"}
 
                </div>
 
            </div>
 
                <div class="label">
 
                    <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">
 
                 <div class="field">
 
                    <div class="label">
 
                        <label for="username">${_('Username')}:</label>
 
                    </div>
 
                    <div class="input">
 
                      %if c.ldap_dn:
 
                          ${h.text('username',class_='medium disabled', readonly="readonly")}
 
                      %else:
 
                          ${h.text('username',class_='medium')}
 
                      %endif:
 
                    </div>
0 comments (0 inline, 0 general)