From 887e6949c0501aadb8f8f9f2d13eee078645e476 Mon Sep 17 00:00:00 2001 From: Piotr Dobrowolski Date: Sun, 8 Oct 2017 22:39:47 +0200 Subject: [PATCH] Table placeholder styling --- static/css/custom.css | 11 +++++++++++ storage/templates/item.html | 11 ++++++----- templates/base.html | 1 + 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 static/css/custom.css diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..00c5657 --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,11 @@ +.table td.placeholder { + text-align: center; + color: #999; +} + +.table td.placeholder a { + display: block; + text-decoration: none; + color: inherit; + font-weight: bold; +} diff --git a/storage/templates/item.html b/storage/templates/item.html index e74dbd2..fc14b22 100644 --- a/storage/templates/item.html +++ b/storage/templates/item.html @@ -45,7 +45,7 @@ {% for k, v in item.props.items %} {{ k }}{{ v|urlize }} {% empty %} - No properties + No properties {% endfor %} @@ -80,11 +80,12 @@ {% for child in children|dictsort:"name" %} - {% empty %} - {% endfor %} -
{{ child.name }}
No children
- +
+ + + Add child +
diff --git a/templates/base.html b/templates/base.html index 12c9731..27a713e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,6 +7,7 @@ + {% block body %}