diff --git a/src/Makefile b/src/Makefile index 8808bf7..8a91379 100644 --- a/src/Makefile +++ b/src/Makefile @@ -471,7 +471,9 @@ util-list.o: util-list.import.scm util-list.import.scm: $(UTIL-LIST-SOURCES) EXPORT-WEB-STATIC-SOURCES=export-web-static.scm brmember.import.scm \ - util-dir.import.scm mbase.import.scm + util-dir.import.scm mbase.import.scm \ + members-payments.import.scm cal-day.import.scm \ + util-git.import.scm configuration.import.scm export-web-static.o: export-web-static.import.scm export-web-static.import.scm: $(EXPORT-WEB-STATIC-SOURCES) diff --git a/src/export-web-static.scm b/src/export-web-static.scm index 642b156..7e79e97 100644 --- a/src/export-web-static.scm +++ b/src/export-web-static.scm @@ -38,7 +38,11 @@ (chicken string) brmember util-dir - mbase) + mbase + members-payments + cal-day + util-git + configuration) ;; Prints the HTML summary for given member to current-output-port (define (print-html-member mr) @@ -60,9 +64,41 @@ (print "
") (print (string-translate* (string-intersperse (brmember-source mr) "\n") - '(("<" . "<") (">" . ">") ("\"" . """)))) + '(("&" . "&") ("<" . "<") (">" . ">") ("\"" . """)))) (print "") (print "
Date | Type | Comment | Amount | Currency | Amount [CZK] | Balance |
---|---|---|---|---|---|---|
" + (cal-day->string (cadr hr)) + " | " + (list-ref hr 6) + " | " + (list-ref hr 4) + " | " + (exact->inexact (list-ref hr 2)) + " | " + (list-ref hr 3) + " | " + (list-ref hr 5) + " | " + (exact->inexact (car hr)) + " |
") + (for-each print + ((git (*members-directory*) #:output) + 'log '-p '-- + (brmember-file-name mr))) + (print "") (print "