Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
panikweb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
radiopanik
panikweb
Commits
d479c141
Commit
d479c141
authored
Sep 08, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make nonstop labels into links
parent
750cfe7a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
panikweb/views.py
panikweb/views.py
+4
-3
panikweb_templates/templates/emissions/nav.html
panikweb_templates/templates/emissions/nav.html
+1
-3
panikweb_templates/templates/grid.html
panikweb_templates/templates/grid.html
+2
-2
panikweb_templates/templates/includes/week.html
panikweb_templates/templates/includes/week.html
+1
-1
No files found.
panikweb/views.py
View file @
d479c141
...
...
@@ -184,15 +184,15 @@ class Grid(TemplateView):
if
nonstop
.
start
<
nonstop
.
end
:
nonstops
.
append
([
nonstop
.
start
.
hour
+
nonstop
.
start
.
minute
/
60.
,
nonstop
.
end
.
hour
+
nonstop
.
end
.
minute
/
60.
,
nonstop
.
title
])
nonstop
.
title
,
nonstop
.
slug
])
else
:
# crossing midnight
nonstops
.
append
([
nonstop
.
start
.
hour
+
nonstop
.
start
.
minute
/
60.
,
24
,
nonstop
.
title
])
nonstop
.
title
,
nonstop
.
slug
])
nonstops
.
append
([
0
,
nonstop
.
end
.
hour
+
nonstop
.
end
.
minute
/
60.
,
nonstop
.
title
])
nonstop
.
title
,
nonstop
.
slug
])
nonstops
.
sort
()
for
i
in
range
(
nb_lines
):
...
...
@@ -203,6 +203,7 @@ class Grid(TemplateView):
nonstop
=
[
x
for
x
in
nonstops
if
i
>=
x
[
0
]
*
2
and
i
<
x
[
1
]
*
2
][
0
]
for
time_cell
in
grid
[
-
1
]:
time_cell
.
nonstop
=
nonstop
[
2
]
time_cell
.
nonstop_slug
=
nonstop
[
3
]
if
nonstop
[
1
]
==
5
:
# the one ending at 5am will be cut down, so we inscribe
# its duration manually
...
...
panikweb_templates/templates/emissions/nav.html
View file @
d479c141
...
...
@@ -25,9 +25,7 @@
{% if categories %}
<nav
id=
"gridNav"
class=
"checkable"
>
<ul
class=
"by{{ categories.count }}"
>
{% if class = "grid" %}
<li><button
class=
"check icon-check-empty"
data-about=
"#Main"
data-highlight=
".nonstop"
></li>
{% elif class = "emissions" %}
{% if class = "emissions" %}
<li><button
class=
"check icon-check"
data-about=
"#Main"
data-toggle=
".nocat"
>
?
</button></li>
{% endif %}
{% for category in categories %}
...
...
panikweb_templates/templates/grid.html
View file @
d479c141
...
...
@@ -20,7 +20,7 @@
<tr>
<th
class=
"heure"
>
{{ time_header }}
</th>
{% for cell in time_cells %}
<td
class=
"small cell {% if cell.schedules|length > 1 %}many {% endif %}{% if cell.schedules %}scheduled{% else %}nonstop{% endif %}"
{%
if
cell.w
>
1 %}colspan="{{cell.w}}"{% endif %}
<td
class=
"small cell {% if cell.schedules|length > 1 %}many {% endif %}{% if cell.schedules %}scheduled{% else %}nonstop
musique-en-continu
{% endif %}"
{%
if
cell.w
>
1 %}colspan="{{cell.w}}"{% endif %}
{% if cell.h > 1 %}rowspan="{{cell.h}}"{% endif %}>
{% if cell.time_label %}
<div
class=
"time-label"
>
{{ cell.time_label }}
</div>
...
...
@@ -58,7 +58,7 @@
</div>
{% endfor %}
{% else %}
<div
class=
"continu"
><strong>
{{ cell }}
</strong></div>
<div
class=
"continu"
><strong><a
href=
"{% url 'emission-view' slug=cell.nonstop_slug %}"
>
{{ cell }}
</a>
</strong></div>
{% if cell.w > 1 and cell.h > 1%}
<p>
la musique en continu
</p>
{% endif %}
{% endif %}
</td>
...
...
panikweb_templates/templates/includes/week.html
View file @
d479c141
...
...
@@ -49,7 +49,7 @@
{% else %}
<em
class=
"block nonstop ellipsis"
>
<strong
class=
""
style=
"visibility:hidden;"
>
{{ cell.datetime|date:"H:i" }}
</strong>
<span>
{{ cell.label }}
</span>
<span>
<a
href=
"{% url 'emission-view' slug=cell.slug %}"
>
{{ cell.label }}
</a>
</span>
</em>
{% endif %}
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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