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
8896b3c5
Commit
8896b3c5
authored
Jul 15, 2018
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Requests from #454
parent
6f36eef5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
77 deletions
+91
-77
detail.html
cps/templates/detail.html
+1
-1
index.html
cps/templates/index.html
+1
-1
layout.html
cps/templates/layout.html
+16
-16
web.py
cps/web.py
+73
-59
No files found.
cps/templates/detail.html
View file @
8896b3c5
...
...
@@ -17,7 +17,7 @@
{% if g.user.role_download() %}
{% if entry.data|length %}
<div
class=
"btn-group"
role=
"group"
>
{% if entry.data|length
<
3
%}
{% if entry.data|length
<
2
%}
<
button
type=
"button"
class=
"btn btn-primary"
>
{{_('Download')}} :
</button>
...
...
cps/templates/index.html
View file @
8896b3c5
...
...
@@ -53,7 +53,7 @@
</a>
</div>
<div
class=
"meta"
>
<p
class=
"title"
>
{{entry.title|
shortentitle
}}
</p>
<p
class=
"title"
>
{{entry.title|
truncate(60)
}}
</p>
<p
class=
"author"
>
{% for author in entry.authors %}
<a
href=
"{{url_for('author', book_id=author.id) }}"
>
{{author.name.replace('|',',')}}
</a>
...
...
cps/templates/layout.html
View file @
8896b3c5
...
...
@@ -24,7 +24,7 @@
{% block header %}{% endblock %}
</head>
<body>
<body
class=
"{{ page }}"
>
<!-- Static navbar -->
<div
class=
"navbar navbar-default navbar-static-top"
role=
"navigation"
>
<div
class=
"container-fluid"
>
...
...
@@ -116,7 +116,7 @@
<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>
{% if g.user.show_recent() %}
<li
id=
"nav_new"
><a
href=
"{{url_for('index')}}"
><span
class=
"glyphicon glyphicon-book"
></span>
{{_('Recently Added')}}
</a></li>
<li
id=
"nav_new"
{%
if
page =
=
'
root
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('index')}}"
><span
class=
"glyphicon glyphicon-book"
></span>
{{_('Recently Added')}}
</a></li>
{%endif%}
{% if g.user.show_sorted() %}
<li
class=
"dropdown"
>
...
...
@@ -125,39 +125,39 @@
<span
class=
"caret"
></span>
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"{{url_for('newest_books')}}"
>
{{_('Sort By')}} {{_('Newest')}}
</a></li>
<li><a
href=
"{{url_for('oldest_books')}}"
>
{{_('Sort By')}} {{_('Oldest')}}
</a></li>
<li><a
href=
"{{url_for('titles_ascending')}}"
>
{{_('Sort By')}} {{_('Title')}} ({{_('Ascending')}})
</a></li>
<li><a
href=
"{{url_for('titles_descending')}}"
>
{{_('Sort By')}} {{_('Title')}} ({{_('Descending')}})
</a></li>
<li
{%
if
page =
=
'
newest
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('newest_books')}}"
>
{{_('Sort By')}} {{_('Newest')}}
</a></li>
<li
{%
if
page =
=
'
oldest
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('oldest_books')}}"
>
{{_('Sort By')}} {{_('Oldest')}}
</a></li>
<li
{%
if
page =
=
'
a-z
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('titles_ascending')}}"
>
{{_('Sort By')}} {{_('Title')}} ({{_('Ascending')}})
</a></li>
<li
{%
if
page =
=
'
z-a
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('titles_descending')}}"
>
{{_('Sort By')}} {{_('Title')}} ({{_('Descending')}})
</a></li>
</ul>
</li>
{%endif%}
{% if g.user.show_hot_books() %}
<li
id=
"nav_hot"
><a
href=
"{{url_for('hot_books')}}"
><span
class=
"glyphicon glyphicon-fire"
></span>
{{_('Hot Books')}}
</a></li>
<li
id=
"nav_hot"
{%
if
page =
=
'
hot
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('hot_books')}}"
><span
class=
"glyphicon glyphicon-fire"
></span>
{{_('Hot Books')}}
</a></li>
{%endif%}
{% if g.user.show_best_rated_books() %}
<li><a
href=
"{{url_for('best_rated_books')}}"
><span
class=
"glyphicon glyphicon-star"
></span>
{{_('Best rated Books')}}
</a></li>
<li
{%
if
page =
=
'
rated
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('best_rated_books')}}"
><span
class=
"glyphicon glyphicon-star"
></span>
{{_('Best rated Books')}}
</a></li>
{%endif%}
{% if g.user.show_read_and_unread() %}
{% if not g.user.is_anonymous %}
<li><a
href=
"{{url_for('read_books')}}"
><span
class=
"glyphicon glyphicon-eye-open"
></span>
{{_('Read Books')}}
</a></li>
<li
{%
if
page =
=
'
read
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('read_books')}}"
><span
class=
"glyphicon glyphicon-eye-open"
></span>
{{_('Read Books')}}
</a></li>
{%endif%}
<li><a
href=
"{{url_for('unread_books')}}"
><span
class=
"glyphicon glyphicon-eye-close"
></span>
{{_('Unread Books')}}
</a></li>
<li
{%
if
page =
=
'
read
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('unread_books')}}"
><span
class=
"glyphicon glyphicon-eye-close"
></span>
{{_('Unread Books')}}
</a></li>
{%endif%}
{% if g.user.show_random_books() %}
<li
id=
"nav_rand"
><a
href=
"{{url_for('discover')}}"
><span
class=
"glyphicon glyphicon-random"
></span>
{{_('Discover')}}
</a></li>
<li
id=
"nav_rand"
{%
if
page =
=
'
discover
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('discover')}}"
><span
class=
"glyphicon glyphicon-random"
></span>
{{_('Discover')}}
</a></li>
{%endif%}
{% if g.user.show_category() %}
<li
id=
"nav_cat"
><a
href=
"{{url_for('category_list')}}"
><span
class=
"glyphicon glyphicon-inbox"
></span>
{{_('Categories')}}
</a></li>
<li
id=
"nav_cat"
{%
if
page =
=
'
discover
'
%}
class=
"category"
{%
endif
%}
><a
href=
"{{url_for('category_list')}}"
><span
class=
"glyphicon glyphicon-inbox"
></span>
{{_('Categories')}}
</a></li>
{%endif%}
{% if g.user.show_series() %}
<li
id=
"nav_serie"
><a
href=
"{{url_for('series_list')}}"
><span
class=
"glyphicon glyphicon-bookmark"
></span>
{{_('Series')}}
</a></li>
<li
id=
"nav_serie"
{%
if
page =
=
'
series
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('series_list')}}"
><span
class=
"glyphicon glyphicon-bookmark"
></span>
{{_('Series')}}
</a></li>
{%endif%}
{% if g.user.show_author() %}
<li
id=
"nav_author"
><a
href=
"{{url_for('author_list')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
{{_('Authors')}}
</a></li>
<li
id=
"nav_author"
{%
if
page =
=
'
author
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('author_list')}}"
><span
class=
"glyphicon glyphicon-user"
></span>
{{_('Authors')}}
</a></li>
{%endif%}
{% if g.user.filter_language() == 'all' and g.user.show_language() %}
<li
id=
"nav_lang"
><a
href=
"{{url_for('language_overview')}}"
><span
class=
"glyphicon glyphicon-flag"
></span>
{{_('Languages')}}
</a></li>
<li
id=
"nav_lang"
{%
if
page =
=
'
language
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('language_overview')}}"
><span
class=
"glyphicon glyphicon-flag"
></span>
{{_('Languages')}}
</a></li>
{%endif%}
{% if g.user.is_authenticated or g.user.is_anonymous %}
<li
class=
"nav-head hidden-xs"
>
{{_('Public Shelves')}}
</li>
...
...
@@ -170,7 +170,7 @@
{% endfor %}
{% if not g.user.is_anonymous %}
<li
id=
"nav_createshelf"
class=
"create-shelf"
><a
href=
"{{url_for('create_shelf')}}"
>
{{_('Create a Shelf')}}
</a></li>
<li
id=
"nav_about"
><a
href=
"{{url_for('stats')}}"
><span
class=
"glyphicon glyphicon-info-sign"
></span>
{{_('About')}}
</a></li>
<li
id=
"nav_about"
{%
if
page =
=
'
stat
'
%}
class=
"active"
{%
endif
%}
><a
href=
"{{url_for('stats')}}"
><span
class=
"glyphicon glyphicon-info-sign"
></span>
{{_('About')}}
</a></li>
{% endif %}
{% endif %}
...
...
cps/web.py
View file @
8896b3c5
This diff is collapsed.
Click to expand it.
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