EduploneTest/skins/EduploneTest test_environment_listing.pt,1.2,1.3

"Fabian K." <[email protected]>
Newsgroups gmane.comp.web.zope.eduplone.cvs
Message-ID <[email protected]>
Update of /cvsroot/eduplone/EduploneTest/skins/EduploneTest
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29623/EduploneTest/skins/EduploneTest

Modified Files:
	test_environment_listing.pt 
Log Message:
Added test in new window feature + fixed testIsRunning method

Index: test_environment_listing.pt
===================================================================
RCS file: /cvsroot/eduplone/EduploneTest/skins/EduploneTest/test_environment_listing.pt,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_environment_listing.pt	5 Oct 2004 18:19:07 -0000	1.2
--- test_environment_listing.pt	12 Oct 2004 10:53:22 -0000	1.3
***************
*** 36,56 ****
                          <span i18n:translate="text_you_are_participant">You are the participant of the test.</span><br />
                          <div tal:condition="python: len(here.fixedObjectValues()) > 0">
!                             <span  i18n:translate="text_test_started">The test has begun.</span> <a tal:attributes="href python:here.fixedObjectValues()[0].absolute_url() + '/task_view'"  i18n:translate="text_click_here">Click here to start.</a>
                          </div>
                          <div tal:condition="python: len(here.fixedObjectValues()) == 0">
-                             <span tal:condition="nothing">
-                                   <!--
-                                   ich hab jetzt doch "es wurden keine aufgaben hinterlegt" reingehauen, weil sich studenten unter umstaenden beschweren a la:
-                                  "wie? ich bin noch nicht auf der teilnahmeliste? mein prof hat mich doch draufgesetzt!" (siehe fehlermeldung unten)
-                                  wenn du anderer meinung bist aender den text halt
-                                  ===
-                                  and now in Slovak
-                                  ===
-                                  teraz som tam naklepal "ešte neboli uložené žiadne úlohy", pretože si
-                                 študenti stále sťažovali ako napr.: "čo? nie som na zozname účastníkov?
-                                 môj profesor ma tam predsa uviedol!" (pozri chybné hlásenie dole)
-                                 keď máš iný názor, tak zmeň ten text
-                                 -->
-                                 </span>
                              No tasks were allocated and that is why you cannot start the test yet.
                          </div>
--- 36,56 ----
                          <span i18n:translate="text_you_are_participant">You are the participant of the test.</span><br />
                          <div tal:condition="python: len(here.fixedObjectValues()) > 0">
!     			    <div tal:condition="python: here.getTestinwindow() == 1">
! 				<script language="JavaScript">
! 				    function startTest(testurl)
! 				    {
! 					window.open(testurl, '', 'menubar=no,toolbar=no,location=no,directories=no');
! 				    }
! 				</script>
! 				<span i18n:translate="text_test_started">The test has begun.</span>
! 				<a tal:attributes="href python:'#';
! 						   onClick python:'javascript:startTest(\'' + here.fixedObjectValues()[0].absolute_url() + '/task_view\')'" i18n:translate="text_click_here">Click here to start.</a>
! 			    </div>
! 			    <div tal:condition="python: here.getTestinwindow() == 0">
! 				<span i18n:translate="text_test_started">The test has begun.</span>
! 				<a tal:attributes="href python:here.fixedObjectValues()[0].absolute_url() + '/task_view'" i18n:translate="text_click_here">Click here to start.</a>
! 			    </div>
                          </div>
                          <div tal:condition="python: len(here.fixedObjectValues()) == 0">
                              No tasks were allocated and that is why you cannot start the test yet.
                          </div>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.