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
14bc3458
Commit
14bc3458
authored
Nov 14, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'audio/fix-audio-icon' into master
parents
d76b4fd7
50441bae
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 @
14bc3458
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% for format in entry.data %}
{% 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>
<span
class=
"glyphicon glyphicon-music"
></span>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
...
...
cps/templates/index.html
View file @
14bc3458
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% for format in entry.data %}
{% 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>
<span
class=
"glyphicon glyphicon-music"
></span>
{% endif %}
{% endif %}
{%endfor%}
{%endfor%}
...
...
cps/templates/search.html
View file @
14bc3458
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% for format in entry.data %}
{% 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>
<span
class=
"glyphicon glyphicon-music"
></span>
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
...
...
cps/web.py
View file @
14bc3458
...
@@ -293,6 +293,7 @@ def edit_required(f):
...
@@ -293,6 +293,7 @@ def edit_required(f):
def
before_request
():
def
before_request
():
if
current_user
.
is_authenticated
:
if
current_user
.
is_authenticated
:
confirm_login
()
confirm_login
()
g
.
constants
=
constants
g
.
user
=
current_user
g
.
user
=
current_user
g
.
allow_registration
=
config
.
config_public_reg
g
.
allow_registration
=
config
.
config_public_reg
g
.
allow_anonymous
=
config
.
config_anonbrowse
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