X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fcourses.html.sh;fp=templates%2Fcourses.html.sh;h=365c576210ef21c34606a5fe97c91c2139ba6ba7;hp=0000000000000000000000000000000000000000;hb=c195881a2389862d4bfcd2fd55ca868f7a20b8e8;hpb=25a24a7d834757e006b46b863453d5f79780a63f diff --git a/templates/courses.html.sh b/templates/courses.html.sh new file mode 100644 index 0000000..365c576 --- /dev/null +++ b/templates/courses.html.sh @@ -0,0 +1,25 @@ + +edit="$_GET[\"edit\"]" + +cat < +
+ +
+ + +
+$( +[ -f "ical/$edit" -o -f "temp/$edit" ] && edit_course "$edit" +if [ "$?" = 0 ]; then + listcourses |grep -v "$edit" +else + listcourses +fi |while read card; do + view_course "$card" +done +) +
+EOF + +# vi:set filetype=html: