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

{{project.name}}

{{ project['description'] }}

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

{{project.name}}

{{ project['description'] }}

{{ _('Settings') }} {% if project.featured %} {% else %} {% endif %}
{% endmacro %} {% macro show_project(project, active_cat, current_user, upload_method) %}

{{ project.name }}

{{ render_project_thumbnail(project, upload_method, class='thumbnail', style='max-width:100px; max-height:100px;') }}

{{ _('Description') }}: {{ project.description }}

{{ _('Creation Date') }}: {{ project.created[0:10] }}

{% if project.last_activity_raw != None %}

{{ _('Last Activity') }}: {{ project.last_activity}}

{% endif %}

{{ _('Overall progress') }}: {{ project.overall_progress | round | int }}% completed

{% if project.owner == current_user.fullname %}

{{ _('Created by') }}: {{ _('Me') }}

{% else %}

{{ _('Created by') }}: {{ project.owner }}

{% endif %} {% if active_cat != "draft" %}

{{ _('Try it!') }}

{% endif %}
{%- endmacro %} {% macro broken_image() %} {% endmacro %} {% macro knob(val) %} {% endmacro %} {% macro render_project_title(project, upload_method, subtitle=None) %}

{{ render_project_thumbnail(project, upload_method, class="img-polaroid", style="max-width:60px") }} {% if subtitle %} {{ project.name }}: {{subtitle}}

{% else %} {{ project.name }} {% 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 %} {% if project['contrib_button'] == 'publish' %} {{ _('You can now publish it!') }} {% endif %} {% endmacro %} {% macro render_grid_projects(projects, title, upload_method) %} {% endmacro %} {% macro render_loading(text) %}
{% endmacro %} {% macro render_project_thumbnail(project, upload_method, id, class, style) %} {% 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 %}