Skip to content

Commit ed53d77

Browse files
committed
#49 #51 Updated the Vocabularies List view.
1 parent 807e27c commit ed53d77

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/cvinterface/templates/cvinterface/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2>Controlled Vocabularies</h2>
3838
{% for vocabulary in vocabulary_views %}
3939
<div class="list-item column three-columns">
4040
<div class="list-title whole-spaced-title"><a href="{{ vocabulary.url }}"><h3>{{ vocabulary.name }}</h3></a></div>
41-
<div class="list-description whole-spaced-description"><p>{{ vocabulary.definition }}</p></div>
41+
<div class="list-description whole-spaced-description"><p>{{ vocabulary.description }}</p></div>
4242
</div>
4343
{% endfor %}
4444
<div class="list-item column three-columns last-list-item">

src/cvinterface/templates/cvinterface/vocabularies/default_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<section class="concepts-table">
88
<header>
99
<h2>
10-
{{ vocabulary_verbose }} Vocabulary
10+
{{ vocabulary_verbose_name }} Vocabulary
1111
<span class="parent-link">
1212
<a href="{% url 'home' %}" class="tooltip" data-tip="Navigate to the home page."></a>
1313
</span>

src/cvinterface/views/vocabulary_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def get_context_data(self, **kwargs):
3939
context = super(VocabulariesView, self).get_context_data(**kwargs)
4040

4141
vocabulary_types = [{'name': vocabulary.get('name'),
42-
'definition': vocabulary.get('description'),
42+
'description': vocabulary.get('description'),
4343
'url': reverse(vocabulary_name)}
4444
for vocabulary_name, vocabulary in vocabularies.items()]
4545

0 commit comments

Comments
 (0)