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">
|
||||||
@ -129,7 +135,7 @@
|
|||||||
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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user