Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
84b14591
Commit
84b14591
authored
Aug 31, 2013
by
Simon Daron
Browse files
Episode/emission
parent
f5e01b7d
Changes
4
Hide whitespace changes
Inline
Side-by-side
panikweb/paniktags/templatetags/paniktags.py
View file @
84b14591
...
...
@@ -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
=
''
)
...
...
panikweb_templates/static/css/specifics.css
View file @
84b14591
...
...
@@ -39,7 +39,7 @@
padding
:
0.2em
0
0.2em
0
;
margin
:
0.2em
0
0.2em
0
;
}
#Main
.
l
abel
{
#Main
.
sectionL
abel
{
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
;
...
...
panikweb_templates/templates/emissions/detail.html
View file @
84b14591
{% 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>
panikweb_templates/templates/emissions/emission_detail.html
View file @
84b14591
...
...
@@ -14,12 +14,12 @@
{% endif %}
<div
data-tabbed=
"true"
id=
"Emission-tabs-default"
>
<div
id=
"Emission-tabs-detail"
>
<h5
class=
"
l
abel"
>
A propos
</h5>
<h5
class=
"
sectionL
abel"
>
A propos
</h5>
{% emission_detail %}
</div>
{% if episodes %}
<div
id=
"Emission-tabs-last"
class=
"episodes"
>
<h5
class=
"
l
abel"
>
Derniers épisodes
</h5>
<h5
class=
"
sectionL
abel"
>
Derniers épisodes
</h5>
{% with episodes|slice:"0:3" as episodes %}
{% for episode in episodes %}
<div
class=
"legend"
>
{{ episode.first_diffusion|date:"F Y" }}
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment