~daker/loco-team-portal/fix.1093113

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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{% extends "base.html" %}
{% load i18n %}

{% block sub_nav_links %}
<li><a class="sub-nav-item" href="{% url about_loco %}">{% trans "About Local Community (LoCo) Teams" %}</a></li>
<li><a class="sub-nav-item" href="{% url using_locodir %}">{% trans "Using the LoCo Team Portal" %}</a></li>
{% endblock %}

{% block extrahead %}{{block.super}}
        <link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}css/twidenash.css" />
        <link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}css/continents.css" />
        <script type="text/javascript" src="{{MEDIA_URL}}js/twidenash/jquery-twidenash.js"></script>
        <script type="text/javascript"> 
        //<![CDATA[
            $(function() {
                $('.twidenash').twidenash( {
                    sources: [
                        'http://search.twitter.com/',
                    ]
                });
            });
        //]]>
        </script>
{% endblock %}

{% block content %}
<div class="row">
<section class="span-12">
<h1 class="centered">{% trans "Ubuntu Local Community (LoCo) Team Portal" %}</h1>
    <ul id="continents">
        <li id="northamerica">
        <a href="{% url team-list %}#North%20America">
        </a>
        </li>
        <li id="southamerica">
       	<a href="{% url team-list %}#South%20America">
        </a>
        </li>    
        <li id="asia">
        <a href="{% url team-list %}#Asia">
        </a>
        </li>
        <li id="australia">
        <a href="{% url team-list %}#Australia/Oceania">
        </a>
        </li>
        <li id="africa">
        <a href="{% url team-list %}#Africa">
        </a>
        </li>
        <li id="europe">
        <a href="{% url team-list %}#Europe">
        </a>
        </li>    
    </ul>
    <br />
    <p style="text-align: center; font-weight: bold;">{% trans "Click on your continent to find teams near you." %}</p>
</section></div>

<div class="row">
<section class="span-8">
    <h2>{% trans "Latest blog articles" %}</h2>
    {% for article in articles %}
        <article class="blog-entry">
            {% if article.source.team %}
                <img class="blog-entry-image" src="{{ article.source.team.mugshot_url }}" /> 
            {% else %}
                {% if article.source.user %}
                 <img class="blog-entry-image" src="{{ article.source.user.mugshot }}" /> 

                {% endif %}
            {% endif %}
            <h4 class="blog-entry-title"><a href="{{ article.link }}" target="_blank">{{ article.title }}</a></h4>
            <div class="blog-entry-author">
                {% if article.source.team %}
                    <a class="team" href="{% url team-detail article.source.team %}" target="_blank">{{ article.source.team.name }}</a>
                {% endif %}
                {% if article.source.user %}
                    {% if article.source.team %}, {% endif %}
                    <a class="user" href="http://launchpad.net/~{{ article.source.user.user.username }}" target="_blank">{{ article.source.user }}</a>
                {% endif %}
            </div>

            <div class="blog-entry-text">
                <p>{{ article.snippet|safe }} ... </p>
                <p class="more"><a href="{{ article.link }}" target="_blank">{% trans 'Read More' %}</a>
</p>
            </div>
        </article>
    {% endfor %}
</section>
<section class="span-4 last">
    <h2>{% if team_event_count %}{{ team_event_count }} {% endif %}{% trans "Upcoming Events" %}</h2>
    <a href="{% url event-list %}"><img src="{{ MEDIA_URL }}img/home-map.png" /></a>

    <h2>{% trans "Latest social messages" %}</h2>
    <div class="twidenash" id="locoteams"></div>
</section>
</div>

{% endblock %}