From 56c0b0b37d0ffe5d085321ea2ed523a6fd8d1e38 Mon Sep 17 00:00:00 2001 From: Polonkai Gergely Date: Thu, 30 Aug 2012 11:53:05 +0200 Subject: [PATCH] Fixed user data boxes Signed-off-by: Gergely Polonkai --- .../Resources/views/Default/main_template.html.twig | 2 +- .../Resources/views/Default/ajaxUserdata.html.twig | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/KekRozsak/FrontBundle/Resources/views/Default/main_template.html.twig b/src/KekRozsak/FrontBundle/Resources/views/Default/main_template.html.twig index bf4ddd2..4b53414 100644 --- a/src/KekRozsak/FrontBundle/Resources/views/Default/main_template.html.twig +++ b/src/KekRozsak/FrontBundle/Resources/views/Default/main_template.html.twig @@ -116,7 +116,7 @@ }); $('#jog-lista').cluetip({ splitTitle: '|', - showTitle: false + showTitle: true }); $('.program').cluetip({ cluezIndex: 1000 diff --git a/src/KekRozsak/SecurityBundle/Resources/views/Default/ajaxUserdata.html.twig b/src/KekRozsak/SecurityBundle/Resources/views/Default/ajaxUserdata.html.twig index 4e87060..9e1e217 100644 --- a/src/KekRozsak/SecurityBundle/Resources/views/Default/ajaxUserdata.html.twig +++ b/src/KekRozsak/SecurityBundle/Resources/views/Default/ajaxUserdata.html.twig @@ -19,16 +19,17 @@ MSN cím: {{ user.userData.msnAddress }}
{% endif %} {% if user.userData and user.userData.googleTalk != '' and (is_granted('ROLE_ADMIN') or user.userData.googleTalkPublic) %} - Google Talk cím: {{ user.userData.googleTalk }} + Google Talk cím: {{ user.userData.googleTalk }}
{% endif %} {% if user.userData and user.userData.skype != '' and (is_granted('ROLE_ADMIN') or user.userData.skypePublic) %} - Skype név: {{ user.userData.skypePublic }} + Skype név: {{ user.userData.skype}}
{% endif %} {% if user.userData and user.userData.phoneNumber != '' and (is_granted('ROLE_ADMIN') or user.userData.phoneNumberPublic) %} Telefonszám: {{ user.userData.phoneNumber }}
{% endif %} {% if user.userData and user.userData.selfDescription != '' %} - Leírás: {{ user.userData.selfDescription }}
+ Leírás:
+ {{ user.userData.selfDescription }}
{% endif %} Csoportok:
{% set groupCount = 0 %} @@ -44,7 +45,10 @@ Egy csoportnak sem tagja.
{% if is_granted('ROLE_ADMIN') %} Jóváhagyta: {{ user.acceptedBy.displayName }}
Utolsó bejelentkezés: {{ user.lastLoginAt|date('Y-m-d H:i') }}
- Jogok: + Jogok:
+{% for role in user.roles %} + {{ role.shortDescription }}
+{% endfor %} {% endif %}