home.html 4.41 KB
Newer Older
Robin's avatar
Robin committed
1
{% extends "base.html" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
2
3

{% load i18n %}
4
{% load fontawesome %}
Nicolas Joyard's avatar
Nicolas Joyard committed
5
{% load staticfiles %}
6
{% load memopol_tags %}
Nicolas Joyard's avatar
Nicolas Joyard committed
7

Robin's avatar
Robin committed
8
{% block content %}
Nicolas Joyard's avatar
Nicolas Joyard committed
9
10
11
  <div class="row">
    <div class="col-md-12">
      <h1>{% trans "Welcome to Memopol" %}</h1>
Robin's avatar
Robin committed
12
    </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
13
14
15
16
  </div>

  <div class="row">
    <div class="col-md-12">
17
      <h2>{% trans "What is Memopol ?" %}</h2>
Nicolas Joyard's avatar
Nicolas Joyard committed
18
      <p>
19
        {{ HOMEPAGE_INTRO_TEXT }}
Nicolas Joyard's avatar
Nicolas Joyard committed
20
      </p>
Porkepix's avatar
Porkepix committed
21
      <img src="{% static "images/banniere-en.png" %}" alt=""/>
22
      <h2>{% trans "What about this instance ?" %}</h2>
Nicolas Joyard's avatar
Nicolas Joyard committed
23
      <p>
24
        {{ HOMEPAGE_INSTANCE_TEXT }}
Nicolas Joyard's avatar
Nicolas Joyard committed
25
26
      </p>
    </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
27
  </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
28

Nicolas Joyard's avatar
Nicolas Joyard committed
29
  <div class="row">
Nicolas Joyard's avatar
Nicolas Joyard committed
30
    <div class="col-md-4">
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
      <h2>{% trans "Latest votes" %}</h2>

      <table class="table table-responsive table-condensed">
        <tr>
          <th></th>
          <th></th>
          <th></th>
          <th>{{ "for"|position_icon }}</th>
          <th>{{ "against"|position_icon }}</th>
          <th>{{ "abstain"|position_icon }}</th>
        </tr>
        {% for proposal in latest_votes %}
          <tr class="proposal-title {% if forloop.counter0|divisibleby:2 %}active{% endif %}">
            <td colspan="6">
              <a href="{% url 'dossier-detail' proposal.dossier.pk %}">
                {{ proposal.title }}
              </a>
            </td>
          </tr>
          <tr class="proposal-details {% if forloop.counter0|divisibleby:2 %}active{% endif %}">
            <td>
              {% for chamber in proposal.dossier.chambers %}
                {{ chamber | chamber_icon }}
              {% endfor %}
            </td>
            <td>
              {% include "blocks/_themetags.html" with themes=proposal|proposal_themes %}
            </td>
            <td>{{ proposal.status|proposal_status_label:proposal.recommendation }}</td>

            <td>{{ proposal.total_for }}</td>
            <td>{{ proposal.total_against }}</td>
            <td>{{ proposal.total_abstain }}</td>
          </tr>
        {% endfor %}
      </table>
Nicolas Joyard's avatar
Nicolas Joyard committed
67
68
69
    </div>

    <div class="col-md-4">
Nicolas Joyard's avatar
Nicolas Joyard committed
70
71
72
73
74
75
76
      <h2>{% trans "Featured themes" %}</h2>

      {% for theme in featured_themes %}
        {% include "memopol_themes/_theme_card.html" with theme=theme cols=12 %}
      {% empty %}
        {% trans "No currently featured theme :'(" %}
      {% endfor %}
Nicolas Joyard's avatar
Nicolas Joyard committed
77
78
79
80
81
82
83
84
    </div>

    <div class="col-md-4 todays-mep">
      <h2>{% trans "Today's Representative" %}</h2>

      {% include "representatives/_representative_card.html" with representative=todays_mep cols=12 %}
    </div>

Nicolas Joyard's avatar
Nicolas Joyard committed
85
86
  </div>

87
88
89
90
91
92
93
94
95
96
  <div class="row">
    <div class="col-md-12">
      <h2>{% trans "Chambers in this instance" %}</h2>
    </div>

    {% for chamber in chambers %}
      {% include "blocks/_chamber_card.html" with chamber=chamber %}
    {% endfor %}
  </div>

Nicolas Joyard's avatar
Nicolas Joyard committed
97
  <div class="row">
Nicolas Joyard's avatar
Nicolas Joyard committed
98
    <div class="col-md-4">
Nicolas Joyard's avatar
Nicolas Joyard committed
99
      <h3>{% trans "More information" %}</h3>
Nicolas Joyard's avatar
Nicolas Joyard committed
100
101
      <div class="btn-group">
        <a class="btn btn-primary" target="_blank" href="http://www.memopol.org/">
102
          {% fontawesome_icon "bookmark" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
103
104
105
          {% trans "Memopol blog" %}
        </a>
        <a class="btn btn-primary" target="_blank" href="http://memopol.rtfd.org/">
106
          {% fontawesome_icon "info-circle" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
107
108
109
110
111
112
          {% trans "Documentation" %}
        </a>
      </div>
    </div>

    <div class="col-md-4">
Nicolas Joyard's avatar
Nicolas Joyard committed
113
      <h3>{% trans "Contact us" %}</h3>
Nicolas Joyard's avatar
Nicolas Joyard committed
114
115
      <div class="btn-group">
        <a class="btn btn-primary" target="_blank" href="https://twitter.com/memopol2">
116
          {% fontawesome_icon "twitter" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
117
118
119
          {% trans "Twitter" %}
        </a>
        <a class="btn btn-primary" target="_blank" href="https://webchat.freenode.net/?nick=memopol-user-...&channels=lqdn-memopol&prompt=1">
120
          {% fontawesome_icon "commenting" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
121
122
123
124
125
126
          {% trans "IRC Channel" %}
        </a>
      </div>
    </div>

    <div class="col-md-4">
Nicolas Joyard's avatar
Nicolas Joyard committed
127
      <h3>{% trans "Contributing" %}</h3>
Nicolas Joyard's avatar
Nicolas Joyard committed
128
      <div class="btn-group">
129
        <a class="btn btn-default" target="_blank" href="https://git.laquadrature.net/memopol/memopol">
130
          {% fontawesome_icon "git" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
131
132
          {% trans "Code repository" %}
        </a>
133
        <a class="btn btn-default" target="_blank" href="https://git.laquadrature.net/memopol/memopol/issues/new">
134
          {% fontawesome_icon "bug" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
135
136
137
138
139
140
          {% trans "Report an issue" %}
        </a>
      </div>
    </div>
  </div>

141
142
143
144
145
146
147
148
149
150
  <div class="row">
    <div class="col-md-12">
      <p>
        <br><br>
        {% include "text/license.html" %}
        <br><br>
      </p>
    </div>
  </div>

Robin's avatar
Robin committed
151
{% endblock %}