{% macro render_pagination(pagination, handle) %} {% endmacro %} {% macro render_project_local_nav(project, active_link, current_user) -%} {% endmacro %} {% macro render_project_summary(project, n_tasks, overall_progress, last_activity, current_user, upload_method) -%}
{{ render_project_thumbnail(project, upload_method, class='img-thumbnail', width='100%') }}
{% endmacro %} {% macro render_project_short_summary(project, upload_method) -%}
{{ render_project_thumbnail(project, upload_method, class="img-thumbnail", style="width:100%") }}

{{project.name}}

{{ project['description'] }}

{{ _('Settings') }}
{% endmacro %} {% macro render_project_admin_featured(project, upload_method) -%}
{{ render_project_thumbnail(project, upload_method, class="img-thumbnail", style="width:100%") }}

{{project.name}}

{{ project['description'] }}

{{ _('Settings') }} {% if project.featured %} {% else %} {% endif %}
{% endmacro %} {% macro show_project(project, active_cat, current_user, upload_method) %}
{{ render_project_thumbnail(project, upload_method, class='tile-extended-image', width='100%') }}

{{ project.overall_progress | round | int }}%
{{ _('Contribute') }}
{%- endmacro %} {% macro broken_image() %} {% endmacro %} {% macro knob(val) %} {% endmacro %} {% macro render_project_title(project, upload_method, subtitle=None) %}

{{ project.name }}{% if subtitle %} {{subtitle}}{% endif %}

{% endmacro %} {% macro render_overall_progress(project, n_tasks, overall_progress, show_contribute_btn=True, show_n_tasks=False) %}

{{_('Overall progress')}}: {{ overall_progress | round | int }}% {{_('completed')}} {% if show_contribute_btn %} {{ render_contribute_button(project) }} {% elif show_n_tasks %} {{n_tasks}} {{_('Tasks')}} {% endif %}

{% endmacro %} {% macro render_contribute_button(project) %} {% if project['contrib_button'] == 'completed' %} {{ _('Done! View results') }} {% endif %} {% if project['contrib_button'] == 'can_contribute' %} {{ _('Start Contributing Now!') }} {% endif %} {% if project['contrib_button'] == 'cannot_contribute' %} {{ _('Thanks for contributing') }} {% endif %} {% if project['contrib_button'] == 'draft' %} {{ _('Draft project, complete it!') }} {% endif %} {% endmacro %} {% macro render_grid_projects(projects, title, upload_method) %}

{{title}}

{% for project in projects %}
{{ render_project_thumbnail(project, upload_method, class='img-thumbnail', style="min-height:100px; min-width:100px;")}}
{% endfor %}
{% endmacro %} {% macro render_loading(text) %}
{% endmacro %} {% macro render_project_thumbnail(project, upload_method, id, class, style, width) %} {% if project.info.container %} {% if upload_method == 'rackspace'%} {% else %} {% endif %} {% elif project.info.thumbnail %} {% else %} {% endif %} {% endmacro %} {% macro render_url_thumbnail(project, upload_method) %} {% if project.info.container %} {% if upload_method == 'rackspace'%} {{ url_for('rackspace', filename=project.info.thumbnail, container=project.info.container)}}" {% else %} {{ url_for('uploads.uploaded_file', filename=(project.info.container + '/' + project.info.thumbnail))}} {% endif %} {% elif project.info.thumbnail %} {{project.info.thumbnail}}" {% else %} {{url_for('static', filename='img/placeholder.project.png')}}" {% endif %} {% endmacro %} {% macro render_project_banner(project, overall_progress, show_contribute_btn) %}

{{ render_project_title(project) }}

{{ overall_progress | round | int }}% {{_('completed')}}

{{ project.description }}

{% if show_contribute_btn and project.contrib_button %} {% else %}
 
{% endif %}
{% endmacro %}