{% extends 'base.html' %} {% block title %}My Vocabulary{% endblock %} {% block content %}

My Vocabulary

Your personal collection of words and phrases.

Saved Words

{% if vocabulary is defined and vocabulary %} {% if vocabulary is iterable %} {{ vocabulary|length }} {% else %} 0 {% endif %} {% else %} 0 {% endif %} words
{% if db_error is defined and db_error %}

Database Initialization Required

The vocabulary database is still being set up. Words you add now will be saved temporarily in your browser session.

{% endif %} {% if vocabulary is defined and vocabulary|length > 0 %}
{% for word in vocabulary %}

{{ word.word }}

{% if word.pronunciation %}

{{ word.pronunciation }}

{% endif %}

{{ word.definition }}

{% if word.get_synonyms_list() %}
Synonyms:
{% for synonym in word.get_synonyms_list() %} {{ synonym }} {% endfor %}
{% endif %} {% if word.get_antonyms_list() %}
Antonyms:
{% for antonym in word.get_antonyms_list() %} {{ antonym }} {% endfor %}
{% endif %} {% if word.example %}
Example:

{{ word.example|safe }}

{% endif %}
{{ word.date_added.strftime('%b %d, %Y') }} {% if word.id is string and word.id.startswith('temp_') %}
Temporary
{% elif word.id == 0 %}
Sample
{% else %}
{% endif %}
{% endfor %}
{% else %}

No saved vocabulary

You haven't saved any words to your vocabulary yet.

Return to the dashboard to discover new words.

{% endif %}
{% endblock %}