From 8a37baba14bc00d782fb6701d1f32e1687f10305 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 24 Nov 2017 14:02:39 -0800 Subject: [PATCH] Much tidier design for table view header Closes #147 --- datasette/static/app.css | 7 +++++++ datasette/templates/table.html | 18 +++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/datasette/static/app.css b/datasette/static/app.css index f057ef1d..d3625b96 100644 --- a/datasette/static/app.css +++ b/datasette/static/app.css @@ -210,3 +210,10 @@ form input[type=submit] { margin-top: 0.6em; } } + +a.not-underlined { + text-decoration: none; +} +.not-underlined .underlined { + text-decoration: underline; +} diff --git a/datasette/templates/table.html b/datasette/templates/table.html index aba8b1e1..572a8819 100644 --- a/datasette/templates/table.html +++ b/datasette/templates/table.html @@ -1,6 +1,7 @@ {% extends "base.html" %} -{% block title %}{{ database }}: {{ table }}{% endblock %} +{% block title %}{{ database }}: {{ table }}: {% if filtered_table_rows or filtered_table_rows == 0 %}{{ "{:,}".format(filtered_table_rows) }} row{% if filtered_table_rows == 1 %}{% else %}s{% endif %}{% endif %} + {% if human_filter_description %}where {{ human_filter_description }}{% endif %}{% endblock %} {% block extra_head %}