diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-18 14:12:32 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-01-18 14:12:32 +0100 |
commit | 6daf33e9787a84e60d4b0912b146be0a32c9993c (patch) | |
tree | 9990d24f852865d37bbc79b9d7dd3c85d7a49109 | |
parent | 9604ccb548382323f9e57b419818bcfaa332559b (diff) |
add descriptive text
-rw-r--r-- | default.css | 5 | ||||
-rw-r--r-- | timepollhead.rb | 13 |
2 files changed, 15 insertions, 3 deletions
diff --git a/default.css b/default.css index 98d4a38..d81ce4f 100644 --- a/default.css +++ b/default.css @@ -193,16 +193,17 @@ html { } .textcolumn, .shorttextcolumn{ - text-align: justify; line-height: 1.4em; } .textcolumn{ + text-align: left; max-width: 45em; } .shorttextcolumn{ - max-width: 20em; + text-align: justify; + max-width: 18em; } .hint{ font-size:small; diff --git a/timepollhead.rb b/timepollhead.rb index bbbbe99..7119111 100644 --- a/timepollhead.rb +++ b/timepollhead.rb @@ -215,7 +215,11 @@ class TimePollHead startdate = Date.parse("#{Date.today.year}-#{Date.today.month}-1") end ret = <<END + <table summary='edit column'><tr><td style="vertical-align:top"> +<div class='shorttextcolumn'> +Click on the dates to add or remove columns. +</div> <table class='calendarday' summary='The day to vote for.'><tr> END def navi val,curmonth,revision @@ -279,7 +283,14 @@ END ########################### ret += "<td style='vertical-align:top'>" if col_size > 0 - ret += "<table class='calendarday' summary='The concrete timeslot'><tr>" + ret += <<END +<div class='shorttextcolumn'> +Optional:<br/> +Enter a concrete value as start time. +</div> +<table class='calendarday' summary='The concrete timeslot'> +<tr> +END head_count("%Y-%m",true).each{|title,count| year,month = title.split("-").collect{|e| e.to_i} |