{% extends "layout.html" %} {% import "macros/_misc.html" as misc %} {% import "macros/_social.html" as social %} {% import "macros/_detail.html" as detail %} {% block page_title %}{{project.name}} - {{project.event.name}}{% endblock %} {% block page_meta %} {% endblock %} {% block css %} {% endblock %} {% block js %} {% endblock %} {% block body_class %}project-home{% endblock %} {% block content %} {% if project.score and project.score < 1 and allow_edit and current_event.aftersubmit %}
{{ current_event.aftersubmit|markdown }}
{% endif %} {{ detail.render_project_buttons(project, project_starred, past_version, allow_edit, lock_editing, allow_revert, allow_post, current_user, True) }} {{ detail.render_project_image(project) }} {{ detail.render_project_head(project) }}
{% if project_team %} Team {% endif %} {% if project.autotext %} Readme {% endif %}
{% for s in project_badge %} {% endfor %} {% if project.download_url %} Demo {% endif %}
{% if project.is_webembed or project.webpage_url %} {% if project.has_embed_longtext %}
↓  Open {% elif project.embed_webpage %}
{{ project.embed_webpage|safe }}
↓  Open {% endif %}
{% endif %} {% if project.longtext %}
{{ project.longtext|onebox|markdown|safe }}
{% endif %} {% if allow_edit %}
Edit
{% endif %} {% if project.autotext %}
{% if allow_edit and project.is_syncable %} Refresh {% endif %}
{{project.autotext|markdown}}
{% if project.autotext_url and not project.event.lock_resources %}
Preview of external content.
{% endif %}
{% endif %}
{% if project.contact_url %} {% if project.contact_url.startswith('http') or project.contact_url.startswith('mailto:') %} 👋 Contact {% elif '@' in project.contact_url %} 👋 E-mail {% else %}
👋 {{ project.contact_url }}
{% endif %} {% endif %} {% if project.download_url %} Demo {% endif %} {% if project.source_url %} 💻 Source {% endif %}
{% if project.technai %}
{% for s in project.technai %} {{s}} {% endfor %}
{% endif %} {% if project_team %}
{% for user in project_team %} {% if project.user == user %} {% endif %} {{ misc.render_user_profile(user) }} {% if current_user.is_admin %} × {% endif %} {% endfor %}
{% if not lock_editing and not project.event.has_finished and not project.event.lock_resources and not past_version %}
{% if project_starred %} Team builder {% elif project.is_approved %} Join the team {% endif %} Log Link
{% endif %}
{% endif %}
{{project.event.community_embed|safe}}
{% if project.terms_reuse %}
{% if project.terms_reuse == 'C' or project.terms_reuse.startswith('C+') %} {{ project.terms_reuse }} {% elif project.terms_reuse.startswith('CC') %} {{ project.terms_reuse }} {% elif project.terms_reuse.startswith('http') %} Terms of Reuse {% else %} {{ project.terms_reuse }} {% endif %}
{% endif %} {% if config.DRIBDAT_SOCIAL_LINKS and share %} {{ social.share_links(share.text, share.url) }} {% endif %} {% include "includes/projectnav.html" %} {% if allow_edit %} {% include "includes/projectdialogs.html" %} {% endif %} {% if project.category %} {% endif %} {% endblock %}