2021-07-05 15:59:00 +00:00
{% extends "layout.html" %}
{% import "macros/_misc.html" as misc %}
{% block page_title %}{{current_event.name}} / Print{% endblock %}
2021-07-06 21:56:14 +00:00
{% block body_class %}print-page{% endblock %}
2016-09-19 07:08:46 +00:00
2024-03-19 16:05:01 +00:00
{% macro render_print_project(project) %}
< div class = "project-info" >
2022-09-25 12:32:20 +00:00
< ul class = "project-meta" >
2024-03-11 15:36:00 +00:00
{% if project.ident %}
< li > < b > {{ project.ident }}< / b > < / li >
{% endif %}
2023-03-21 17:19:30 +00:00
< li > < a href = "{{ url_for('project.project_view', project_id=project.id) }}" > {{ url_for('project.project_view', project_id=project.id, _external=True) }}< / a > < / li >
2022-09-25 12:32:20 +00:00
{% if project.webpage_url %}
< li > Homepage: < a href = "{{ project.webpage_url }}" > {{ project.webpage_url|truncate(50) }}< / a > < / li >
{% endif %}
{% if project.source_url %}
< li > Source: < a href = "{{ project.source_url }}" > {{ project.source_url|truncate(50) }}< / a > < / li >
{% endif %}
{% if project.download_url %}
< li > Download: < a href = "{{ project.download_url }}" > {{ project.download_url|truncate(50) }}< / a > < / li >
{% endif %}
{% if project.contact_url %}
< li > Contact: < a href = "{{ project.contact_url }}" > {{ project.contact_url|truncate(50) }}< / a > < / li >
{% endif %}
< li > Created: < span > {{ project.created_at|format_date }}< / span >
{% if project.user %}
2023-11-28 22:25:53 +00:00
by < a href = "{{project.user.webpage_url}}" > {{ project.user.name }}< / a >
2024-03-19 16:05:01 +00:00
{% endif %}
< / li >
< li > Updated: < span > {{ project.updated_at|format_date }}< / span >
{% if project.score > 0 %}
< li > Progress: < span > {{project.score}}%< / span > ({{project.phase}})< / li >
{% endif %}
2022-09-25 12:32:20 +00:00
{% if project.category_id %}
2024-03-19 16:05:01 +00:00
< li > Category: < b > {{ project.category.name }}< / b > < / li >
2016-09-19 07:08:46 +00:00
{% endif %}
2022-09-25 12:32:20 +00:00
< / ul >
2016-09-19 07:08:46 +00:00
2022-09-25 12:32:20 +00:00
{% if project.image_url %}
< img align = "right" hspace = "10" class = "project-image" width = "128" src = "{{project.image_url}}" >
{% endif %}
2016-09-19 07:08:46 +00:00
2023-03-21 17:19:30 +00:00
{% if project.hashtag %}
< p class = "project-hashtag m-0 p-0" > {{project.hashtag}}< / p >
{% endif %}
2022-09-25 12:32:20 +00:00
< h2 style = "font-weight:bold" >
{% if project.logo_icon %}
< i class = "fa fa-{{project.logo_icon}}" > < / i >
{% endif %}
{{project.name}}
< / h2 >
2016-09-19 07:08:46 +00:00
2022-09-25 12:32:20 +00:00
{% if project.summary %}
2024-03-19 16:05:01 +00:00
< p class = "project-summary" style = "max-width: 50%;" >
2016-09-19 07:08:46 +00:00
{{project.summary}}
< / p >
2022-09-25 12:32:20 +00:00
{% endif %}
{% if project.team %}
2024-03-19 16:05:01 +00:00
< ul class = "team-gravatar project-team" title = "team" >
2022-09-25 12:32:20 +00:00
{% for user in project.team %}
2024-03-28 10:23:39 +00:00
< li > < a href = "{{ url_for('public.user_profile', username=user) }}" >
2024-03-19 16:05:01 +00:00
< i class = "fa fa-user" > < / i >
{{ user }}
2022-09-25 12:32:20 +00:00
< / a > < / li >
{% endfor %}
< / ul >
{% endif %}
2024-03-19 16:05:01 +00:00
< br clear = "all" >
2024-03-19 15:22:39 +00:00
{% if request.args.get('longtext') and project.longtext %}
2024-03-19 16:05:01 +00:00
< div class = "full-content" style = "background:#fafafa" >
2024-03-19 15:22:39 +00:00
< tt > ~ PITCH ~< / tt >
< div class = "project-page clear-both" >
< div class = "project-longtext" >
{{project.longtext|markdown|safe}}
< / div >
< / div >
< / div >
{% endif %}
{% if request.args.get('longtext') and project.autotext %}
2024-03-19 16:05:01 +00:00
< div class = "full-content" >
2024-03-19 15:22:39 +00:00
< tt > ~ README ~< / tt >
< div class = "project-page clear-both" >
< div class = "project-autotext" >
{{project.autotext|markdown|safe}}
< / div >
< / div >
< / div >
{% endif %}
2022-09-25 12:32:20 +00:00
< / div >
2024-03-19 16:05:01 +00:00
{% endmacro %}
2022-09-25 12:32:20 +00:00
2024-03-19 16:05:01 +00:00
{% block content %}
< div class = "container" style = "background:white; color: black" >
< div class = "float-right mr-3" style = "margin-top:-6em" >
2024-04-18 15:54:06 +00:00
< a href = "https://dribdat.cc" target = "_blank" > < img src = "{{ url_for('static', filename='img/logo/logo12_swi.png') }}" height = "100" alt = "All our hack are belong to us." > < / a >
2024-03-19 16:05:01 +00:00
< / div >
< p class = "float-right m-4" > < i >
Active projects and challenges as of {{ curdate }}.
< / i > < / p >
< p class = "no-print pt-4" >
{% if not request.args.get('longtext') %}
< a href = "?longtext=1" class = "btn btn-danger" > Show full text< / a >
{% else %}
< a href = "?" class = "btn btn-danger" > Hide full text< / a >
{% endif %}
< a href = "javascript:window.print()" class = "ml-4 btn btn-info" >
< i class = "fa fa-print" aria-hidden = "true" > < / i >
Print < / a >
< a href = "{{ url_for('api.project_list_event_csv', event_id=current_event.id, moar=1)}}" class = "btn btn-light" download >
< i class = "fa fa-file" aria-hidden = "true" > < / i >
CSV< / a >
< a href = "{{ url_for('api.package_specific_event', event_id=current_event.id, format='json')}}" class = "btn btn-light" download >
< i class = "fa fa-file" aria-hidden = "true" > < / i >
Data Package< / a >
< / p >
< hr >
{% for project in projects %}
{{ render_print_project(project) }}
< hr { % if request . args . get ( ' longtext ' ) % } style = "clear: both; page-break-after: always;" { % endif % } >
2022-09-25 12:32:20 +00:00
{% endfor %}
2024-03-19 16:07:34 +00:00
{% if projects %}
< hr style = "page-break-after: always;" >
{% endif %}
2022-09-25 12:32:20 +00:00
< a name = "challenges" > < / a >
2024-03-19 16:07:34 +00:00
< center > < h1 class = "m-5" > Challenges< / h1 > < / center >
2022-09-25 12:32:20 +00:00
{% for project in challenges %}
2024-03-19 16:05:01 +00:00
{{ render_print_project(project) }}
< hr { % if request . args . get ( ' longtext ' ) % } style = "clear: both; page-break-after: always;" { % endif % } >
2022-09-25 12:32:20 +00:00
{% endfor %}
2024-03-19 16:05:01 +00:00
2016-09-19 07:08:46 +00:00
< / div >
{% endblock %}