[nag] Ideas about NAG

Jon Parise jon@csh.rit.edu
Tue, 3 Jul 2001 22:48:59 -0400


On Sun, Jun 03, 2001 at 08:51:38AM -0700, Edwin Culp wrote:

> It's Sunday and I've actually had some time to think.  Not good:-)

And here I am replying one month later. =)
 
> I have just been adding some real tasks to NAG to try and organize myself
> just a little and personally am  finding that marking/prioritizing the 
> tasks with a different color would be very useful as it is in IMP.
> 
> 	Important
> 	UnImportant
> 	Finished/possibly with a hide option.
> 	Deleted/Not Purged
> 	probably others

Okay, I just added support for assigning general priorities to
individual tasks (low, medium, high).  It doesn't display each
priority in a different color, but that shouldn't be too hard to
add (patches anyone?).

-- 
Jon Parise (jon@csh.rit.edu)  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member


>From eculp@EnContacto.Net Date: Tue,  3 Jul 2001 20:18:46 -0700
Return-Path: <eculp@EnContacto.Net>
Mailing-List: contact nag-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list nag@lists.horde.org
Received: (qmail 1764 invoked from network); 4 Jul 2001 03:18:48 -0000
Received: from adsl-63-205-16-205.dsl.mtry01.pacbell.net (HELO EnContacto.Net) (63.205.16.205)
  by horde.org with SMTP; 4 Jul 2001 03:18:48 -0000
Received: (from root@localhost)
	by EnContacto.Net (8.11.4/8.11.4) id f643Ikl16532
	for nag@lists.horde.org; Tue, 3 Jul 2001 20:18:46 -0700 (PDT)
	(envelope-from eculp@EnContacto.Net)
From: Edwin Culp <eculp@EnContacto.Net>
Received: from 63.205.16.202 ( [63.205.16.202])
	as user eculp@encontacto.net by Mail.SavvyWorld.Net with HTTP;
	Tue,  3 Jul 2001 20:18:46 -0700
Message-ID: <994216726.3b428b163de02@Mail.SavvyWorld.Net>
Date: Tue,  3 Jul 2001 20:18:46 -0700
To: nag@lists.horde.org
References: <991583498.3b1a5d0a2e9aa@Mail.SavvyWorld.Net> <20010703224859.B11271@csh.rit.edu>
In-Reply-To: <20010703224859.B11271@csh.rit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Originating-IP: 63.205.16.202
Subject: Re: [nag] Ideas about NAG

Really cool, Jon.

Thanks,

ed
 
P.S. Folks will will probably want to do something like the following. 

mysql <<%
ALTER TABLE nag_tasks ADD COLUMN task_priority int null default 0;
%


Quoting Jon Parise <jon@csh.rit.edu>:

| On Sun, Jun 03, 2001 at 08:51:38AM -0700, Edwin Culp wrote:
| 
| > It's Sunday and I've actually had some time to think.  Not good:-)
| 
| And here I am replying one month later. =)
|  
| > I have just been adding some real tasks to NAG to try and organize myself
| > just a little and personally am  finding that marking/prioritizing the 
| > tasks with a different color would be very useful as it is in IMP.
| > 
| > 	Important
| > 	UnImportant
| > 	Finished/possibly with a hide option.
| > 	Deleted/Not Purged
| > 	probably others
| 
| Okay, I just added support for assigning general priorities to
| individual tasks (low, medium, high).  It doesn't display each
| priority in a different color, but that shouldn't be too hard to
| add (patches anyone?).
| 
| -- 
| Jon Parise (jon@csh.rit.edu)  .  Rochester Inst. of Technology
| http://www.csh.rit.edu/~jon/  :  Computer Science House Member
| 
| -- 
| Nag mailing list: http://horde.org/nag/
| Frequently Asked Questions: http://horde.org/faq/
| To unsubscribe, mail: nag-unsubscribe@lists.horde.org
| 
| 


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


>From eculp@EnContacto.Net Date: Wed,  4 Jul 2001 23:31:13 -0700
Return-Path: <eculp@EnContacto.Net>
Mailing-List: contact nag-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list nag@lists.horde.org
Received: (qmail 28547 invoked from network); 5 Jul 2001 06:31:17 -0000
Received: from adsl-63-205-16-205.dsl.mtry01.pacbell.net (HELO EnContacto.Net) (63.205.16.205)
  by horde.org with SMTP; 5 Jul 2001 06:31:17 -0000
