diff --git a/media/css/style.scss b/media/css/style.scss index c8f1e9d..12b826e 100644 --- a/media/css/style.scss +++ b/media/css/style.scss @@ -970,6 +970,15 @@ div.profile { } } } +div.empty-snipts { + background: rgba(128, 128, 128, .15); + font: bold 18px $Helvetica; + margin: 30px 15px 0 15px; + padding: 10px; + text-align: center; + text-shadow: 0 1px 1px #FFF; + @include border-radius(8px); +} // Pages body.detail { diff --git a/snipts/templates/snipts/list.html b/snipts/templates/snipts/list.html index 24eb502..c837af2 100644 --- a/snipts/templates/snipts/list.html +++ b/snipts/templates/snipts/list.html @@ -14,6 +14,10 @@ {% autopaginate snipts 20 %} {% for snipt in snipts %} {% include "snipts/snipt-list.html" %} + {% empty %} +
+ {{ user.username }} has no public snipts. +
{% endfor %} {% paginate %}