{% macro popup_link(title,url) %} {{ title }} {% endmacro %} {% macro resource_lead(type, title, leadtext, url, year, thumbnail='', large_title=false) %}
{% if large_title %}

{{ title }}

{% else %}

{{ title }}

{% endif %} {% if year %}
{{ year }}
{% endif %} {% if type == 'book' and thumbnail %} cover for {{ title }} {% endif %}
{{ leadtext | truncate(100) }}
{% if current_user.is_authenticated %}
{% if resource['type'] == 'tool' %} Edit {% elif resource['type'] == 'practice' %} Edit {% elif resource['type'] == 'book' %} Edit {% endif %}
{% endif %}
{% endmacro %} {% macro resource_small(resource) %} {% if resource['type'] == 'tool' %} {{ resource_lead( resource['type'], resource['name'], resource['description'], url_for('tool.show_tool', tool_id=resource['id']), null, '', true ) }} {% elif resource['type'] == 'practice' %} {{ resource_lead( resource['type'], resource['name'], resource['description'], url_for('practice.show_practice', practice_id=resource['id']), null ) }} {% elif resource['type'] == 'book' %} {{ resource_lead( resource['type'], resource['name'], resource['author'], url_for('book.show_book', book_id=resource['id']), null, resource['thumbnail'], true ) }} {% endif %} {% endmacro %} {{ moment.include_moment() }} ExPub Compendium
Loading...
{% with messages = get_flashed_messages() %} {% if messages %}
{{ messages[0] }}
{% endif %} {% endwith %} {% block content %} {% endblock %}