{% macro view_switch() %}
Expanded
List
{% endmacro %} {% macro menu(type) %} Experimental Publishing Compendium beta {% endmacro %} {% macro relationships_links(resource) %} {% if resource.tools %}
Tools
{% for tool in resource.tools %}
{{ resource_lead(tool,size=2) }}
{% endfor %}
{% endif %} {% if resource.books %}
Books
{% for book in resource.books %}
{{ resource_lead(book,size=2) }}
{% endfor %}
{% endif %} {% if resource.practices %}
Practices
{% for practice in resource.practices %}
{{ resource_lead(practice,size=2) }}
{% endfor %}
{% endif %} {% endmacro %} {% macro resource_list(resource, loop, show_number=true) %}
{% if show_number %} {{loop.index}} / {{count}} {% else %}
{{ resource['type'] }}
{% endif %}
{{ resource.name }} {% if resource['year'] %}
{{ resource['year'] }}{% if resource['author'] %}, {{ resource['author'] }}{% endif%}
{% endif %}
{% endmacro %} {% macro resource_with_related(resource, loop, show_number=true) %}
{% if show_number %}

{{loop.index}} / {{count}}

{% else %}

{{ resource['type'] }}

{% endif %}
{{ resource_lead(resource) }}
{% if resource.tools %}
{% for tool in resource.tools %}
{{ resource_lead(tool,size=2) }}
{% endfor %}
{% endif %} {% if resource.books %}
{% for book in resource.books %}
{{ resource_lead(book,size=2) }}
{% endfor %}
{% endif %} {% if resource.practices %}
{% for practice in resource.practices %}
{{ resource_lead(practice,size=2) }}
{% endfor %}
{% endif %}
{% endmacro %} {% macro popup_link(title,url) %} {{ title }} {% endmacro %} {% macro resource_lead(resource,size=1) %} {% if (resource.type == 'book') and (resource.references) %} cover for {{ resource.name }} {% endif %}

{{ resource['name'] }}

{% if resource['year'] %}
{{ resource['year'] }}{% if resource['author'] %}, {{ resource['author'] }}{% endif%}
{% endif %}
{{ resource['description'] | truncate(150) }}
{% if current_user.is_authenticated %}
{% if resource['type'] == 'tool' %} Edit {% elif resource['type'] == 'practice' %} Edit {% elif resource['type'] == 'book' %} Edit {% endif %}
{% endif %} {% endmacro %} {{ moment.include_moment() }} Experimental Publishing Compendium
Loading...
{{ menu('side') }}
{% with messages = get_flashed_messages() %} {% if messages %}
{{ messages[0] }}
{% endif %} {% endwith %} {% block content %} {% endblock %}