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
af4f7396
Commit
af4f7396
authored
Oct 12, 2015
by
Jan Broer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix titles and covers
parent
b4390c8b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
style.css
cps/static/css/style.css
+1
-1
layout.html
cps/templates/layout.html
+1
-1
web.py
cps/web.py
+1
-1
No files found.
cps/static/css/style.css
View file @
af4f7396
...
@@ -8,7 +8,7 @@ a{color: #45b29d}a:hover{color: #444;}
...
@@ -8,7 +8,7 @@ a{color: #45b29d}a:hover{color: #444;}
.container-fluid
img
{
display
:
block
;
max-width
:
100%
;
height
:
auto
}
.container-fluid
img
{
display
:
block
;
max-width
:
100%
;
height
:
auto
}
.container-fluid
.discover
{
margin-bottom
:
50px
}
.container-fluid
.discover
{
margin-bottom
:
50px
}
.container-fluid
.new-books
{
border-top
:
1px
solid
#ccc
}
.container-fluid
.new-books
h2
{
margin
:
50px
0
0
0
}
.container-fluid
.new-books
{
border-top
:
1px
solid
#ccc
}
.container-fluid
.new-books
h2
{
margin
:
50px
0
0
0
}
.container-fluid
.book
{
margin-top
:
20px
}
.container-fluid
.book
.cover
{
height
:
225px
;
position
:
relative
}
.container-fluid
.book
.cover
img
{
border
:
1px
solid
#ccc
;
border-radius
:
5px
;
box-sizeing
:
border-box
;
height
:
100%
;
width
:
100%
;
bottom
:
0
;
position
:
absolute
}
.container-fluid
.book
{
margin-top
:
20px
}
.container-fluid
.book
.cover
{
height
:
225px
;
position
:
relative
}
.container-fluid
.book
.cover
img
{
border
:
1px
solid
#ccc
;
border-radius
:
5px
;
box-sizeing
:
border-box
;
height
:
100%
;
bottom
:
0
;
position
:
absolute
}
.container-fluid
.book
.meta
{
margin-top
:
10px
}
.container-fluid
.book
.meta
p
{
margin
:
0
}
.container-fluid
.book
.meta
{
margin-top
:
10px
}
.container-fluid
.book
.meta
p
{
margin
:
0
}
.container-fluid
.book
.meta
.title
{
font-weight
:
bold
;
font-size
:
16px
;
color
:
#444
}
.container-fluid
.book
.meta
.title
{
font-weight
:
bold
;
font-size
:
16px
;
color
:
#444
}
.container-fluid
.book
.meta
.author
{
font-size
:
12px
;
color
:
#999
}
.container-fluid
.book
.meta
.author
{
font-size
:
12px
;
color
:
#999
}
...
...
cps/templates/layout.html
View file @
af4f7396
...
@@ -79,8 +79,8 @@
...
@@ -79,8 +79,8 @@
<nav
class=
"navigation"
>
<nav
class=
"navigation"
>
<ul
class=
"list-unstyled"
id=
"scnd-nav"
intent
in-standard-append=
"nav.navigation"
in-mobile-after=
"#main-nav"
in-mobile-class=
"nav navbar-nav"
>
<ul
class=
"list-unstyled"
id=
"scnd-nav"
intent
in-standard-append=
"nav.navigation"
in-mobile-after=
"#main-nav"
in-mobile-class=
"nav navbar-nav"
>
<li
class=
"nav-head hidden-xs"
>
Browse
</li>
<li
class=
"nav-head hidden-xs"
>
Browse
</li>
<li><a
href=
"{{url_for('hot_books')}}"
><span
class=
"glyphicon glyphicon-fire"
></span>
Hot Books
</a></li>
<li><a
href=
"{{url_for('index')}}"
><span
class=
"glyphicon glyphicon-book"
></span>
New Books
</a></li>
<li><a
href=
"{{url_for('index')}}"
><span
class=
"glyphicon glyphicon-book"
></span>
New Books
</a></li>
<li><a
href=
"{{url_for('hot_books')}}"
><span
class=
"glyphicon glyphicon-fire"
></span>
Hot Books
</a></li>
<li><a
href=
"{{url_for('discover')}}"
><span
class=
"glyphicon glyphicon-random"
></span>
Discover
</a></li>
<li><a
href=
"{{url_for('discover')}}"
><span
class=
"glyphicon glyphicon-random"
></span>
Discover
</a></li>
<li><a
href=
"{{url_for('category_list')}}"
><span
class=
"glyphicon glyphicon-inbox"
></span>
Categories
</a></li>
<li><a
href=
"{{url_for('category_list')}}"
><span
class=
"glyphicon glyphicon-inbox"
></span>
Categories
</a></li>
<li><a
href=
"{{url_for('author_list')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
Authors
</a></li>
<li><a
href=
"{{url_for('author_list')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
Authors
</a></li>
...
...
cps/web.py
View file @
af4f7396
...
@@ -185,7 +185,7 @@ def hot_books(page):
...
@@ -185,7 +185,7 @@ def hot_books(page):
entries
.
append
(
db
.
session
.
query
(
db
.
Books
)
.
filter
(
db
.
Books
.
id
==
book
.
Downloads
.
book_id
)
.
first
())
entries
.
append
(
db
.
session
.
query
(
db
.
Books
)
.
filter
(
db
.
Books
.
id
==
book
.
Downloads
.
book_id
)
.
first
())
pagination
=
Pagination
(
page
,
config
.
NEWEST_BOOKS
,
len
(
all_books
.
all
()))
pagination
=
Pagination
(
page
,
config
.
NEWEST_BOOKS
,
len
(
all_books
.
all
()))
return
render_template
(
'index.html'
,
random
=
random
,
entries
=
entries
,
pagination
=
pagination
,
title
=
"Hot Books"
)
return
render_template
(
'index.html'
,
random
=
random
,
entries
=
entries
,
pagination
=
pagination
,
title
=
"Hot Books
(most downloaded)
"
)
@
app
.
route
(
"/stats"
)
@
app
.
route
(
"/stats"
)
def
stats
():
def
stats
():
...
...
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