Update web/templates/entry_view.html
This commit is contained in:
parent
45ea52341d
commit
60017789df
@ -15,12 +15,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="rt-right">
|
<div class="rt-right">
|
||||||
<form method="get" action="{% url 'nav_prev' %}" class="inline">
|
<form method="get" action="{% url 'nav_prev' %}" class="inline">
|
||||||
<!-- send current zero-based index (position-1); view will subtract 1 -->
|
|
||||||
<input type="hidden" name="i" value="{{ position|add:'-1' }}">
|
<input type="hidden" name="i" value="{{ position|add:'-1' }}">
|
||||||
<button class="btn btn-lg" {% if position <= 1 %}disabled{% endif %}>‹ Prev</button>
|
<button class="btn btn-lg" {% if position <= 1 %}disabled{% endif %}>‹ Prev</button>
|
||||||
</form>
|
</form>
|
||||||
<form method="get" action="{% url 'nav_next' %}" class="inline">
|
<form method="get" action="{% url 'nav_next' %}" class="inline">
|
||||||
<!-- send current zero-based index (position-1); view will add 1 -->
|
|
||||||
<input type="hidden" name="i" value="{{ position|add:'-1' }}">
|
<input type="hidden" name="i" value="{{ position|add:'-1' }}">
|
||||||
<button class="btn btn-lg btn-primary" {% if position >= count %}disabled{% endif %}>Next ›</button>
|
<button class="btn btn-lg btn-primary" {% if position >= count %}disabled{% endif %}>Next ›</button>
|
||||||
</form>
|
</form>
|
||||||
@ -70,7 +68,15 @@
|
|||||||
<div class="meta-grid">
|
<div class="meta-grid">
|
||||||
<div class="meta-item">
|
<div class="meta-item">
|
||||||
<div class="meta-label">Source</div>
|
<div class="meta-label">Source</div>
|
||||||
<div class="meta-value">{{ entry.source|default:"—" }}</div>
|
<div class="meta-value">
|
||||||
|
{% if entry.source %}
|
||||||
|
<a class="chip chip-link"
|
||||||
|
href="https://wol.jw.org/en/wol/l/r1/lp-e?q={{ entry.source|urlencode }}"
|
||||||
|
target="_blank" rel="noopener noreferrer">
|
||||||
|
{{ entry.source }}
|
||||||
|
</a>
|
||||||
|
{% else %}—{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="meta-item">
|
<div class="meta-item">
|
||||||
@ -79,8 +85,8 @@
|
|||||||
{% if scripture_list %}
|
{% if scripture_list %}
|
||||||
{% for sc in scripture_list %}
|
{% for sc in scripture_list %}
|
||||||
<a class="chip chip-link"
|
<a class="chip chip-link"
|
||||||
href="https://wol.jw.org/en/wol/l/r1/lp-e?q={{ sc|urlencode }}"
|
href="https://wol.jw.org/en/wol/l/r1/lp-e?q={{ sc|urlencode }}"
|
||||||
target="_blank" rel="noopener noreferrer">
|
target="_blank" rel="noopener noreferrer">
|
||||||
{{ sc }}
|
{{ sc }}
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@ -114,26 +120,26 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.subject-pills{
|
.subject-pills {
|
||||||
display:flex;
|
display: flex;
|
||||||
flex-wrap:wrap;
|
flex-wrap: wrap;
|
||||||
gap:10px;
|
gap: 10px;
|
||||||
margin:0 0 10px;
|
margin: 0 0 10px;
|
||||||
}
|
}
|
||||||
.chip-subject{
|
.chip-subject {
|
||||||
font-weight:700;
|
font-weight: 700;
|
||||||
font-size:16px;
|
font-size: 16px;
|
||||||
padding:8px 14px;
|
padding: 8px 14px;
|
||||||
border-radius:999px;
|
border-radius: 999px;
|
||||||
background:#eef5fc;
|
background: #eef5fc;
|
||||||
border:1px solid #d7e6f7;
|
border: 1px solid #d7e6f7;
|
||||||
color:#0f172a;
|
color: #0f172a;
|
||||||
text-decoration:none;
|
text-decoration: none;
|
||||||
text-transform: capitalize; /* Capitalize each word */
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
.chip-subject:hover{
|
.chip-subject:hover {
|
||||||
background:#e2effc;
|
background: #e2effc;
|
||||||
border-color:#c9def5;
|
border-color: #c9def5;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Loading…
Reference in New Issue
Block a user