From bd5a7c4e3216e7fcc1df4b004133f6bad8410224 Mon Sep 17 00:00:00 2001 From: Jan-Yves Ruzicka Date: Mon, 1 Aug 2016 17:18:49 +0100 Subject: [PATCH] Fix some display problems --- HISTORY.md | 5 +++++ lib/omniboard/templates/column.erb | 2 +- lib/omniboard/templates/postamble.erb | 4 ++-- lib/omniboard/templates/preamble.erb | 11 +++++++++++ version.txt | 2 +- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index bbc525a..3147e92 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,8 @@ +# 1.0.1 // 2016-08-01 + +* [Fix] Fixing CDATA tags within javascript - allows me to parse as XHTML while keeping JS all good. +* [Fix] Improved display of column header numbers. + # 1.0.0 // 2016-07-08 Hopefully integrating all the little changes, bugfixes, and modifications that I've wanted to do for a while. diff --git a/lib/omniboard/templates/column.erb b/lib/omniboard/templates/column.erb index ff0a2ac..1b04d9f 100644 --- a/lib/omniboard/templates/column.erb +++ b/lib/omniboard/templates/column.erb @@ -1,10 +1,10 @@

<%=column%>

- <% if column.display_project_counts %><%= column.count_div %><% end %> <% if column.filter_button %> " /> <% end %> + <% if column.property(:display_project_counts) != nil %><%= column.count_div %><% end %>
<%if column.can_be_grouped? %> <% column.groups.each do |group| %> diff --git a/lib/omniboard/templates/postamble.erb b/lib/omniboard/templates/postamble.erb index b7f41a4..b836cb4 100644 --- a/lib/omniboard/templates/postamble.erb +++ b/lib/omniboard/templates/postamble.erb @@ -22,7 +22,7 @@ \ No newline at end of file diff --git a/lib/omniboard/templates/preamble.erb b/lib/omniboard/templates/preamble.erb index 54bc667..589de20 100644 --- a/lib/omniboard/templates/preamble.erb +++ b/lib/omniboard/templates/preamble.erb @@ -85,6 +85,17 @@ align-items: center; } + .column-total { + font-size: 1.2rem; + padding: 0 2ex; + font-weight: bold; + color: #666; + } + + .column-total.limit-breached { + color: #F33; + } + .filter-button { opacity: 0.5; height: 2em; diff --git a/version.txt b/version.txt index 3eefcb9..7dea76e 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.0 +1.0.1