Show a red or a green icon, for closed or open issues, respectively

From Free Software Directory
Jump to: navigation, search


Issue assigned to: User:Adfeno.

Is top priority issue? true.

For Free_Software_Directory:Issues#GitHub-style issues should receive a colored info icon based on their Category:Issue/Open or Category:Issue/Closed category:

  • Open issues should have a green icon automatically if possible: 🛈
  • Closed issues should have a green icon: 🛈

My old solution was: <span style="font-weight: normal; color:{{#ifeq: {{{category_requirement_2}}}|Open issues|green|red}}" title="{{#ifeq: {{{category_requirement_2}}}|Open issues|Open|Closed}} issue">🛈</span> but it doesn't work any more because category_requirement_2 has been removed from {{FSD tracker|[[Category:Issue/Backlog Admin Group/Client-side/Tracker]] [[Category:Issue/Closed]]}}.

Resolution

Replace Template:FSD tracker with a query such as Special:Diff//85038, since the tracker is for internal use, a template makes it hard to dynamically list issues and control the query and result format.



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.