Difference between revisions of "Template:Issue"

From Culture.si
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ifEqualOrEmpty|{{#cgi:responsible|}}|{{{responsible}}}
+
{{ifEqualOrEmpty|{{#cgi:responsible|}}|{{coallesce|{{{responsible}}}|nobody}}|
|{{ifEqualOrEmpty|{{#cgi:status|}}|{{{status}}}
+
{{ifEqualOrEmpty|{{#cgi:status|}}|{{coallesce|{{{status|}}}|open}}|
|3=
+
3=
 
----
 
----
<div class="issue">
+
<div class="issue" style="background:#eee;margin:1em 0;padding:0.5em">
 
<dl>
 
<dl>
<dt>submitted
+
<dd style="margin-left:0"><strong>{{{category|general}}}:</strong> {{{description|issue}}}
<dd>by <b>[[User:{{{submitter|unknown}}}]]</b> on <b>{{{submitted|unknown}}}</b>
+
<dd style="margin-left:0"><small> submitted by <b>[[User:{{{submitter|unknown}}}]]</b> on <b>{{{submitted|unknown}}}</b></small>
{{#if:{{{description|}}}
+
<dd style="margin-left:0"><small><b>{{coallesce|{{{status|}}}|open}}</b> - assigned to <b>{{#if:{{{responsible|}}}|[[User:{{{responsible}}}]]|nobody}}</b> {{#if:{{{closed|}}}|- closed on {{{closed}}}|{{#if:{{{fixby|}}}|- fix by {{{fixby}}}}}}}</small>{{#if:{{{current|}}}
|<dt>description
+
|<dd style="margin-left:0"><strong>current behaviour:</strong>
<dd>{{#if:{{{description|}}}|{{{description|}}}|...}}
+
{{{current}}}
 +
}}{{#if:{{{expected|}}}
 +
|<dd style="margin-left:0"><strong>expected behaviour:</strong>
 +
{{{expected}}}
 
}}
 
}}
{{#if:{{{current|}}}
+
</dl>
|<dt>current behaviour
 
<dd>{{#if:{{{current|}}}|{{{current|}}}|...}}
 
}}
 
{{#if:{{{expected|}}}
 
|<dt>expected behaviour
 
<dd>{{#if:{{{expected|}}}|{{{expected|}}}|...}}
 
}}
 
<dt>status
 
<dd><b>{{#if:{{{status|}}}{{{status}}}|open}}</b> - assigned to <b>{{#if:{{{responsible|}}}|[[User:{{{responsible}}}]]|nobody}}</b> {{#if:{{{closed|}}}|- closed on {{{closed}}}}}
 
 
{{#if:{{{comments|}}}
 
{{#if:{{{comments|}}}
|<dt>comments
+
|<b>comments</b>
<dd>{{#if:{{{comments|}}}|{{{comments|}}}|...}}
+
<div style="margin:0.5em;background:white">
 +
{{{comments|}}}
 +
</div>
 
}}
 
}}
</dl>
 
 
</div>
 
</div>
 
}}
 
}}
 
}}
 
}}

Latest revision as of 11:51, 23 August 2011


general: issue
submitted by Unknown on unknown
open - assigned to nobody