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
b99c793a
Commit
b99c793a
authored
Apr 13, 2016
by
Jan B
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11 from cervinko/master
show 'read in browser' only for epubs
parents
15fc2aca
1d295eb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
detail.html
cps/templates/detail.html
+4
-1
No files found.
cps/templates/detail.html
View file @
b99c793a
...
...
@@ -78,7 +78,10 @@
{% if g.user.kindle_mail %}
<a
href=
"{{url_for('send_to_kindle', book_id=entry.id)}}"
id=
"sendbtn"
class=
"btn btn-primary"
role=
"button"
><span
class=
"glyphicon glyphicon-send"
></span>
Send to Kindle
</a>
{% endif %}
<a
target=
"_blank"
href=
"{{url_for('read_book', book_id=entry.id)}}"
class=
"btn btn-primary"
role=
"button"
><span
class=
"glyphicon glyphicon-eye-open"
></span>
Read in browser
</a>
{% for format in entry.data if format.format|lower == 'epub' %}
<a
target=
"_blank"
href=
"{{url_for('read_book', book_id=entry.id)}}"
class=
"btn btn-primary"
role=
"button"
><span
class=
"glyphicon glyphicon-eye-open"
></span>
Read in browser
</a>
{%endfor%}
</div>
</div>
...
...
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