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
6b71e774
Commit
6b71e774
authored
Jul 08, 2017
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'Download/feature/download-icon-20170410'
parents
5276bda1
95f22aa4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
18 deletions
+94
-18
style.css
cps/static/css/style.css
+65
-1
detail.html
cps/templates/detail.html
+15
-14
stats.html
cps/templates/stats.html
+14
-3
No files found.
cps/static/css/style.css
View file @
6b71e774
This diff is collapsed.
Click to expand it.
cps/templates/detail.html
View file @
6b71e774
...
...
@@ -63,7 +63,7 @@
<p>
<div
class=
"tags"
>
<span
class=
"glyphicon glyphicon-tags"
></span>
{% for tag in entry.tags %}
<a
href=
"{{ url_for('category', book_id=tag.id) }}"
class=
"btn btn-xs btn-info"
role=
"button"
>
{{tag.name}}
</a>
{%endfor%}
...
...
@@ -85,7 +85,7 @@
<div
class=
"custom_columns"
>
{% for c in cc %}
{% if entry['custom_column_' ~ c.id]|length > 0 %}
{{ c.name }}:
{{ c.name }}:
{% for column in entry['custom_column_' ~ c.id] %}
{% if c.datatype == 'rating' %}
{{ '%d' % (column.value / 2) }}
...
...
@@ -106,7 +106,7 @@
{% endfor %}
</div>
</p>
{% endif %}
{% endif %}
{% if not g.user.is_anonymous() %}
<p>
<div
class=
"custom_columns"
id=
"have_read_container"
>
...
...
@@ -117,7 +117,7 @@
</div>
</p>
{% endif %}
{% if entry.comments|length > 0 and entry.comments[0].text|length > 0%}
<h3>
{{_('Description:')}}
</h3>
...
...
@@ -130,15 +130,18 @@
<div
class=
"btn-group"
role=
"group"
aria-label=
"Download, send to Kindle, reading"
>
{% if g.user.role_download() %}
<div
class=
"btn-group"
role=
"group"
>
<button
id=
"btnGroupDrop1"
type=
"button"
class=
"btn btn-primary dropdown-toggle"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
<span
class=
"glyphicon glyphicon-download"
></span>
{{_('Download')}}
<span
class=
"caret"
></span>
<button
id=
"btnGroupDrop1"
type=
"button"
class=
"btn btn-primary"
>
{{_('Download')}} :
</button>
<ul
class=
"dropdown-menu"
aria-labelledby=
"btnGroupDrop1"
>
{% for format in entry.data %}
<li><a
href=
"{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}"
>
{{format.format}}
</a></li>
<button
id=
"btnGroupDrop1{{format.format|lower}}"
type=
"button"
class=
"btn btn-primary"
>
<a
href=
"{{ url_for('get_download_link_ext', book_id=entry.id, book_format=format.format|lower, anyname=entry.id|string+'.'+format.format) }}"
>
<span
class=
"glyphicon glyphicon-download"
></span>
{{format.format}}
<span
class=
"ebook-icon ebook-{{format.format|lower}}"
></span>
</a>
</button>
{%endfor%}
</ul>
</div>
{% endif %}
...
...
@@ -160,7 +163,7 @@
</ul>
</div>
{% endif %}
</div>
</div>
</div>
</br>
{% if g.user.is_authenticated %}
...
...
@@ -183,7 +186,7 @@
{% endif %}
{%endfor%}
</ul>
</div>
</div>
{% if books_shelfs %}
<div
class=
"btn-group"
role=
"group"
aria-label=
"Remove from shelves"
>
{% for shelf in g.user.shelf %}
...
...
@@ -247,5 +250,3 @@
});
</script>
{% endblock %}
cps/templates/stats.html
View file @
6b71e774
...
...
@@ -88,7 +88,18 @@
</tr>
</tbody>
</table>
<table
id=
"libs"
class=
"table"
>
<thead>
<tr>
<th>
{{_('File License')}}
</th>
<th>
{{_('License Type')}}
</th>
</tr>
</thead>
<tbody>
<tr>
<th><a
href=
"//www.iconfinder.com/iconsets/document-file"
>
File Document Icon
</a>
By
<a
href=
"//www.iconfinder.com/Zerg"
>
Sergei Kokota
</a></th>
<td><a
href=
"//creativecommons.org/licenses/by/3.0/"
>
Creative Commons (Attribution 3.0 Unported)
</a></td>
</tr>
</tbody>
</table>
{% endblock %}
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