Milestones needs a calendar view
Submitted by Jon on Sat, 06/23/2007 - 17:43.
| Project: | ProjectPier |
| Version: | 0.8.0.2 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | dossy |
| Status: | closed - by issue author |
Description
This is of the utmost importance and I know a user has already written the
code and donated it to the activeCollab project. Please donate it to
ProjectPier as well!

Postponed until after version 0.8 is released.
0.80 is released...
+1.
I've implemented a very basic calendar view of the project milestones. I'm attaching a screenshot and a patch. I've only created a calendar.css for the default theme.
Please review and provide comments.
milestone-calendar-view-patch.txt
Looks great! one thing needed is setup of first day of the week.
Submitting new diff with a few cosmetic changes, and this time this is a diff from the top of the PP SVN.
New screenshot reflecting changes in milestone-calendar-view-svn-patch.txt.
I fixed one bug and also a couple of other cleanups to get rid of Notice messages and the like. Although I see you've updated your patch now so I'll have to take a look at that when I get some time and merge the changes.
OK, I've integrated your fixes and also added code to make the start-of-week day configurable via a single variable in the views/milestone/calendar.php. We can push that into a config UI in a later commit.
I've changed application/views/milestone/calendar.php to render the calendar for months that have no milestones. Previously, it would dead-end the UX with a stupid "no milestones" error. Duh.
How to install it?
Where are the source files, please?
I would like to install it on my PP.
Is there a way to incorporate this into a My Milestones tab from the Dashboard that would show a users milestones across all projects in a calendar form like this? (I'd be happy to have them in the list form from the way they view inside a project right now, but need something that extends across all projects)
Thanks, good work.
Sorry for the second post, the other idea would be to show a calendar like this featuring all the projects at the top of the dashboard) - is something like that possible?
Thanks a bunch Dossy, this was a great contribution. Apologies for the delay in committing it.
For anyone who wants to try it, download a nightly build.
Automatically closed -- issue fixed for two weeks with no activity.
I've found a small bug on your code.
In calendar.php file almost in line 88:
It says:
<ul class="entries"><?php
foreach ($calendar[$dom] as $m) {
printf('<li><a href="%s">%s</a></li>'."\n",
get_url("milestone", "view", $m->getId()),
clean($m->getName()));
}
?>
<ul>
It should say
<ul class="entries"><?php
foreach ($calendar[$dom] as $m) {
printf('<li><a href="%s">%s</a></li>'."\n",
get_url("milestone", "view", $m->getId()),
clean($m->getName()));
}
?>
</ul>
Cheers.
As you can see in the screenshot, the first day in the week and the last day in the week are weekends.
The problem is that your script considers Monday (Lunes) as a weekend day.
Is there a way to solve this?
Thanks
There is a big bug in the calendar, there is a lag in the date.
Just check with the sample images that are on this thread, for instance :
April 1st 2008, is a Tuesday (Martes) not a Wednesday (Miercoles), and I'm not kidding !
This is quite annoying as most people check their meeting with the day of the week, not necessarly the number.
This patch was already committed, any bugs should be reported as new issues against the development version (0.8.5 - dev)
You can include a link back to this issue to help track the existing reported information
Hi
I am new to Project Pier, and really like the look of it. I have set it up on my web server, and am currently trying it out. However, the calendar view discussed above would be essential for me.
I am also fairly novice at managing web based applications ... can anyone tell me how I go about trying out the calendar patch (I am not familiar with TAR files)
cheers
Toby