...
Code Block |
---|
#macro(rtl_html_comment) #disable_html_escaping() #if ($comment) #set ($commentTopVisibility = $textutils.innerTrim("#visibilityHtml()")) #if ($commentTopVisibility != "") #set ($topTextContent = "$htmlComment $commentTopVisibility") #else #set ($topTextContent = $htmlComment) #end #if ($textutils.stringSet($commentTopPatternClasses)) #set ($textTopPatternClasses = "$commentTopPatternClasses comment-top-pattern") #else #set ($textTopPatternClasses = "comment-top-pattern") #end #rtl_text_top() #elseif ($originalcomment) #set ($originalcommentTopVisibility = $textutils.innerTrim("#originalvisibilityHtml()")) #if ($originalcommentTopVisibility != "") #set ($topTextContent = "$originalhtmlComment $originalcommentTopVisibility") #else #set ($topTextContent = $originalhtmlComment) #end #if ($textutils.stringSet($commentTopPatternClasses)) #set ($textTopPatternClasses = "$commentTopPatternClasses comment-top-pattern") #else #set ($textTopPatternClasses = "comment-top-pattern") #end #rtl_text_top() #end #end |
3. Apply Macros in new Custom Template
These new RTL Macros can be used in a Custom Template to replace the original left to right rendering of the Issue description and Comments. For a full example template in use, please import the JEMH Template Sets attached below.
...