diff options
author | Matěj Cepl <mcepl@redhat.com> | 2014-10-25 22:43:58 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2014-10-25 22:46:09 +0200 |
commit | 68980c8131964354af27187a98adc03004913fc9 (patch) | |
tree | bac07f97d9fa935654ec0c0a236b20ce6a1cfb01 /templates | |
parent | ec50fbff6b751dad54d7d94068e08ee58d45cd81 (diff) | |
download | hesla-68980c8131964354af27187a98adc03004913fc9.tar.gz |
Don't add 'mod' parameter if the value is empty.
Fix #339.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 2 |
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 }}&mod={{ bib_mod }} + }}+{{ ref.chapter }}%3A{{ ref.verse }}{% if bib_mod %}&mod={{ bib_mod }}{%- endif %} {%- endmacro -%} {%- macro verses(word) -%} <p>{{ word.text }}</p> |