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
bb38dac0
Commit
bb38dac0
authored
Aug 22, 2013
by
Simon Daron
Browse files
Small fixes
parent
da894426
Changes
4
Hide whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
bb38dac0
...
...
@@ -160,7 +160,7 @@ class Home(TemplateView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
Home
,
self
).
get_context_data
(
**
kwargs
)
context
[
'news'
]
=
NewsItem
.
objects
.
all
().
exclude
(
image__isnull
=
True
).
exclude
(
image__exact
=
''
).
order_by
(
'-datetime'
)[:
5
]
context
[
'emissions'
]
=
Emission
.
objects
.
filter
(
archived
=
False
).
order_by
(
'
?
'
)
context
[
'emissions'
]
=
Emission
.
objects
.
filter
(
archived
=
False
).
order_by
(
'
title
'
)
context
[
'player'
]
=
audioPlayer
()
return
context
...
...
panikweb_templates/templates/emissions/emission_detail.html
View file @
bb38dac0
{% extends "base.html" %}
{% block bodyID %}Emissions{% endblock %}
{% block listen %}{% endblock %}
{% block main %}
<div
id=
"Emission"
class=
"wrapper futurtabs"
>
<!--
...
...
panikweb_templates/templates/emissions/inline.html
View file @
bb38dac0
...
...
@@ -13,7 +13,7 @@
<button
class=
"control symbol add"
>
B
</button>
</div>
{% endif %}
<a
class=
"link"
href=
"
#
"
>
<a
class=
"link"
href=
"
{% url 'emission-view' slug=emission.slug %}
"
>
<h5
class=
"title ellipsis"
>
{{ emission.title }}
</h5>
{% if emission.description %}
...
...
panikweb_templates/templates/home.html
View file @
bb38dac0
...
...
@@ -31,7 +31,9 @@
<div
class=
"wrapper"
>
<ul
class=
"custom list columns"
>
{% for emission in emissions %}
<li
class=
"item"
>
{% include "emissions/inline.html" %}
</li>
<li
class=
"item"
>
<a
href=
"{% url 'emission-view' slug=emission.slug %}"
>
{{ emission.title }}
</a>
</li>
{% endfor %}
</ul>
</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