Better date separator rendering

Split up long string

(imported from commit 51bab3cbb2d77f0e130d6bb0d486f2d7feba0909)
This commit is contained in:
Allen Rabinovich
2013-09-10 09:40:31 -07:00
parent 8d67fc2775
commit 3560ecf429
2 changed files with 17 additions and 10 deletions

View File

@@ -66,7 +66,9 @@ function maybe_add_update_list_entry (needs_update, id, time, time_above) {
function render_date_span(elem, time_str, time_above_str) {
elem.text("");
if (time_above_str !== undefined) {
return elem.append("▲ " + time_above_str + " ▲").append($("<hr />")).append("▼ " + time_str + " ▼");
return elem.append('<i class="date-direction icon-vector-caret-up"></i>' +
time_above_str).append($('<hr class="date-line">')).append('<i class="date-direction icon-vector-caret-down"></i>'
+ time_str);
} else {
return elem.append(time_str);
}