maltes
committed
on 16 Dec 05
Show open tasks by default
openacs-4/.../lib/project-portlet.adp (+68 -16)
38 38           <td class="highlight" valign="top">#project-manager.Status#</td>
39 39           <td class="fill-list-bg">
40 40                 <if @project.status_type@ eq "o">
41 41                     <b>#project-manager.Open#</b> / <i><a title="#project-manager.Close_project#" href=@close_url@>#project-manager.Close#</a></i>
42 42                 </if>
43 43                 <else>
44 44                     <b>#project-manager.Closed#</b> <small>(<a title="Rate this project#" href=@rate_url@>Rate</a>)</small>
45 45                 </else>
46 46           </td>
47 47         </tr>
48 48         <tr>
49 49           <td class="highlight" valign="top">#project-manager.Description_1#</td>
50 50           <td class="fill-list-bg">@project.description;noquote@</td>
51 51         </tr>
52 52         <multiple name="dynamic_attributes">
53 53           <tr>
54 54             <td class="highlight">@dynamic_attributes.name@:</td>
55 55             <td class="fill-list-bg">@dynamic_attributes.value@</td>
56 56           </tr>
57 57         </multiple>
  58         <tr>
  59           <th colspan="2" align="center">Dates</th>
  60         </tr>
  61         <tr>
  62           <td class="highlight">#project-manager.Start#</td>
  63           <td class="fill-list-bg">@project.planned_start_date@</td>
  64         </tr>
  65         <tr>
  66           <td class="highlight">#project-manager.Earliest_finish#</td>
  67           <if @project.ongoing_p@ eq f>
  68             <td class="fill-list-bg">@project.earliest_finish_date@</td>
  69           </if>
  70           <else>
  71             <td class="fill-list-bg">#project-manager.Ongoing#</td>
  72           </else>
  73         </tr>
  74         <tr>
  75           <td class="highlight">#project-manager.Latest_finish#</td>
  76           <if @project.ongoing_p@ eq f>
  77             <td class="fill-list-bg">
  78               <b>@project.latest_finish_date@</b>
  79             </td>
  80           </if>
  81           <else>
  82             <td class="fill-list-bg">#project-manager.Ongoing#</td>
  83           </else>
  84         </tr>
  85         <tr>
  86           <td class="highlight">#project-manager.Deadline#</td>
  87           <if @project.ongoing_p@ eq f>
  88             <td class="fill-list-bg">
  89               <b>@project.planned_end_date@</b>
  90             </td>
  91           </if>
  92           <else>
  93             <td class="fill-list-bg">#project-manager.Ongoing#</td>
  94           </else>
  95         </tr>
  96         <tr>
  97           <td class="highlight">#categories.Categories#</td>
  98           <td class="fill-list-bg">
  99             <ul>
  100               <multiple name="categories">
  101                 <li>@categories.tree_name@:
  102                   <group column="tree_id" delimiter=", ">
  103                     @categories.category_name@
  104                   </group>
  105                 </li>
  106               </multiple>
  107             </ul>
  108           </td>
  109         </tr>
58 110       </table>
59 111     </td>
60 112   </tr>
61 113   <tr>
62 114     <td colspan="2" class="fill-list-bottom">
63 115       <ul>
  116         @project_links;noquote@
64 117         <li>
65 118           <a href="project-revisions?project_item_id=@project_item_id@">#project-manager.View_project_changes#</a>
66 119         </li>
67           @project_links;noquote@
68 120       </ul>
69 121     </td>
70 122   </tr>
71 123 </table>