Received: (from root@localhost)
	by EnContacto.Net (8.11.4/8.11.4) id f656VDZ47944
	for nag@lists.horde.org; Wed, 4 Jul 2001 23:31:13 -0700 (PDT)
	(envelope-from eculp@EnContacto.Net)
From: Edwin Culp <eculp@EnContacto.Net>
Received: from 63.205.16.202 ( [63.205.16.202])
	as user eculp@encontacto.net by Mail.SavvyWorld.Net with HTTP;
	Wed,  4 Jul 2001 23:31:13 -0700
Message-ID: <994314673.3b4409b1ca7ba@Mail.SavvyWorld.Net>
Date: Wed,  4 Jul 2001 23:31:13 -0700
To: nag@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
X-Originating-IP: 63.205.16.202
Subject: Re: [nag] Ideas about NAG


Quoting Jon Parise <jon@csh.rit.edu>:

| On Sun, Jun 03, 2001 at 08:51:38AM -0700, Edwin Culp wrote:
| 
| > It's Sunday and I've actually had some time to think.  Not good:-)
| 
| And here I am replying one month later. =)
|  
| > I have just been adding some real tasks to NAG to try and organize myself
| > just a little and personally am  finding that marking/prioritizing the 
| > tasks with a different color would be very useful as it is in IMP.
| > 
| > 	Important
| > 	UnImportant
| > 	Finished/possibly with a hide option.
| > 	Deleted/Not Purged
| > 	probably others
| 
| Okay, I just added support for assigning general priorities to
| individual tasks (low, medium, high).  It doesn't display each
| priority in a different color, but that shouldn't be too hard to
| add (patches anyone?).

An easy and functional way although not very elegant, but just requires 
minimal modification of two lines in list.php is:

# diff -u list.php.original list.php
--- list.php.original   Wed Jul  4 17:10:58 2001
+++ list.php    Wed Jul  4 18:40:31 2001
@@ -98,9 +98,9 @@
 
     foreach ($tasks as $task_id => $task) {
         if (!empty($task['due']) && ($task['due'] < time())) {
-            $style = 'overdue';
+            $style = 'overdue' . $task['priority'] ;
         } else {
-            $style = 'text';
+            $style = 'text' . $task['priority'] ;
         }
         include $conf['paths']['templates'] . '/list/task_summaries.inc';
     }

You will need to add your favorite task background colors in config/html.php
 
$css['.overdue0']['background-color'] = '#ff4444';  /* overdue high priority */
$css['.overdue10']['background-color'] = '#ff8888'; /* overdue med priority */
$css['.overdue20']['background-color'] = '#ffcccc'; /* overdue low priority */
$css['.text0']['background-color'] = '#4444ff';     /* pending high priority */
$css['.text10']['background-color'] = '#8888ff';    /* pending med priority */
$css['.text20']['background-color'] = '#ccccff';    /* pending low priority */

provecho,

ed
 ----------------------------------------------------------------------- 
        The illiterate of the 21st century will not be 
              those who cannot read and write, 
        but those who cannot learn, unlearn and relearn. 
                                                 --Alvin Toffler 


>From chuck@horde.org Date: Thu,  5 Jul 2001 15:04:20 -0400
Return-Path: <chuck@horde.org>
Mailing-List: contact nag-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list nag@lists.horde.org
Received: (qmail 8709 invoked from network); 5 Jul 2001 19:06:05 -0000
Received: from 208-59-250-206.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (208.59.250.206)
  by horde.org with SMTP; 5 Jul 2001 19:06:05 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id D195639F6; Thu,  5 Jul 2001 15:04:20 -0400 (EDT)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@localhost by marina.horde.org with HTTP;
	Thu,  5 Jul 2001 15:04:20 -0400
Message-ID: <994359860.3b44ba34858a1@marina.horde.org>
Date: Thu,  5 Jul 2001 15:04:20 -0400
From: Chuck Hagenbuch <chuck@horde.org>
To: nag@lists.horde.org
References: <994314673.3b4409b1ca7ba@Mail.SavvyWorld.Net>
In-Reply-To: <994314673.3b4409b1ca7ba@Mail.SavvyWorld.Net>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [nag] Ideas about NAG

Quoting Edwin Culp <eculp@EnContacto.Net>:

> An easy and functional way although not very elegant, but just requires
> minimal modification of two lines in list.php is:

I mucked with the colors a bit, but I'm pretty happy with the result - I've 
committed it.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.