summaryrefslogtreecommitdiff
path: root/djangoproject/templates/aggregator/local-django-community.html
blob: f9c606f011925bc43934d3360574c9e69ac722f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{% extends "base_community.html" %}
{% load i18n %}

{% block content %}

{# Group meetups by country and then by location #}
  {% regroup django_communities|dictsort:"continent" by continent as grouped_django_communities %}


  <h1>{% translate "Local Django Communities" %}</h1>

  <p>{% blocktranslate trimmed %}Something missing? <a href="https://github.com/django/djangoproject.com/issues/new?assignees=&amp;labels=type%3Acommunity&amp;projects=&amp;template=community_request.md">Suggest your community{% endblocktranslate %}</a>.</p>

  {% if grouped_django_communities %}<h3 id="table-of-contents">{% translate "Table of contents" %}<a class="plink" href="#table-of-contents"> ¶</a></h3>{% endif %}
  <ul>
    {% for local_django_community in grouped_django_communities %}
      <li><a href="#{{ local_django_community.grouper.title|lower }}-meetups">{{ local_django_community.grouper.title }}</a></li>
    {% endfor %}
  </ul>


  {% for local_django_community in grouped_django_communities %}
    <div id="{{ local_django_community.grouper.title|lower }}-meetups" class="section">
      <h2>{{ local_django_community.grouper.title }} <a class="plink" href="#{{ local_django_community.grouper.title|lower }}-meetups">¶</a></h2>
      <ul>
        {% for django_community in local_django_community.list %}
          <li>
            <h3 id="{{ django_community.slug }}-meetup">{{ django_community.name }} <a class="plink" href="#{{ django_community.slug }}-meetup">¶</a></h3>
            <p class="meta">{{ django_community.city }}, {{ django_community.country }} &nbsp;
              {% if django_community.is_active %}
                {% translate "Active" %}
              {% else %}
                {% translate "Inactive" %}
              {% endif %}
            </p>
            <p>{{ django_community.description|safe }}</p>
            <p>
              {% if django_community.website_url %}
                <a href="{{ django_community.website_url }}">{% translate "Community Website" %}</a> &nbsp;
              {% endif %}
              {% if django_community.event_site_url %}
                <a href="{{ django_community.event_site_url }}">{% translate "Event Website" %}</a>
              {% endif %}
            </p>
          </li>
        {% endfor %}
      </ul>
    </div>
  {% empty %}
    {% translate "Local Django communities are coming soon. Please check back later." %}

  {% endfor %}
{% endblock content %}