The macro is to display an icon depending on the selected status, for example {status:i} would produce a yellow icon for in-progress. There is also a {status:legend} option that will display all of the icons in a table. Here is the code:
-----
#set ($type = $param0.toUpperCase())
#if ("LEGEND" == $type)
<TABLE>
<TR>
<TD><img src="http://sanitized/icons/bullet_blue.gif" height="8" width="8" alt="planned" /> - planned, not started</TD>
<TD><img src="http://sanitized/icons/bullet_inprogress.gif" height="9" width="9" alt="in progress" /> - in progress</TD>
<TD><img src="http://sanitized/icons/bullet_red.gif" height="8" width="8" alt="at risk" /> - at risk</TD>
<TD><img src="http://sanitized/icons/bullet_done.gif" height="9" width="9" alt="completed" /> - completed</TD>
</TR>
</TABLE>
#elseif ("P" == $type) <img src="http://sanitized/icons/bullet_blue.gif" height="8" width="8" alt="planned" />
#elseif ("D" == $type) <img src="http://sanitized/icons/bullet_done.gif" height="9" width="9" alt="completed" />
#elseif ("I" == $type) <img src="http://sanitized/icons/bullet_inprogress.gif" height="9" width="9" alt="in progress" />
#elseif ("R" == $type) <img src="http://sanitized/icons/bullet_red.gif" height="8" width="8" alt="at risk" />
#else <HR><B>usage: status:LEGEND, P-Planned, D-Done, I-In progress, R-At Risk</B></HR>
#end
-----
I don't understand why this works fine in Chrome and Firefox but not IE, any ideas?
Community moderators have prevented the ability to post new answers.
We've been having a similar problem with macros and Confluence. We have yet to get it working, However I have been told (and this is untested) that adding the line that follows will solve the problem.
<metahttp-equiv="X-UA-Compatible"content="IE=EmulateIE7"/>
By the way, I have also checked to see ifthe same error exists in IE9 and it behaves the same as IE8 does.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.