[Hejes-devel] [718] kulegy: added line to explanations to help understand application of rules

hejes-devel at nytud.hu hejes-devel at nytud.hu
Wed May 8 18:13:40 CEST 2013


Revision: 718
Author:   mihaltz
Date:     2013-05-08 18:13:40 +0200 (Wed, 08 May 2013)
Log Message:
-----------
kulegy: added line to explanations to help understand application of rules

Modified Paths:
--------------
    trunk/web2py/applications/helyesiras_webdev/modules/egybekulon2_output.py
    trunk/web2py/applications/helyesiras_webdev/static/css/main.css

Modified: trunk/web2py/applications/helyesiras_webdev/modules/egybekulon2_output.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/modules/egybekulon2_output.py	2013-05-08 15:44:01 UTC (rev 717)
+++ trunk/web2py/applications/helyesiras_webdev/modules/egybekulon2_output.py	2013-05-08 16:13:40 UTC (rev 718)
@@ -173,6 +173,9 @@
   root = Element('div', {'class':'expl_body'})
   root.text = root.tail = '\n'
   expl = explain_struct(hnode, toklst)  
+  if len(expl) > 1: # if #steps>1, add line "x szabályt alkalmaztunk az alábbi sorrendben:"
+    help = SubElement(root, 'div', {'class':'expl_help'})
+    help.text = u'{0} szabályt alkalmaztunk az alábbi sorrendben:'.format(len(expl))
   for i, exp in enumerate(expl):
     step = SubElement(root, 'div', {'class':'expl_step'})
     step.text = step.tail = '\n'

Modified: trunk/web2py/applications/helyesiras_webdev/static/css/main.css
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/static/css/main.css	2013-05-08 15:44:01 UTC (rev 717)
+++ trunk/web2py/applications/helyesiras_webdev/static/css/main.css	2013-05-08 16:13:40 UTC (rev 718)
@@ -973,6 +973,7 @@
 #result_xhtml .expl_header_x.active,
 #result_xhtml .expl_header_x:hover {background-color: #4daf7e;}
 #result_xhtml .expl_body {font-size: 12px; padding: 0 10px; font-weight: normal; display: none;}
+#result_xhtml .expl_body .expl_help {margin: 0 0 10px;}
 #result_xhtml .expl_body .expl_step {margin: 0 0 10px;}
 #result_xhtml .expl_body .expl_step .step_id {font-weight: bold;}
 /*#result_xhtml .expl_body .expl_step .refid {color: #b2291f;}*/




More information about the Hejes-devel mailing list