summaryrefslogtreecommitdiff
path: root/src/jwebmail/templates/_folders.html
blob: c2fa645ef3898a80a2e67701bcecdb52562689af (plain)
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
<div class="columns">

  <div class="column">
    <nav class="navbar">

      <div class="navbar-brand">
        <span class=navbar-item>
          <b>{{ request.view_args.folder or gettext('Home') }}</b>
        </span>
        <a role="button" class="navbar-burger" data-target="navMenu" id=navbar-toggle>
          <span aria-hidden="true"></span>
          <span aria-hidden="true"></span>
          <span aria-hidden="true"></span>
        </a>
      </div>

      <div class="navbar-menu" id="navMenu">
        <div class=navbar-start>
          {% for f in mail_folders if f is ne request.view_args.get('folder', '') %}
            <a href="{{ url_for('displayheaders', folder=f, per_page=request.args.get('per_page'), sort=request.args.get('sort')) }}"
                class="navbar-item">
              {{ f or gettext('Home') }}
            </a>
          {% endfor %}
        </div>
      </div>
    </nav>
  </div>

  <div class="column is-size-7">
    <div class="columns is-multiline is-mobile">
      <span class="column is-half-mobile has-text-centered">
        {{ total_mails }} Mails
      </span>
      {% if total_new_mails %}
        <span class="column is-half-mobile has-text-centered">
          {% trans %}{{ total_new_mails }} new{% endtrans %}
        </span>
      {% endif %}
      <span class="column has-text-centered">
        {% if total_size %}
          {% trans %}mailbox size: {% endtrans %}
          {{ total_size|filesizeformat|num_localize }}
        {% endif %}
      </span>
    </div>
  </div>

  <nav class="column has-text-right">
    <a href="{{ url_for('write') }}" class="button">{% trans %}Write{% endtrans %}</a>
    <a href="{{ url_for('logout') }}" class="button">{% trans %}Logout{% endtrans %}</a>
  </nav>

</div>