Difference between revisions of "Free Software Directory:Issues/7"

From Free Software Directory
Jump to: navigation, search
(Fixed: Revision 85864.)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Show a red or a green icon, for closed or open issues, respectively}}
+
{{DISPLAYTITLE:Recover status icon}}
  
 
'''Issue assigned to:''' [[Issue assigned to::User:Adfeno]].
 
'''Issue assigned to:''' [[Issue assigned to::User:Adfeno]].
  
'''Is top priority issue?''' [[Is top priority issue::false]].
+
'''Is top priority issue?''' [[Is top priority issue::true]].
  
For open issues: <span style="font-weight: normal; color:green" title="Open issue. {{PAGESIZE:xvarx}} bytes.">&#x1F6C8;</span>
+
For [[Free_Software_Directory:Issues#GitHub-style]] issues should receive a colored info icon.
 +
* Open issues should have a green icon: <span style="font-weight: normal; color:green" title="Open issue. {{PAGESIZE:xvarx}} bytes.">&#x1F6C8;</span>
 +
* Closed issues should have a green icon: <span style="font-weight: normal; color:red" title="Closed issue. {{PAGESIZE:xvarx}} bytes.">&#x1F6C8;</span>
  
For closed issues: <span style="font-weight: normal; color:red" title="Closed issue. {{PAGESIZE:xvarx}} bytes.">&#x1F6C8;</span>
+
==Old manual solution==
 +
My old solution was: <nowiki><span style="font-weight: normal; color:{{#ifeq: {{{category_requirement_2}}}|Open issues|green|red}}" title="{{#ifeq: {{{category_requirement_2}}}|Open issues|Open|Closed}} issue">&#x1F6C8;</span></nowiki> but it doesn't work any more because category_requirement_2 has been removed from <nowiki>{{FSD tracker|[[Category:Issue/Backlog Admin Group/Client-side/Tracker]] [[Category:Issue/Closed]]}}</nowiki>.
  
 +
==Automatic solution==
 +
Ideally, we should detect <nowiki>Category:Issue/Open</nowiki> or <nowiki>Category:Issue/Closed</nowiki> automatically and apply the color based on the result.
  
 
==Resolution==
 
==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.
+
[[{{TALKPAGENAME}}#Revision 85864]]
  
 
[[Category:Issue/Backlog Admin Group/Client-side/Tracker]]
 
[[Category:Issue/Backlog Admin Group/Client-side/Tracker]]
[[Category:Issue/Open]]
+
[[Category:Issue/Closed]]

Latest revision as of 14:58, 24 September 2021


Issue assigned to: User:Adfeno.

Is top priority issue? true.

For Free_Software_Directory:Issues#GitHub-style issues should receive a colored info icon.

  • Open issues should have a green icon: 🛈
  • Closed issues should have a green icon: 🛈

Old manual solution

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]]}}.

Automatic solution

Ideally, we should detect Category:Issue/Open or Category:Issue/Closed automatically and apply the color based on the result.

Resolution

Free Software Directory talk:Issues/7#Revision 85864



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.