File diff c18fd7e378ab → 6e67b505013b
symposion_project/templates/dashboard.html
Show inline comments
 
{% extends "site_base.html" %}
 

	
 
{% load i18n %}
 
{% load proposal_tags %}
 
{% load teams_tags %}
 

	
 
{% block head_title %}Dashboard{% endblock %}
 

	
 
{% block body_class %}auth{% endblock %}
 

	
 
{% block body %}
 
    <div class="dashboard-panel">
 
        <div class="dashboard-panel-header">
 
            <i class="icon-bullhorn"></i>
 
            <h3>{% trans "Speaking" %}</h3>
 
            <div class="pull-right header-actions">
 
                {% if not user.speaker_profile %}
 
                    <a href="{% url speaker_create %}" class="btn">
 
                        <i class="icon-plus-sign"></i> Create a speaker profile
 
                    </a>
 
                {% else %}
 
                    <a href="{% url speaker_edit %}" class="btn">
 
                        <i class="icon-pencil"></i> Edit your speaker profile
 
                    </a>
 
                    <a href="{% url proposal_submit %}" class="btn">
 
                        <i class="icon-plus-sign"></i> Submit a new proposal
 
                    </a>
 
                {% endif %}
 
            </div>
...
 
@@ -123,27 +124,31 @@
 
    </div>
 

	
 
    <div class="dashboard-panel">
 
        <div class="dashboard-panel-header">
 
            <i class="icon-group"></i>
 
            <h3>{% trans "Teams" %}</h3>
 
        </div>
 
        
 
        <div class="dashboard-panel-content">
 
            {% if user.memberships.exists %}
 
                <h4>Your Teams</h4>
 
                <ul>
 
                    {% for membership in user.memberships.all %}
 
                        <li>
 
                            {% if membership.state == "manager" %}
 
                                <a href="{% url team_detail membership.team.slug %}">{{ membership.team.name }}</a>
 
                            {% else %}
 
                                {{ membership.team.name }}
 
                            {% endif %}
 
                            <span class="badge">{{ membership.get_state_display }}</span>
 
                        </li>
 
                    {% endfor %}
 
                </ul>
 
            {% endif %}
 
            {% available_teams as available_teams %}
 
            {% for team in available_team %}
 
                {{ team }}
 
            {% endfor %}
 
        </div>
 
    </div>
 
{% endblock %}