Commit 84b14591 authored by Simon Daron's avatar Simon Daron

Episode/emission

parent f5e01b7d
......@@ -123,6 +123,19 @@ def jsonify(object):
return serialize('json', object)
return simplejson.dumps(object)
@register.filter
def strreplace ( string, args ):
find = args.split(',')[0]
replace = args.split(',')[1]
return string.replace(find,replace)
@register.filter
def replace ( string, args ):
search = args.split(args[0])[1]
replace = args.split(args[0])[2]
return re.sub( search, replace, string )
@register.filter
def remove_tag_facet(url, facet):
facet = urllib2.quote(facet.encode('utf-8'), safe='')
......
......@@ -39,7 +39,7 @@
padding: 0.2em 0 0.2em 0;
margin: 0.2em 0 0.2em 0;
}
#Main .label{
#Main .sectionLabel{
color:#003446;
border-left:1.5em solid #003446;
border-bottom:2px solid #003446;
......@@ -65,7 +65,7 @@
.symbol.big{ font-size: 400%;}
.symbol.huge{ font-size: 800%;}
.label {
.sectionLabel, .label {
text-transform: uppercase;
font-family: "Reglo";
letter-spacing:1px;
......
{% load i18n %}
{% load paniktags %}
<div class="emission emission-detail cf">
<div class="metas">
{% if schedules %}
......@@ -19,12 +20,6 @@
{{ emission.description|safe|striptags }}
</div>
{% endif %}
{% if emission.email %}
<div class="email ellipsis">{{ emission.email}}</div>
{% endif %}
{% if emission.website %}
<div class="contact ellipsis"><a href="{{ emission.website}}">{{ emission.website}}</a></div>
{% endif %}
</div>
{% if emission.image %}
......@@ -36,5 +31,11 @@
{{ emission.text|safe}}
</article>
{% endif %}
{% if emission.email %}
<div class="email ellipsis">{{ emission.email|strreplace:"@, (AT) "}}</div>
{% endif %}
{% if emission.website %}
<div class="contact ellipsis"><a href="{{ emission.website}}">{{ emission.website}}</a></div>
{% endif %}
</div>
......@@ -14,12 +14,12 @@
{% endif %}
<div data-tabbed="true" id="Emission-tabs-default">
<div id="Emission-tabs-detail">
<h5 class="label">A propos</h5>
<h5 class="sectionLabel">A propos</h5>
{% emission_detail %}
</div>
{% if episodes %}
<div id="Emission-tabs-last" class="episodes">
<h5 class="label">Derniers épisodes</h5>
<h5 class="sectionLabel">Derniers épisodes</h5>
{% with episodes|slice:"0:3" as episodes %}
{% for episode in episodes %}
<div class="legend">{{ episode.first_diffusion|date:"F Y" }}</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment