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
ada727a5
Commit
ada727a5
authored
Oct 19, 2019
by
Kyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds Authors, Series and Book Cover to the shelf order view
parent
0c40e40d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
style.css
cps/static/css/style.css
+1
-0
shelf_order.html
cps/templates/shelf_order.html
+23
-2
No files found.
cps/static/css/style.css
View file @
ada727a5
...
@@ -64,6 +64,7 @@ span.glyphicon.glyphicon-tags {padding-right: 5px;color: #999;vertical-align: te
...
@@ -64,6 +64,7 @@ span.glyphicon.glyphicon-tags {padding-right: 5px;color: #999;vertical-align: te
.navbar-default
.navbar-toggle
.icon-bar
{
background-color
:
#000
;}
.navbar-default
.navbar-toggle
.icon-bar
{
background-color
:
#000
;}
.navbar-default
.navbar-toggle
{
border-color
:
#000
;}
.navbar-default
.navbar-toggle
{
border-color
:
#000
;}
.cover
{
margin-bottom
:
10px
;}
.cover
{
margin-bottom
:
10px
;}
.cover-heigh
{
max-height
:
100px
;}
.btn-file
{
position
:
relative
;
overflow
:
hidden
;}
.btn-file
{
position
:
relative
;
overflow
:
hidden
;}
.btn-file
input
[
type
=
file
]
{
position
:
absolute
;
top
:
0
;
right
:
0
;
min-width
:
100%
;
min-height
:
100%
;
font-size
:
100px
;
text-align
:
right
;
filter
:
alpha
(
opacity
=
0
);
opacity
:
0
;
outline
:
none
;
background
:
white
;
cursor
:
inherit
;
display
:
block
;}
.btn-file
input
[
type
=
file
]
{
position
:
absolute
;
top
:
0
;
right
:
0
;
min-width
:
100%
;
min-height
:
100%
;
font-size
:
100px
;
text-align
:
right
;
filter
:
alpha
(
opacity
=
0
);
opacity
:
0
;
outline
:
none
;
background
:
white
;
cursor
:
inherit
;
display
:
block
;}
...
...
cps/templates/shelf_order.html
View file @
ada727a5
{% extends "layout.html" %}
{% extends "layout.html" %}
{% block body %}
{% block body %}
<div
class=
"col-sm-
6 col-lg-6 col-xs-6
"
>
<div
class=
"col-sm-
8 col-lg-8 col-xs-12
"
>
<h2>
{{title}}
</h2>
<h2>
{{title}}
</h2>
<div>
{{_('Drag \'n drop to rearrange order')}}
</div>
<div>
{{_('Drag \'n drop to rearrange order')}}
</div>
<div
id=
"sortTrue"
class=
"list-group"
>
<div
id=
"sortTrue"
class=
"list-group"
>
{% for entry in entries %}
{% for entry in entries %}
<div
id=
"{{entry.id}}"
class=
"list-group-item"
>
{{entry.title}}
</div>
<div
id=
"{{entry.id}}"
class=
"list-group-item"
>
<div
class=
"row"
>
<div
class=
"col-lg-4 col-sm-4 hidden-xs"
>
<img
class=
"cover-heigh"
src=
"{{ url_for('web.get_cover', book_id=entry.id) }}"
>
</div>
<div
class=
"col-lg-8 col-sm-8 col-xs-12"
>
{{entry.title}}
{% if entry.series|length > 0 %}
<br>
{{entry.series_index}} - {{entry.series[0].name}}
{% endif %}
<br>
{% for author in entry.authors %}
{{author.name.replace('|',',')}}
{% if not loop.last %}
&
{% endif %}
{% endfor %}
</div>
</div>
<div
style=
"clear:both;"
></div>
</div>
{% endfor %}
{% endfor %}
</div>
</div>
<button
onclick=
"sendData('{{ url_for('shelf.order_shelf', shelf_id=shelf.id) }}')"
class=
"btn btn-default"
id=
"ChangeOrder"
>
{{_('Change order')}}
</button>
<button
onclick=
"sendData('{{ url_for('shelf.order_shelf', shelf_id=shelf.id) }}')"
class=
"btn btn-default"
id=
"ChangeOrder"
>
{{_('Change order')}}
</button>
...
...
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