<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Horde Portal Nag/Task Category Colors</title> 
  <pubDate>Fri, 10 Apr 2026 15:00:39 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/1126</link> 
  <atom:link rel="self" type="application/rss+xml" title="Horde Portal Nag/Task Category Colors" href="https://bugs.horde.org/ticket/1126/rss" /> 
  <description>Horde Portal Nag/Task Category Colors</description> 
 
   
   
  <item> 
   <title>Per my horde.lists.horde.org posting of &quot;Re: [horde] PATCH: </title> 
   <description>Per my horde.lists.horde.org posting of &quot;Re: [horde] PATCH: Horde Portal Nag/Task Category Colors&quot; this is my enhancement for adding color to the Nag portal block.



Message-ID:   	&lt;20050110205330.b73k3fbe5gmg4o8w@marina.horde.org&gt;



--- /tmp/summary.php    2005-01-10 11:42:37.000000000 -0800

+++ nag/lib/Block/summary.php   2005-01-10 11:41:18.000000000 -0800

@@ -3,7 +3,7 @@

 $block_name = _(&quot;Tasks Summary&quot;);

 

 /**

- * $Horde: nag/lib/Block/summary.php,v 1.50 2004/11/12 15:25:37 chuck Exp $

+ * $Horde: nag/lib/Block/summary.php,v 1.51 2004/11/15 02:23:14 chuck Exp $

  *

  * @package Horde_Block

  */

@@ -175,9 +175,12 @@

             $html .= &quot;&lt;/td&gt;&quot;;

 

             if (!empty($this-&gt;_params[&#039;show_category&#039;])) {

-                $html .= &#039;&lt;td width=&quot;1%&quot; nowrap=&quot;nowrap&quot; class=&quot;&#039; . $tstyle . &#039;&quot;&gt;&amp;nbsp;&#039;

-                    . htmlspecialchars($task[&#039;category&#039;] ? $task[&#039;category&#039;] : _(&quot;Unfiled&quot;))

-                    . &#039;&amp;nbsp;&lt;/td&gt;&#039;;

+               $colors = $GLOBALS[&#039;cManager&#039;]-&gt;colors();

+               $fgcolors = $GLOBALS[&#039;cManager&#039;]-&gt;fgColors();

+               $color = isset($colors[$task[&#039;category&#039;]]) ? $colors[$task[&#039;category&#039;]] : $colors[&#039;_default_&#039;];

+               $fgcolor = isset($fgcolors[$task[&#039;category&#039;]]) ? $fgcolors[$task[&#039;category&#039;]] : $fgcolors[&#039;_default_&#039;];

+

+               $html .= &#039;&lt;td width=&quot;1%&quot; nowrap=&quot;nowrap&quot; class=&quot;&#039; . $tstyle . &#039;&quot; style=&quot;background-color: &#039;.$color.&#039; ; color: &#039;.$fgcolor.&#039; ;&quot;&gt;&amp;nbsp;&#039; . htmlspecialchars($task[&#039;category&#039;] ? $task[&#039;category&#039;] : _(&quot;Unfiled&quot;)) . &#039;&amp;nbsp;&lt;/td&gt;&#039;;

             }

             $html .= &quot;&lt;/tr&gt;\n&quot;;

         }





</description> 
   <pubDate>Tue, 11 Jan 2005 06:00:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1126#t4361</link> 
  </item> 
   
  <item> 
   <title>Please upload the patch as an attachment.</title> 
   <description>Please upload the patch as an attachment.</description> 
   <pubDate>Tue, 11 Jan 2005 18:09:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1126#t4373</link> 
  </item> 
   
  <item> 
   <title>Patch attached.  Cheers!</title> 
   <description>Patch attached.  Cheers!</description> 
   <pubDate>Tue, 11 Jan 2005 20:24:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1126#t4386</link> 
  </item> 
   
  <item> 
   <title>Cleaned up and committed. Please test your patches and take </title> 
   <description>Cleaned up and committed. Please test your patches and take a quick ride through docs/CODING_STANDARDS.</description> 
   <pubDate>Tue, 11 Jan 2005 23:21:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/1126#t4396</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
