diff --git a/includes/view/User_view.php b/includes/view/User_view.php
index 734e266e..8077d0af 100644
--- a/includes/view/User_view.php
+++ b/includes/view/User_view.php
@@ -29,16 +29,16 @@ function User_shift_state_render($user) {
if ($upcoming_shifts[0]['start'] > time())
if ($upcoming_shifts[0]['start'] - time() > 3600)
- return '' . _("Next shift in %c") . '';
+ return '' . _("Next shift %c") . '';
else
- return '' . _("Next shift in %c") . '';
+ return '' . _("Next shift %c") . '';
$halfway = ($upcoming_shifts[0]['start'] + $upcoming_shifts[0]['end']) / 2;
if (time() < $halfway)
- return '' . _("Shift startet %c ago") . '';
+ return '' . _("Shift start %c") . '';
else
- return '' . _("Shift ends in %c") . '';
+ return '' . _("Shift end %c") . '';
}
function User_view($user_source, $admin_user_privilege, $freeloader, $user_angeltypes, $user_groups, $shifts, $its_me) {
@@ -131,10 +131,12 @@ function User_view($user_source, $admin_user_privilege, $freeloader, $user_angel
User_groups_render($user_groups)
))
)),
- $admin_user_privilege ? buttons(array(
- button(page_link_to('admin_user') . '&id=' . $user_source['UID'], ' ' . _("edit")),
- ! $user_source['Gekommen'] ? button(page_link_to('admin_arrive') . '&arrived=' . $user_source['UID'], _("arrived")) : ''
- )) : '',
+ buttons(array(
+ $admin_user_privilege ? button(page_link_to('admin_user') . '&id=' . $user_source['UID'], ' ' . _("edit")) : '',
+ ! $user_source['Gekommen'] ? button(page_link_to('admin_arrive') . '&arrived=' . $user_source['UID'], _("arrived")) : '',
+ button(page_link_to_absolute('ical') . '&key=' . $user_source['api_key'], ' ' . _("iCal Export")),
+ button(page_link_to_absolute('shifts_json_export') . '&key=' . $user_source['api_key'], ' ' . _("JSON Export"))
+ )),
($its_me || $admin_user_privilege) ? '
' . _("Shifts") . '
' : '',
($its_me || $admin_user_privilege) ? table(array(
'date' => _("Day"),
diff --git a/locale/de_DE.UTF-8/LC_MESSAGES/default.mo b/locale/de_DE.UTF-8/LC_MESSAGES/default.mo
index 42812120..efd75c75 100644
Binary files a/locale/de_DE.UTF-8/LC_MESSAGES/default.mo and b/locale/de_DE.UTF-8/LC_MESSAGES/default.mo differ
diff --git a/locale/de_DE.UTF-8/LC_MESSAGES/default.po b/locale/de_DE.UTF-8/LC_MESSAGES/default.po
index b95ec87d..ec6e2aaa 100644
--- a/locale/de_DE.UTF-8/LC_MESSAGES/default.po
+++ b/locale/de_DE.UTF-8/LC_MESSAGES/default.po
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Engelsystem 2.0\n"
-"POT-Creation-Date: 2014-08-23 19:23+0100\n"
-"PO-Revision-Date: 2014-08-23 19:28+0100\n"
+"POT-Creation-Date: 2014-08-24 16:21+0100\n"
+"PO-Revision-Date: 2014-08-24 16:22+0100\n"
"Last-Translator: msquare \n"
"Language-Team: \n"
"Language: de_DE\n"
@@ -25,7 +25,7 @@ msgstr "Nichts gefunden."
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_user.php:289
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:46
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:62
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:115
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:126
msgid "Angeltypes"
msgstr "Engeltypen"
@@ -67,7 +67,7 @@ msgstr "Team %s"
msgid "view"
msgstr "ansehen"
-#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:208
+#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:209
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_free.php:56
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_groups.php:23
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:17
@@ -75,12 +75,12 @@ msgstr "ansehen"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_news.php:56
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:504
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:74
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:77
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:124
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:88
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:135
msgid "edit"
msgstr "bearbeiten"
-#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:209
+#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:210
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_questions.php:37
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_questions.php:56
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_rooms.php:18
@@ -96,19 +96,19 @@ msgstr "bearbeiten"
msgid "delete"
msgstr "löschen"
-#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:214
+#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:219
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:70
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:192
msgid "leave"
msgstr "verlassen"
-#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:216
+#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:221
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:66
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:194
msgid "join"
msgstr "mitmachen"
-#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:219
+#: /Users/msquare/workspace/projects/engelsystem/includes/controller/angeltypes_controller.php:225
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:51
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:165
msgid "Restricted"
@@ -450,7 +450,7 @@ msgid "Size"
msgstr "Größe"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_active.php:153
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:127
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:140
msgid "Shifts"
msgstr "Schichten"
@@ -489,9 +489,8 @@ msgid "Reset done. Angel has not arrived."
msgstr "Zurückgesetzt. Engel ist nicht angekommen."
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_arrive.php:27
-#, fuzzy
msgid "Angel has been marked as arrived."
-msgstr "Engel wurde als aktiv markiert."
+msgstr "Engel wurde als angekommen markiert."
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_arrive.php:54
#: /Users/msquare/workspace/projects/engelsystem/includes/view/UserAngelTypes_view.php:8
@@ -507,7 +506,7 @@ msgid "reset"
msgstr "zurücksetzen"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_arrive.php:55
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:125
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:136
msgid "arrived"
msgstr "angekommen"
@@ -556,7 +555,7 @@ msgstr "Jabber"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_free.php:81
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:153
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_settings.php:180
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:154
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:167
msgid "E-Mail"
msgstr "E-Mail"
@@ -599,7 +598,7 @@ msgstr "Privilegien"
#: /Users/msquare/workspace/projects/engelsystem/includes/view/AngelTypes_view.php:55
#: /Users/msquare/workspace/projects/engelsystem/includes/view/Questions_view.php:32
#: /Users/msquare/workspace/projects/engelsystem/includes/view/ShiftEntry_view.php:32
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:170
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:183
msgid "Save"
msgstr "Speichern"
@@ -645,7 +644,7 @@ msgstr "Anzulegende Schichten"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_import.php:80
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_import.php:88
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/admin_import.php:96
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:129
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:142
msgid "Day"
msgstr "Tag"
@@ -939,12 +938,12 @@ msgstr "T-Shirt Größe"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:159
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:261
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:168
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:181
msgid "Password"
msgstr "Passwort"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/guest_login.php:162
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:169
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:182
msgid "Confirm password"
msgstr "Passwort wiederholen"
@@ -1356,7 +1355,7 @@ msgid "You are subscribed. Thank you!"
msgstr "Du bist eingetragen. Danke!"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:269
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:108
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:119
msgid "Freeloader"
msgstr "Schwänzer"
@@ -1401,7 +1400,7 @@ msgid "Add more angels"
msgstr "Neue Engel hinzufügen"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:724
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:130
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:143
msgid "Time"
msgstr "Zeit"
@@ -1434,7 +1433,7 @@ msgid "iCal export"
msgstr "iCal Export"
#: /Users/msquare/workspace/projects/engelsystem/includes/pages/user_shifts.php:747
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:138
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:151
#, php-format
msgid ""
"Export of shown shifts. iCal format or shifts table to sign yourself up for some "
@@ -1704,20 +1719,11 @@ msgstr ""
"Gehe zur Schicht-Tabelle, um Dich für Schichten "
"einzutragen."
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:137
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:150
msgid "Exports"
msgstr "Exporte"
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:140
-#, fuzzy
-msgid "iCal Export"
-msgstr "iCal Export"
-
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:141
-msgid "JSON Export"
-msgstr "JSON Export"
-
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:152
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:165
msgid ""
"We will send you an e-mail with a password recovery link. Please use the "
"email address you used for registration."
@@ -1726,11 +1732,11 @@ msgstr ""
"zurücksetzen kannst. Bitte benutze die Mailadresse, die du bei der Anmeldung "
"verwendet hast."
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:155
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:168
msgid "Recover"
msgstr "Wiederherstellen"
-#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:166
+#: /Users/msquare/workspace/projects/engelsystem/includes/view/User_view.php:179
msgid "Please enter a new password."
msgstr "Gib bitte ein neues Passwort ein."
@@ -1818,6 +1824,9 @@ msgstr ""
"Du hast keinen Zugriff auf diese Seite. Registriere Dich und logge Dich "
"bitte ein, um Zugriff zu erhalten!"
+#~ msgid "Current ends in %s min"
+#~ msgstr "Ende in %s min"
+
#~ msgid "Add new angeltype"
#~ msgstr "Neuer Engeltyp"
diff --git a/public/js/moment-with-locales.min.js b/public/vendor/moment-with-locales.min.js
similarity index 100%
rename from public/js/moment-with-locales.min.js
rename to public/vendor/moment-with-locales.min.js
diff --git a/templates/layout.html b/templates/layout.html
index 4b44acde..8697f69d 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -38,7 +38,7 @@
-
+