aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-10-25 22:43:58 +0200
committerMatěj Cepl <mcepl@redhat.com>2014-10-25 22:46:09 +0200
commit68980c8131964354af27187a98adc03004913fc9 (patch)
treebac07f97d9fa935654ec0c0a236b20ce6a1cfb01 /templates
parentec50fbff6b751dad54d7d94068e08ee58d45cd81 (diff)
downloadhesla-68980c8131964354af27187a98adc03004913fc9.tar.gz
Don't add 'mod' parameter if the value is empty.
Fix #339.
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index eebb8c0..30d091c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,6 +1,6 @@
{%- macro bible_url(ref, bib_mod) -%}
http://www.crosswire.org/study/passagestudy.jsp?key={{ ref.book
- }}+{{ ref.chapter }}%3A{{ ref.verse }}&amp;mod={{ bib_mod }}
+ }}+{{ ref.chapter }}%3A{{ ref.verse }}{% if bib_mod %}&amp;mod={{ bib_mod }}{%- endif %}
{%- endmacro -%}
{%- macro verses(word) -%}
<p>{{ word.text }}</p>