Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
50441bae
Commit
50441bae
authored
Nov 10, 2020
by
verglor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missing audio icon for other audio formats than mp3
parent
87d60308
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
author.html
cps/templates/author.html
+1
-1
index.html
cps/templates/index.html
+1
-1
search.html
cps/templates/search.html
+1
-1
web.py
cps/web.py
+1
-0
No files found.
cps/templates/author.html
View file @
50441bae
...
...
@@ -65,7 +65,7 @@
{% endif %}
{% endfor %}
{% for format in entry.data %}
{% if format.format|lower
== 'mp3'
%}
{% if format.format|lower
in g.constants.EXTENSIONS_AUDIO
%}
<span
class=
"glyphicon glyphicon-music"
></span>
{% endif %}
{% endfor %}
...
...
cps/templates/index.html
View file @
50441bae
...
...
@@ -104,7 +104,7 @@
{% endif %}
{% endfor %}
{% for format in entry.data %}
{% if format.format|lower
== 'mp3'
%}
{% if format.format|lower
in g.constants.EXTENSIONS_AUDIO
%}
<span
class=
"glyphicon glyphicon-music"
></span>
{% endif %}
{%endfor%}
...
...
cps/templates/search.html
View file @
50441bae
...
...
@@ -67,7 +67,7 @@
{% endif %}
{% endfor %}
{% for format in entry.data %}
{% if format.format|lower
== 'mp3'
%}
{% if format.format|lower
in g.constants.EXTENSIONS_AUDIO
%}
<span
class=
"glyphicon glyphicon-music"
></span>
{% endif %}
{% endfor %}
...
...
cps/web.py
View file @
50441bae
...
...
@@ -293,6 +293,7 @@ def edit_required(f):
def
before_request
():
if
current_user
.
is_authenticated
:
confirm_login
()
g
.
constants
=
constants
g
.
user
=
current_user
g
.
allow_registration
=
config
.
config_public_reg
g
.
allow_anonymous
=
config
.
config_anonbrowse
...
...
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