+# Copyright 2014 Paul Hänsch
+#
+# This file is part of Confetti.
+#
+# Confetti is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Confetti is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with Confetti. If not, see <http://www.gnu.org/licenses/>.
+
echo '<div id="'${id}'" class="card">'
echo ' <div class="section basic">'
echo ' <span class="item FN">'$values[FN]'</span>'
done
[ -n "$values[BDAY]" ] &&\
echo ' <span class="item BDAY"><b>*:</b> '$values[BDAY]'</span>'
+
+[ -n "$values[X-ZACK-JOINDATE]" ] &&\
+ echo ' <span class="item X-ZACK-JOINDATE"><b>'$(l10n label_join)':</b> '$values[X-ZACK-JOINDATE]'</span>'
+[ -n "$values[X-ZACK-LEAVEDATE]" ] &&\
+ echo ' <span class="item X-ZACK-LEAVEDATE"><b>'$(l10n label_leave)':</b> '$values[X-ZACK-LEAVEDATE]'</span>'
+
if [ -n "$values[SOUND]" ]; then
echo ' <audio controls="controls" class="item SOUND">'
echo ' <source type="audio/ogg" src="data:audio/ogg;base64,'$values[SOUND]'" />'
echo ' <span class="sectitle">'$(l10n course_attendance)'</span>'
sed -rn 's:(.*)\t'$id'$:\1:p' "$_DATA/mappings/attendance" |while read each; do
cname="$(sed -rn 's:^SUMMARY\:(.*)$:\1:p' "$_DATA/ical/$each")"
- echo ' <a class="item attendance" href="/?page=courses#'$each'">'$cname'</a>'
+ echo ' <a class="item attendance" href="?page=courses#'$each'">'$cname'</a>'
done
echo ' </div>'
echo ''