From c9302475ec47478ee300e8d7b6d92c559ff277bd Mon Sep 17 00:00:00 2001 From: laron Date: Wed, 14 Aug 2013 22:15:26 +0200 Subject: [PATCH] teInline emissions add text cutted as default description --- panikweb_templates/static/css/style.less | 10 ++++++++++ panikweb_templates/templates/emissions/detail.html | 4 ++-- panikweb_templates/templates/emissions/inline.html | 10 +++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/panikweb_templates/static/css/style.less b/panikweb_templates/static/css/style.less index eb9d689..c67f5a1 100644 --- a/panikweb_templates/static/css/style.less +++ b/panikweb_templates/static/css/style.less @@ -352,6 +352,16 @@ a, .menuEmissions a, a:visited, .menuEmissions a:visited, a:active, .menuEmissio .emission .control .listen{ line-height:5em; } +.emission .URL{ + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} +.emission .contact{ + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} .emission .mainHeader { overflow: hidden; diff --git a/panikweb_templates/templates/emissions/detail.html b/panikweb_templates/templates/emissions/detail.html index 68d0f29..7bac3e3 100644 --- a/panikweb_templates/templates/emissions/detail.html +++ b/panikweb_templates/templates/emissions/detail.html @@ -30,8 +30,8 @@ {{ emission.description|safe|striptags }} {% endif %} - - +
http://www.lecroissantfertile.com
+
info@lecroissantfertile.com
diff --git a/panikweb_templates/templates/emissions/inline.html b/panikweb_templates/templates/emissions/inline.html index a7c83e1..0605193 100644 --- a/panikweb_templates/templates/emissions/inline.html +++ b/panikweb_templates/templates/emissions/inline.html @@ -15,9 +15,13 @@
{{ emission.title }}
{% if emission.description %} -
- {{ emission.description|safe|striptags }} -
+
+ {{ emission.description|safe|striptags }} +
+ {% elif emission.text %} +
+ {{ emission.text|safe|striptags|truncatewords:20}} +
{% endif %} -- 2.39.2