home.html 4.15 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>
21
      <h2>{% trans "What about this instance ?" %}</h2>
Nicolas Joyard's avatar
Nicolas Joyard committed
22
      <p>
23
        {{ HOMEPAGE_INSTANCE_TEXT }}
Nicolas Joyard's avatar
Nicolas Joyard committed
24 25
      </p>
    </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
26
  </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
27

Nicolas Joyard's avatar
Nicolas Joyard committed
28
  <div class="row">
Nicolas Joyard's avatar
Nicolas Joyard committed
29
    <div class="col-md-4">
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
      <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
66 67 68
    </div>

    <div class="col-md-4">
Nicolas Joyard's avatar
Nicolas Joyard committed
69 70 71 72 73 74 75
      <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
76 77 78 79 80 81 82 83
    </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
84 85 86
  </div>

  <div class="row">
Nicolas Joyard's avatar
Nicolas Joyard committed
87
    <div class="col-md-4">
Nicolas Joyard's avatar
Nicolas Joyard committed
88
      <h3>{% trans "More information" %}</h3>
Nicolas Joyard's avatar
Nicolas Joyard committed
89 90
      <div class="btn-group">
        <a class="btn btn-primary" target="_blank" href="http://www.memopol.org/">
91
          {% fontawesome_icon "bookmark" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
92 93 94
          {% trans "Memopol blog" %}
        </a>
        <a class="btn btn-primary" target="_blank" href="http://memopol.rtfd.org/">
95
          {% fontawesome_icon "info-circle" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
96 97 98 99 100 101
          {% trans "Documentation" %}
        </a>
      </div>
    </div>

    <div class="col-md-4">
Nicolas Joyard's avatar
Nicolas Joyard committed
102
      <h3>{% trans "Contact us" %}</h3>
Nicolas Joyard's avatar
Nicolas Joyard committed
103 104
      <div class="btn-group">
        <a class="btn btn-primary" target="_blank" href="https://twitter.com/memopol2">
105
          {% fontawesome_icon "twitter" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
106 107 108
          {% trans "Twitter" %}
        </a>
        <a class="btn btn-primary" target="_blank" href="https://webchat.freenode.net/?nick=memopol-user-...&channels=lqdn-memopol&prompt=1">
109
          {% fontawesome_icon "commenting" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
110 111 112 113 114 115
          {% trans "IRC Channel" %}
        </a>
      </div>
    </div>

    <div class="col-md-4">
Nicolas Joyard's avatar
Nicolas Joyard committed
116
      <h3>{% trans "Contributing" %}</h3>
Nicolas Joyard's avatar
Nicolas Joyard committed
117
      <div class="btn-group">
okhin's avatar
okhin committed
118
        <a class="btn btn-default" target="_blank" href="https://git.laquadrature.net/political-memory/political_memory">
119
          {% fontawesome_icon "git" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
120 121
          {% trans "Code repository" %}
        </a>
okhin's avatar
okhin committed
122
        <a class="btn btn-default" target="_blank" href="https://git.laquadrature.net/political-memory/political_memory/issues/new">
123
          {% fontawesome_icon "bug" %}
Nicolas Joyard's avatar
Nicolas Joyard committed
124 125 126 127 128 129
          {% trans "Report an issue" %}
        </a>
      </div>
    </div>
  </div>

130 131 132 133 134 135 136 137 138 139
  <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
140
{% endblock %}