48 lines
2.3 KiB
HTML
48 lines
2.3 KiB
HTML
{% extends "events/page.html" %}
|
|
{% load i18n django_markdown%}
|
|
|
|
{% block title %}{{ event.name }}{% endblock %}
|
|
|
|
{% block opengraph %}
|
|
<meta property="og:type" content="activity" />
|
|
<meta property="og:title" content="{{event.name}}" />
|
|
<meta property="og:url" content="http://www.kasu.at{{event.get_absolute_url}}" />
|
|
<meta property="og:image" content="http://www.kasu.at{{ event.get_thumbnail.url }}" />
|
|
{% if event.description %}<meta property="og:description" content="{{event.description}}" />{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block extra_head %}
|
|
<style type="text/css" media="screen and (min-width: 701px)">#teaser{background-image:url('{{ event.get_callout.url }}')}</style>
|
|
<!--[if lt IE 9]><style type="text/css" media="screen">#teaser{background-image:url("{{event.get_callout.url}}")}</style><![endif]-->
|
|
{% endblock %}
|
|
|
|
{% block maincontent %}
|
|
<div class="grid_8" id="teaser">
|
|
<div id="teaser_text">
|
|
<h2>{{event.name}}</h2>
|
|
{% if event.description %}{{event.description|markdown}}{% else %}{{event.location.description|markdown}}{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="red_box grid_4">
|
|
{% block red_box %}
|
|
<h2>Info</h2>
|
|
<p> </p>
|
|
<ul>
|
|
<li class="date"><strong>{% trans "Start" %}:</strong> {{ event.start }}</li>
|
|
{% if event.end %}<li class="date"><strong>{% trans "End" %}:</strong> {{ event.end }}</li>{% endif %}
|
|
<li class="location">
|
|
{% if event.location.url %}<a href="{{ event.location.url }}">{% else %}<a href="http://maps.google.com/maps?q={{event.location.address|urlencode}}&z=16">{% endif %}
|
|
<strong>{% trans "Location" %}:</strong> {{event.location.name}}</a>
|
|
</li>
|
|
{% if event.url %}<li><a href="{{ event.url }}"><strong>{% trans "Homepage" %}:</strong> {{ event.url }}</a></li>{% endif %}
|
|
<li class="hanchan"><a href="{% url 'event-hanchan-list' event.pk %}" ><strong>{% trans "Hanchans" %}:</strong> {{ event.hanchan_set.count }}</a></li>
|
|
<li class="photo"><a href="{% url 'event-photo-list' event.pk %}"><strong>{% trans 'Photos' %}:</strong> {{ event.photo_count }}</a></li>
|
|
{% if event.is_tournament %}<li class="season"><a href="{% url 'event-ranking' event.pk %}"><strong>{% trans "tourney" %}:</strong> {% trans "other rules apply here" %}</a></li>{% endif%}
|
|
</ul>
|
|
{% endblock %}
|
|
</div>
|
|
|
|
{% block event_content %} {% endblock %}
|
|
{% endblock %}
|
|
|