Update of
/var/cvs/contributions/didactor2/src/education/templates/education/mcquestions
In directory james.mmbase.org:/tmp/cvs-serv698
Modified Files:
index.jsp view.jspx
Log Message:
simplified
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/templates/education/mcquestions
Index: index.jsp
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/templates/education/mcquestions/index.jsp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- index.jsp 20 Mar 2008 14:36:03 -0000 1.9
+++ index.jsp 28 Mar 2008 11:10:45 -0000 1.10
@@ -1,7 +1,7 @@
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"
xmlns:di="http://www.didactor.nl/ditaglib_1.0" >
- <mm:content postprocessor="reducespace">
+ <mm:content postprocessor="none">
<mm:cloud method="delegate">
<mm:import externid="question" required="true"/>
Index: view.jspx
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/templates/education/mcquestions/view.jspx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- view.jspx 15 Jan 2008 15:45:54 -0000 1.4
+++ view.jspx 28 Mar 2008 11:10:45 -0000 1.5
@@ -4,21 +4,13 @@
xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0"
xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:output omit-xml-declaration="yes" />
- <mm:node number="${param.question}">
- <mm:field name="type" id="type" write="false"/>
- </mm:node>
- <mm:compare referid="type" value="0">
- <mm:relatednodes type="answers">
- <b class="type0"><di:translate key="education.givenanswer" />: </b>
- <mm:field name="text"/>
- </mm:relatednodes>
- </mm:compare>
- <mm:compare referid="type" value="1">
- <b class="type1"><di:translate key="education.givenanswers" />: </b>
+ <mm:node number="${param.question}" id="question" />
+
+ <b class="type${question.type}"><di:translate
key="education.givenanswer${question.type eq 1 ? 's' : ''}" />: </b>
<mm:relatednodes type="answers">
<mm:field name="text"/>
<mm:last inverse="true">, </mm:last>
</mm:relatednodes>
- </mm:compare>
+
</mm:node>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs