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
9ef70565
Commit
9ef70565
authored
May 13, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Access pages with stored order per default (#1987)
Fix for toggle-text of enable-sort button on shelf page
parent
c6dadbe7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
main.js
cps/static/js/main.js
+1
-1
detail.html
cps/templates/detail.html
+4
-4
grid.html
cps/templates/grid.html
+2
-2
list.html
cps/templates/list.html
+1
-1
No files found.
cps/static/js/main.js
View file @
9ef70565
...
...
@@ -533,7 +533,7 @@ $(function() {
$
(
"#pub_new"
).
toggleClass
(
"disabled"
);
$
(
"#pub_old"
).
toggleClass
(
"disabled"
);
var
alternative_text
=
$
(
"#toggle_order_shelf"
).
data
(
'alt-text'
);
$
(
"#toggle_order_shelf"
)
[
0
].
attributes
[
'data-alt-text'
].
value
=
$
(
"#toggle_order_shelf"
).
html
(
);
$
(
"#toggle_order_shelf"
)
.
data
(
'alt-text'
,
$
(
"#toggle_order_shelf"
).
html
()
);
$
(
"#toggle_order_shelf"
).
html
(
alternative_text
);
});
...
...
cps/templates/detail.html
View file @
9ef70565
...
...
@@ -100,7 +100,7 @@
<h2
id=
"title"
>
{{entry.title}}
</h2>
<p
class=
"author"
>
{% for author in entry.authors %}
<a
href=
"{{url_for('web.books_list', data='author', sort_param='
new
', book_id=author.id ) }}"
>
{{author.name.replace('|',',')}}
</a>
<a
href=
"{{url_for('web.books_list', data='author', sort_param='
stored
', book_id=author.id ) }}"
>
{{author.name.replace('|',',')}}
</a>
{% if not loop.last %}
&
{% endif %}
...
...
@@ -122,7 +122,7 @@
{% endif %}
{% if entry.series|length > 0 %}
<p>
{{_('Book')}} {{entry.series_index}} {{_('of')}}
<a
href=
"{{url_for('web.books_list', data='series', sort_param='
abc
', book_id=entry.series[0].id)}}"
>
{{entry.series[0].name}}
</a></p>
<p>
{{_('Book')}} {{entry.series_index}} {{_('of')}}
<a
href=
"{{url_for('web.books_list', data='series', sort_param='
stored
', book_id=entry.series[0].id)}}"
>
{{entry.series[0].name}}
</a></p>
{% endif %}
{% if entry.languages.__len__() > 0 %}
...
...
@@ -151,7 +151,7 @@
<span
class=
"glyphicon glyphicon-tags"
></span>
{% for tag in entry.tags %}
<a
href=
"{{ url_for('web.books_list', data='category', sort_param='
new
', book_id=tag.id) }}"
class=
"btn btn-xs btn-info"
role=
"button"
>
{{tag.name}}
</a>
<a
href=
"{{ url_for('web.books_list', data='category', sort_param='
stored
', book_id=tag.id) }}"
class=
"btn btn-xs btn-info"
role=
"button"
>
{{tag.name}}
</a>
{%endfor%}
</p>
...
...
@@ -162,7 +162,7 @@
<div
class=
"publishers"
>
<p>
<span>
{{_('Publisher')}}:
<a
href=
"{{url_for('web.books_list', data='publisher', sort_param='
new
', book_id=entry.publishers[0].id ) }}"
>
{{entry.publishers[0].name}}
</a>
<a
href=
"{{url_for('web.books_list', data='publisher', sort_param='
stored
', book_id=entry.publishers[0].id ) }}"
>
{{entry.publishers[0].name}}
</a>
</span>
</p>
</div>
...
...
cps/templates/grid.html
View file @
9ef70565
...
...
@@ -27,7 +27,7 @@
{% for entry in entries %}
<div
class=
"col-sm-3 col-lg-2 col-xs-6 book sortable"
{%
if
entry
[
0
].
sort
%}
data-name=
"{{entry[0].series[0].name}}"
{%
endif
%}
data-id=
"{% if entry[0].series[0].name %}{{entry[0].series[0].name}}{% endif %}"
>
<div
class=
"cover"
>
<a
href=
"{{url_for('web.books_list', data=data, sort_param='
new
', book_id=entry[0].series[0].id )}}"
>
<a
href=
"{{url_for('web.books_list', data=data, sort_param='
stored
', book_id=entry[0].series[0].id )}}"
>
<span
class=
"img"
>
<img
src=
"{{ url_for('web.get_cover', book_id=entry[0].id) }}"
alt=
"{{ entry[0].name }}"
/>
<span
class=
"badge"
>
{{entry.count}}
</span>
...
...
@@ -35,7 +35,7 @@
</a>
</div>
<div
class=
"meta"
>
<a
href=
"{{url_for('web.books_list', data=data, sort_param='
new
', book_id=entry[0].series[0].id )}}"
>
<a
href=
"{{url_for('web.books_list', data=data, sort_param='
stored
', book_id=entry[0].series[0].id )}}"
>
<p
class=
"title"
>
{{entry[0].series[0].name|shortentitle}}
</p>
</a>
</div>
...
...
cps/templates/list.html
View file @
9ef70565
...
...
@@ -32,7 +32,7 @@
{% endif %}
<div
class=
"row"
{%
if
entry
[
0
].
sort
%}
data-name=
"{{entry[0].name}}"
{%
endif
%}
data-id=
"{% if entry[0].sort %}{{entry[0].sort}}{% else %}{% if entry.name %}{{entry.name}}{% else %}{{entry[0].name}}{% endif %}{% endif %}"
>
<div
class=
"col-xs-2 col-sm-2 col-md-1"
align=
"left"
><span
class=
"badge"
>
{{entry.count}}
</span></div>
<div
class=
"col-xs-10 col-sm-10 col-md-11"
><a
id=
"list_{{loop.index0}}"
href=
"{% if entry.format %}{{url_for('web.books_list', data=data, sort_param='
new', book_id=entry.format )}}{% else %}{{url_for('web.books_list', data=data, sort_param='new
', book_id=entry[0].id )}}{% endif %}"
>
<div
class=
"col-xs-10 col-sm-10 col-md-11"
><a
id=
"list_{{loop.index0}}"
href=
"{% if entry.format %}{{url_for('web.books_list', data=data, sort_param='
stored', book_id=entry.format )}}{% else %}{{url_for('web.books_list', data=data, sort_param='stored
', book_id=entry[0].id )}}{% endif %}"
>
{% if entry.name %}
<div
class=
"rating"
>
{% for number in range(entry.name) %}
...
...
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