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 %}