view kallithea/templates/admin/my_account/my_account.html @ 6597:a1f8bf0428c5

admin: clean-up of Gravatar and IP in user profile headers Move things around and use Bootstrap compatible markup. The user IP will rarely be relevant - especially not on the admin pages; the IP configuration there is more for other user's IP. It might however be somewhat relevant for a (non-admin) user to know his own IP. There is no obvious place to show that - it doesn't really fit in as a part of the user profile. Anyway, just show it under Show Permissions.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 15 Apr 2017 01:56:27 +0200
parents 3dcf1f82311a
children 66c208bf56fe
line wrap: on
line source

## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>

<%block name="title">
    ${_('My Account')} ${request.authuser.username}
</%block>

<%def name="breadcrumbs_links()">
    ${_('My Account')}
</%def>

<%block name="header_menu">
    ${self.menu('admin')}
</%block>

<%def name="main()">
<div class="panel panel-primary">
    <div class="panel-heading">
        ${self.breadcrumbs()}
    </div>

    ##main
    <div class="panel-body settings">
        <ul class="nav nav-pills nav-stacked">
            <li class="${'active' if c.active=='profile' else ''}"><a href="${h.url('my_account')}">${_('Profile')}</a></li>
            <li class="${'active' if c.active=='emails' else ''}"><a href="${h.url('my_account_emails')}">${_('Email Addresses')}</a></li>
            <li class="${'active' if c.active=='password' else ''}"><a href="${h.url('my_account_password')}">${_('Password')}</a></li>
            <li class="${'active' if c.active=='api_keys' else ''}"><a href="${h.url('my_account_api_keys')}">${_('API Keys')}</a></li>
            <li class="${'active' if c.active=='repos' else ''}"><a href="${h.url('my_account_repos')}">${_('Owned Repositories')}</a></li>
            <li class="${'active' if c.active=='watched' else ''}"><a href="${h.url('my_account_watched')}">${_('Watched Repositories')}</a></li>
            <li class="${'active' if c.active=='perms' else ''}"><a href="${h.url('my_account_perms')}">${_('Show Permissions')}</a></li>
        </ul>

        <div>
            <%include file="/admin/my_account/my_account_${c.active}.html"/>
        </div>
    </div>
</div>

</%def>