Index: openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl,v
diff -u -r1.25 -r1.26
--- openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl 27 Oct 2014 16:39:32 -0000 1.25
+++ openacs-4/packages/acs-datetime/tcl/acs-calendar-procs.tcl 19 Jun 2015 19:52:03 -0000 1.26
@@ -445,16 +445,16 @@
set text [string toupper $viewlink 0]
if { $viewname == $view } {
# current view
- append result "
- $text
- |
- "
+ append result [subst {
+ $text
+ |
+ }]
} else {
- append result "
-
- $text
- |
- "
+ append result [subst {
+
+ $text
+ |
+ }]
}
}
@@ -507,27 +507,30 @@
set curr_year [clock format $now -format "%Y"]
- append result "
+ append result [subst {
-
-
- "
+ |
+
+
+ }]
# Serve arrow link to prev year if it leads to legal date
if {$prev_year_legal_p != 0} {
- append result "
-
- "
+ append result [subst {
+
+
+ }]
}
append result "
$curr_year"
# Serve arrow to next year if it leads to a legal date
if {$next_year_legal_p != 0} {
- append result "
-
- "
+ append result [subst {
+
+
+ }]
}
append result "
@@ -571,26 +574,29 @@
}
}
- append results "
- |
-
- "
+ append results [subst {
+ |
+
+
+ }]
# Output link to previous month only if it's legal
if {$prev_month_legal_p != 0} {
- append results "
-
- "
+ append results [subst {
+
+
+ }]
}
append results "
$curr_month"
# Output link to next month only if it's a legal month
if {$next_month_legal_p != 0} {
- append results "
-
- "
+ append results [subst {
+
+
+ }]
}
append results "
@@ -688,13 +694,15 @@
| \n"
} else {
set target_date [clock format \
- [clock scan "[expr {$i-$curr_month}] month" -base $now] -format "%Y-%m-%d"]
+ [clock scan "[expr {$i-$curr_month}] month" -base $now] \
+ -format "%Y-%m-%d"]
- append output "
+ append output [subst {
-
- $month
- | \n"
+
+ $month
+
+ }]
}
}
@@ -720,11 +728,12 @@
append output "
$year | \n"
} else {
- append output "
+ append output [subst {
-
- $year
- | \n"
+
+ $year
+
+ }]
}
}
@@ -738,15 +747,18 @@
-
+ |
"
set days_of_week [list S M T W T F S]
foreach day_of_week $days_of_week {
- append output "$day_of_week | \n"
+ append output [subst {
+ $day_of_week
+ |
+ }]
}
append output "
| "
@@ -782,22 +794,24 @@
}
if {$before_month_p || $after_month_p} {
- append output "
-
-
- $day_number
- | "
+ append output [subst {
+
+
+ $day_number
+ |
+ }]
} elseif {$julian_date == $julian_date_today} {
append output "
$day_number
| "
} else {
- append output "
-
-
- $day_number
- | "
+ append output [subst {
+
+
+ $day_number
+ |
+ }]
}
incr day_of_week
@@ -832,19 +846,20 @@
if { $view eq "day" && [dt_sysdate] == $date } {
append output "Today"
} else {
- append output "
- Today "
+ append output [subst {Today }]
}
- append output "
+ append output [subst {
is [dt_ansi_to_pretty]
-
- | | | | | |