{% extends "tribes/base.html" %} {% load i18n %} {% load account_tags %} {% load uni_form_tags %} {% load wiki_tags %} {% load avatar_tags %} {% load threadedcommentstags %} {% load pagination_tags %} {% load extra_tagging_tags %} {% load tribes_tags %} {% load group_tags %} {% load topics_tags %} {% load photo_tags %} {% load theme_tags %} {% block head_title %}{{ tribe.name }}{% endblock %} {% block body %} {% if user.is_authenticated %}

{% trans "Members" %}

{% for member in tribe.members.all %} {% if forloop.counter0|divisibleby:"3" %}{% endif %} {% if forloop.counter0|add:"1"|divisibleby:"3" %}{% endif %} {% endfor %} {% if tribe.members.all|length|divisibleby:"3" %}{% else %}{% endif %}
{% avatar member 40 %}
{% endif %}

{% trans "Tribe" %} {{ tribe.name }}

{% trans "Slug:" %} {{ tribe.slug }}
{% trans "Creator:" %} {% user_display tribe.creator %}
{% trans "Created:" %} {{ tribe.created|date }}
{% show_tags_for tribe %}

{{ tribe.description }}

{% ifequal user tribe.creator %}

{% trans "Edit details" %}

{% csrf_token %}
{{ tribe_form|as_uni_form }}
{% ifequal tribe.members.all.count 1 %}

{% silk "delete" %} {% trans "Delete tribe" %}

{% else %}

{% trans "You are not the only member of the tribe so you can't delete the tribe." %}

{% endifequal %} {% endifequal %} {% if user.is_authenticated %}
{% csrf_token %} {% if is_member %} {% ifequal user tribe.creator %}

{% trans "You are the creator of this tribe so can't leave (yet)." %}

{% else %} {% endifequal %} {% else %} {% endif %}
{% else %} {% url acct_signup as signup_url %} {% url acct_login as login_url %}

{% blocktrans %}Sign up and log in to join this tribe.{% endblocktrans %}

{% endif %} {% if user.is_authenticated %}

{% trans "Discussion Topics" %}{% if tribe.topics.all.count %} ({{ tribe.topics.all.count }}){% endif %}

{% get_topics_for_group tribe as topic_queryset %} {% with topic_queryset|slice:":5" as topics %} {% if topics %} {% for topic in topics|slice:":5" %} {% show_topic topic %} {% endfor %}

{% trans "more..." %}

{% else %} {% groupurl topic_list tribe as new_topic_url %}

{% blocktrans %}None yet. Start one...{% endblocktrans %}

{% endif %} {% endwith %} {% content_objects tribe "wiki.Article" as articles %}

{% trans "Wiki Articles" %}{% if articles %} ({{ articles|length }}){% endif %}

{% if articles %} {% for article in articles %} {% show_teaser article %} {% endfor %}

{% trans "more..." %}

{% else %} {% groupurl wiki_list tribe as wiki_url %}

{% blocktrans %} None yet. Go to the wiki to start a new article. {% endblocktrans %}

{% endif %} {% public_pool_photos as photos %} {% content_objects tribe photos as photos %}

{% trans "Tribe Photo Pool" %}

{% if photos %}
{% for photo in photos %} {% endfor %}
{% else %}

{% groupurl photo_upload tribe as photo_upload_url %} {% blocktrans %} There are no photos associated to this tribe. You can add a photo. {% endblocktrans %}

{% endif %} {% comment %}

{% trans "Tweets" %}

{% tweet_listing tweets 1 0 %}

{% trans "Upcoming Events" %}

{% get_calendar tribe as calendar %} {% if calendar.get_upcoming_events %} {% for event in calendar.get_upcoming_events %} {% endfor %}
{{ event.title }} {{ event.start }}-{{ event.end }}
{% else %} {% trans "There are no upcoming events." %} {% endif %}

{% trans "calendar..." %}

{% endcomment %} {% endif %}
{% endblock %} {% block extra_body %} {% endblock %}