-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
cover_article.html
59 lines (52 loc) · 2.4 KB
/
cover_article.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{% extends "base.html" %}
{% block title %}{{ book.title }} (cover){% endblock %}
{% block content %}
<h1>{{ book.title }}</h1>
{% if book.subtitle %}
<h2>{{ book.subtitle }}</h2>
{% endif %}
<div class="pure-g cover-content">
{% if cover_img %}
<div class="pure-u-1 pure-u-md-1-2 cover-image">
<img data-l10n-id="cover-img" class="cover-art" src="{{ cover_img }}" title="Book Cover" alt="Book Cover" />
</div>
<div class="pure-u-1 pure-u-md-1-2 bibrec sidedimg">
{% else %}
<div class="pure-u-1 bibrec">
{% endif %}
<div class="cover-detail author">
<p class="label" data-l10n-id="author">Author</p>
<p class="label-value"{{ translate_author}}><a href='javascript:goToAuthor("{{ book.author.name() }}");'>{{ book.author.name() }}</a></p>
</div>
<div class="cover-detail language">
<p class="label" data-l10n-id="language">Language</p>
<p class="label-value"{{ translate_language}}>{{ book.language|language_name|title }}</p>
</div>
<div class="cover-detail license">
<p class="label" data-l10n-id="license">License</p>
<p class="label-value"{{ translate_license}}>{{ book.license.name }}</p>
</div>
<div class="cover-detail popularity">
<p class="label" data-l10n-id="popularity">Popularity</p>
<p class="label-value">{% for n in range(1, 6) %}<i class="fa fa-heart{% if n > book.popularity %}-o{% endif %}"></i> {% endfor %}</p>
</div>
{% if formats %}
<div class="cover-detail icons-footer">
{% for format in formats %}
<a title="{{ book.title }}: {{ format|upper }}" href="{{ book|book_name_for_fs|urlencode }}.{{ book.id }}.{{ format }}">
{% if format == "html" %}
<i class="fa fa-html5 fa-6x"></i>
{% endif %}
{% if format == "epub" %}
<i class="fa fa-download fa-6x"></i>
{% endif %}
{% if format == "pdf" %}
<i class="fa fa-file-pdf-o fa-6x"></i>
{% endif %}
</a>
{% endfor %}
</div>
{% endif %}
</div>
</div>
{% endblock %}