Added role listing to profile box

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely
2012-07-31 11:03:48 +02:00
parent aa884ae798
commit 995b96b3b7
3 changed files with 37 additions and 1 deletions

View File

@@ -6,7 +6,7 @@
<div id="profil-belso">
[avatar]
{{ app.user.displayName }}<br />
Jogosultság<br />
<span id="jog-lista" title="{% for role in app.user.roles %}{{ role.shortDescription }}<br />{% endfor %}">Jogosultság{% if app.user.roles|length > 1 %}ok{% endif %}</span><br />
<dl>
<dt>Csoportjaim</dt>
{% for group in app.user.groups %}

View File

@@ -86,6 +86,11 @@
$('#profil-box').show();
}
});
$('#jog-lista').tooltip({
track: true,
delay: 0,
fade: 250
});
{% else %}
$('#login-mutato').click(function() {
if ($('#login-box').is(':visible'))