Index: openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml,v
diff -u -r1.54 -r1.55
--- openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml 15 Apr 2005 17:26:45 -0000 1.54
+++ openacs-4/packages/assessment/catalog/assessment.en_US.ISO-8859-1.xml 15 Apr 2005 18:15:48 -0000 1.55
@@ -240,6 +240,7 @@
From:
Goes to section
Question name hidden
+ Change History
Horizontal
HTML Options
Additional HTML Options for display
@@ -312,6 +313,8 @@
Message to display to the user when the action is executed (ie. You have joined "My Community")
Minutes required for Retry
Mode
+ Time Modified
+ Modified by
Move Down
Move Up
Allow Multiple Answers
Index: openacs-4/packages/assessment/www/asm-admin/assessment-history.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/assessment-history.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/assessment/www/asm-admin/assessment-history.adp 15 Apr 2005 18:17:29 -0000 1.1
@@ -0,0 +1,5 @@
+
+@page_title;noquote@
+@context;noquote@
+
+
Index: openacs-4/packages/assessment/www/asm-admin/assessment-history.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/assessment-history.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/assessment/www/asm-admin/assessment-history.tcl 15 Apr 2005 18:17:29 -0000 1.1
@@ -0,0 +1,50 @@
+ad_page_contract {
+
+ Lists the change history of the assessment
+
+ @author Timo Hentschel (timo@timohentschel.de)
+ @creation-date 2005-04-15
+} {
+ assessment_id
+} -properties {
+ context:onevalue
+ page_title:onevalue
+}
+
+# Get the assessment data
+as::assessment::data -assessment_id $assessment_id
+
+if {![info exists assessment_data(assessment_id)]} {
+ ad_return_complaint 1 "[_ assessment.Requested_assess_does]"
+ ad_script_abort
+}
+
+set user_id [ad_conn user_id]
+set page_title "[_ assessment.history]"
+set context [list [list index [_ assessment.admin]] [list [export_vars -base one-a {assessment_id}] $assessment_data(title)] $page_title]
+set format "[lc_get formbuilder_date_format], [lc_get formbuilder_time_format]"
+
+template::list::create \
+ -name history \
+ -multirow history \
+ -key revision_id \
+ -elements {
+ user_name {
+ label {[_ assessment.Modified_User]}
+ display_template {@history.user_name@}
+ }
+ creation_date {
+ label {[_ assessment.Modified_Time]}
+ html {nowrap}
+ }
+ } -main_class {
+ narrow
+ }
+
+
+db_multirow -extend { user_url } history assessment_history {
+} {
+ set user_url [acs_community_member_url -user_id $person_id]
+}
+
+ad_return_template
Index: openacs-4/packages/assessment/www/asm-admin/assessment-history.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/assessment-history.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/assessment/www/asm-admin/assessment-history.xql 15 Apr 2005 18:17:29 -0000 1.1
@@ -0,0 +1,16 @@
+
+
+
+
+
+ select r.revision_id, to_char(o.creation_date, :format) as creation_date,
+ p.person_id, p.first_names || ' ' || p.last_name AS user_name
+ from cr_revisions r, acs_objects o, persons p
+ where r.item_id = :assessment_id
+ and o.object_id = r.revision_id
+ and p.person_id = o.creation_user
+ order by o.creation_date
+
+
+
+
Index: openacs-4/packages/assessment/www/asm-admin/one-a.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/www/asm-admin/one-a.adp,v
diff -u -r1.10 -r1.11
--- openacs-4/packages/assessment/www/asm-admin/one-a.adp 8 Apr 2005 23:04:23 -0000 1.10
+++ openacs-4/packages/assessment/www/asm-admin/one-a.adp 15 Apr 2005 18:15:48 -0000 1.11
@@ -2,7 +2,7 @@
@p_title@
@context;noquote@
-#assessment.Created_by# @assessment_data.creator_name@#assessment.on_creation_date#
+#assessment.Created_by# @assessment_data.creator_name@#assessment.on_creation_date# - #assessment.history#