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
c04b1464
Commit
c04b1464
authored
Apr 18, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1309 (fix duplicate shelf names in book detail view)
parent
06fde4fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
detail.html
cps/templates/detail.html
+0
-22
No files found.
cps/templates/detail.html
View file @
c04b1464
...
@@ -225,18 +225,6 @@
...
@@ -225,18 +225,6 @@
<span
class=
"caret"
></span>
<span
class=
"caret"
></span>
</button>
</button>
<ul
id=
"add-to-shelves"
class=
"dropdown-menu"
aria-labelledby=
"add-to-shelf"
>
<ul
id=
"add-to-shelves"
class=
"dropdown-menu"
aria-labelledby=
"add-to-shelf"
>
{% for shelf in g.user.shelf %}
{% if not shelf.id in books_shelfs and shelf.is_public != 1 %}
<li>
<a
href=
"{{ url_for('shelf.add_to_shelf', book_id=entry.id, shelf_id=shelf.id) }}"
data-remove-href=
"{{ url_for('shelf.remove_from_shelf', book_id=entry.id, shelf_id=shelf.id) }}"
data-shelf-action=
"add"
>
{{shelf.name}}
</a>
</li>
{% endif %}
{%endfor%}
{% for shelf in g.shelves_access %}
{% for shelf in g.shelves_access %}
{% if not shelf.id in books_shelfs %}
{% if not shelf.id in books_shelfs %}
<li>
<li>
...
@@ -253,16 +241,6 @@
...
@@ -253,16 +241,6 @@
</div>
</div>
<div
id=
"remove-from-shelves"
class=
"btn-group"
role=
"group"
aria-label=
"Remove from shelves"
>
<div
id=
"remove-from-shelves"
class=
"btn-group"
role=
"group"
aria-label=
"Remove from shelves"
>
{% if books_shelfs %}
{% if books_shelfs %}
{% for shelf in g.user.shelf %}
{% if shelf.id in books_shelfs and shelf.is_public != 1 %}
<a
href=
"{{ url_for('shelf.remove_from_shelf', book_id=entry.id, shelf_id=shelf.id) }}"
data-add-href=
"{{ url_for('shelf.add_to_shelf', book_id=entry.id, shelf_id=shelf.id) }}"
class=
"btn btn-sm btn-default"
role=
"button"
data-shelf-action=
"remove"
>
<span
class=
"glyphicon glyphicon-remove"
></span>
{{shelf.name}}
</a>
{% endif %}
{%endfor%}
{% for shelf in g.shelves_access %}
{% for shelf in g.shelves_access %}
{% if shelf.id in books_shelfs %}
{% if shelf.id in books_shelfs %}
<a
href=
"{{ url_for('shelf.remove_from_shelf', book_id=entry.id, shelf_id=shelf.id) }}"
<a
href=
"{{ url_for('shelf.remove_from_shelf', book_id=entry.id, shelf_id=shelf.id) }}"
...
...
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