Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
panikdb
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
radiopanik
panikdb
Commits
86bd3c7c
Commit
86bd3c7c
authored
Jun 28, 2014
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not display "view online" for objects that are not viewable
parent
e6be735c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
panikdb/customtags/templatetags/panikdbtags.py
panikdb/customtags/templatetags/panikdbtags.py
+1
-1
panikdb/templates/base.html
panikdb/templates/base.html
+1
-1
No files found.
panikdb/customtags/templatetags/panikdbtags.py
View file @
86bd3c7c
...
...
@@ -16,7 +16,7 @@ def online_url(object):
return
settings
.
WEBSITE_BASE_URL
+
'emissions/'
+
object
.
emission
.
slug
+
'/'
+
object
.
slug
if
isinstance
(
object
,
SoundFile
):
return
settings
.
WEBSITE_BASE_URL
+
'emissions/'
+
object
.
episode
.
emission
.
slug
+
'/'
+
object
.
episode
.
slug
return
'
#
'
return
''
@
register
.
filter
...
...
panikdb/templates/base.html
View file @
86bd3c7c
...
...
@@ -50,7 +50,7 @@
<a
href=
"{% url 'home' %}"
class=
"icon-home-space"
>
Accueil
</a>
<a
target=
"blank"
href=
"http://stats.radiopanik.org/index.php?module=Login&action=logme&login=panikdb&password=d48fb8e3a453d965901339e6b020538f"
class=
"icon-bar-chart"
>
Statistiques
</a>
{% block online-url %}
{% if object %}
{% if object
and object|online_url
%}
<a
href=
"{{ object|online_url }}"
target=
"blank"
class=
"icon-eye-open"
>
Voir en ligne
</a>
{% endif %}
{% endblock %}
...
...
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