Update web/templates/entry_view.html
This commit is contained in:
parent
45ea52341d
commit
60017789df
@ -15,12 +15,10 @@
|
||||
</div>
|
||||
<div class="rt-right">
|
||||
<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' }}">
|
||||
<button class="btn btn-lg" {% if position <= 1 %}disabled{% endif %}>‹ Prev</button>
|
||||
</form>
|
||||
<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' }}">
|
||||
<button class="btn btn-lg btn-primary" {% if position >= count %}disabled{% endif %}>Next ›</button>
|
||||
</form>
|
||||
@ -70,7 +68,15 @@
|
||||
<div class="meta-grid">
|
||||
<div class="meta-item">
|
||||
<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 class="meta-item">
|
||||
@ -129,7 +135,7 @@
|
||||
border: 1px solid #d7e6f7;
|
||||
color: #0f172a;
|
||||
text-decoration: none;
|
||||
text-transform: capitalize; /* Capitalize each word */
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.chip-subject:hover {
|
||||
background: #e2effc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user