Commit a58c749e authored by Lucien “P’undrak” Cartier-Tilet's avatar Lucien “P’undrak” Cartier-Tilet

updated layout

parent 8bbfc009
Pipeline #129 failed with stage
in 57 seconds
......@@ -20,8 +20,8 @@
{% for word in words %}
<a href="{% url 'dictionary:details' from_lang.code to_lang.code word.slug %}" class="wordblock">
<word>{{word.word}}</word>
<wclass>{{word.wordclass}}</wclass>
<gender>{{word.gender}}</gender>
<wclass>{{word.wordclass}}</wclass>
<gender>{{word.gender}}</gender>
<ul class="translations">
{% for trans in word.translation.all %}
<li>{{trans}} ({{trans.language.name}})</li>
......
......@@ -83,11 +83,11 @@ def details(request, from_lang, to_lang, word):
translations = word.translation.filter(language=to_lang)
return render(
request, 'dictionary/details.html', {
'word': word,
'translations': translations,
'from_lang': from_lang,
'to_lang': to_lang,
})
'word': word,
'translations': translations,
'from_lang': from_lang,
'to_lang': to_lang,
})
def guessword(request, from_lang, word):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment