"
+ } elseif {[string eq $role_type "player"]} {
+ append user_html "
"
+ }
+
+ # We dont want to show watchers
+ if {![string eq $role_type "observer"]} {
+ append user_html "
$assignee_name"
+ append user_html "
"
+ }
+ if {[string eq $assignee_id $user_id]} {
+ append user_html ""
+ }
+ }
+
set item_url [export_vars \
-base "task-one" {{task_id $task_item_id}}]
set edit_url [export_vars \
@@ -645,19 +649,26 @@
set project_name "[string index [lang::util::localize $project_status] 0]-$project_name"
}
- set red_title_p 0
- set sysdate [dt_sysdate -format "%Y-%m-%d %H:%M:%S"]
- if { [exists_and_not_null latest_start]} {
- if { $sysdate > $latest_start } {
- set red_title_p 1
- }
- } elseif {[exists_and_not_null end_date]} {
- if { $sysdate > $end_date } {
- set red_title_p 1
- }
- } else {
- set red_title_p 0
+ # Default color is black
+ set title_color "black"
+
+ # If you are not an observer, make the color green
+ if {$user_is_lead_p} {
+ set title_color "green"
}
+
+ # Color the task red if the task is overdue
+ #set sysdate [dt_sysdate -format "%Y-%m-%d %H:%M:%S"]
+# if { [exists_and_not_null latest_start]} {
+# if { $sysdate > $latest_start } {
+# set title_color "red"
+# }
+# } elseif {[exists_and_not_null end_date]} {
+# if { $sysdate > $end_date } {
+# set title_color "red"
+# }
+# }
+
set red_title_p 0
if {[exists_and_not_null earliest_start_j]} {
@@ -698,13 +709,6 @@
}
set my_user_id $user_id
- # if contacts is installed, link to it, otherwise link to pvt home
- if {[string eq "" $contacts_url]} {
- set user_url [export_vars -base "/shared/community-member" {{user_id $party_id}}]
- } else {
- set user_url [export_vars \
- -base "${contacts_url}contact" {{party_id $party_id}}]
- }
acs_object::get -object_id $task_item_id -array task_array
set base_url [lindex [site_node::get_url_from_object_id -object_id $task_array(package_id)] 0]