+# 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>'
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="?p=courses#'$each'">'$cname'</a>'
done
echo ' </div>'
echo ''
echo ' <div class="section control">'
echo ' <a class="item control" href="?action=edit_attendee&card='${id}'">'$(l10n edit)'</a>'
-echo ' <a class="item control" href="?export=vcard&card='${id}'">'$(l10n vcf_export)'</a>'
+echo ' <a class="item control" href="?action=export_vcard&card='${id}'">'$(l10n vcf_export)'</a>'
echo ' </div>'
echo '</div>'