From 33b90a5c9fd8650b78676828e6c63e169ea8b94b Mon Sep 17 00:00:00 2001 From: Polonkai Gergely Date: Tue, 24 Jul 2012 16:59:48 +0200 Subject: [PATCH] Moved boxes to separate files --- app/Resources/views/Box/Login.html.twig | 12 ++++++ app/Resources/views/Box/UserProfile.html.twig | 26 +++++++++++++ app/Resources/views/main_template.html.twig | 39 +------------------ .../FrontBundle/Twig/NewsExtension.php | 1 - 4 files changed, 40 insertions(+), 38 deletions(-) create mode 100644 app/Resources/views/Box/Login.html.twig create mode 100644 app/Resources/views/Box/UserProfile.html.twig diff --git a/app/Resources/views/Box/Login.html.twig b/app/Resources/views/Box/Login.html.twig new file mode 100644 index 0000000..c3c6134 --- /dev/null +++ b/app/Resources/views/Box/Login.html.twig @@ -0,0 +1,12 @@ +
+ Bejelentkezés +
+
+
+ Felhasználónév:
+ Jelszó:
+ +
+
+
+
diff --git a/app/Resources/views/Box/UserProfile.html.twig b/app/Resources/views/Box/UserProfile.html.twig new file mode 100644 index 0000000..9018abe --- /dev/null +++ b/app/Resources/views/Box/UserProfile.html.twig @@ -0,0 +1,26 @@ +
+ [avatar] {{ app.user.displayName }} +
+
+ [avatar] + {{ app.user.displayName }}
+ Jogosultság
+
+
Csoportjaim
+{% for group in app.user.groups %} +{% if group.group.open or group.membershipAcceptedAt %} +
{{ group.group.name }}
+{% endif %} +{% endfor %} +
További csoportok
+ +
Kedvenc Fórum-témáim
+ +
Fórum
+ +
Üzenetek
+
+
+ +
+
diff --git a/app/Resources/views/main_template.html.twig b/app/Resources/views/main_template.html.twig index 2b7e68f..8e18eca 100644 --- a/app/Resources/views/main_template.html.twig +++ b/app/Resources/views/main_template.html.twig @@ -16,43 +16,9 @@
{% if app.user %} -
- [avatar] {{ app.user.displayName }} -
-
- [avatar] - {{ app.user.displayName }}
- Jogosultság
-
-
Csoportjaim
-{% for group in app.user.groups %} -{% if group.group.open or group.membershipAcceptedAt %} -
{{ group.group.name }}
-{% endif %} -{% endfor %} -
További csoportok
- -
Kedvenc Fórum-témáim
- -
Üzenetek
-
-
- -
-
+{% include ':Box:UserProfile.html.twig' %} {% else %} -
- Bejelentkezés -
-
-
- Felhasználónév:
- Jelszó:
- -
-
-
-
+{% include ':Box:Login.html.twig' %} {% endif %}