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 { + + left arrow + }] } 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 { + + right arrow + }] } append result " @@ -571,26 +574,29 @@ } } - append results " -
- -
" + append results [subst { +
+ + \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 { \n" + + $month + + }] } } @@ -720,11 +728,12 @@ append output " \n" } else { - append output " + append output [subst { \n" + + $year + + }] } } @@ -738,15 +747,18 @@ -
+ }] # Output link to previous month only if it's legal if {$prev_month_legal_p != 0} { - append results " - - " + append results [subst { + + left arrow + }] } 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 @@ - - $month - $year - - $year -
+
" set days_of_week [list S M T W T F S] foreach day_of_week $days_of_week { - append output "\n" + append output [subst { + + }] } append output "" @@ -782,22 +794,24 @@ } if {$before_month_p || $after_month_p} { - append output " - " + append output [subst { + + }] } elseif {$julian_date == $julian_date_today} { append output " " } else { - append output " - " + append output [subst { + + }] } 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] -
$day_of_week$day_of_week +

- - $day_number - + + $day_number + $day_number - - $day_number - + + $day_number +

-
-
-
Date as YYYYMMDD - -
- " +

+ +
+ +
+ Date as YYYYMMDD + +
+ }] foreach var $list_of_vars { append output ""