dashboard.html.ep 3.07 KB
Newer Older
Luc Didry's avatar
Luc Didry committed
1
2
3
4
5
6
% # vim:set sts=4 sw=4 ts=4 ft=html.epl expandtab:
% layout 'default';
% title $self->l('Dashboard').' · Dolomon';

% my $h = current_user->get_stats;
<div class="row text-center">
Luc Didry's avatar
Luc Didry committed
7
    <div class="col-sm-6 col-md-4">
Luc Didry's avatar
Luc Didry committed
8
9
10
11
        <a href="<%= url_for('dolo') %>"
            data-toggle="tooltip"
            data-placement="bottom"
            title="<%= l('The links you want to count the clicks on.') %>">
Luc Didry's avatar
Luc Didry committed
12
13
14
15
16
            <div class="thumbnail">
                <div class="caption">
                    <h1 id="dolo_nb"><%= $h->{dolos} %></h1>
                    <p><%= l('Dolo(s)') %></p>
                </div>
Luc Didry's avatar
Luc Didry committed
17
            </div>
Luc Didry's avatar
Luc Didry committed
18
        </a>
Luc Didry's avatar
Luc Didry committed
19
    </div>
Luc Didry's avatar
Luc Didry committed
20
    <div class="col-sm-6 col-md-4">
Luc Didry's avatar
Luc Didry committed
21
22
23
24
25
26
27
28
29
        <a href="#"
            data-toggle="modal"
            data-target="#addModal"
            data-add="dolo"
            data-action="<%= url_for('add_dolo') %>">
            <div class="thumbnail"
                data-toggle="tooltip"
                data-placement="bottom"
                title="<%= l('This is where the journey begins.') %>">
Luc Didry's avatar
Luc Didry committed
30
31
32
33
                <div class="caption">
                    <h1>+</h1>
                    <p><%= l('Add a dolo') %></p>
                </div>
Luc Didry's avatar
Luc Didry committed
34
            </div>
Luc Didry's avatar
Luc Didry committed
35
        </a>
Luc Didry's avatar
Luc Didry committed
36
    </div>
Luc Didry's avatar
Luc Didry committed
37
38
39
    <div class="col-sm-6 col-md-4">
        <div class="thumbnail">
            <div class="caption">
Luc Didry's avatar
Luc Didry committed
40
                <h1 id="total_hits"><%= $h->{total} %></h1>
Luc Didry's avatar
Luc Didry committed
41
                <p><%= l('Total count of hits on your dolos') %></p>
Luc Didry's avatar
Luc Didry committed
42
43
44
45
46
47
48
            </div>
        </div>
    </div>
    <div class="col-md-12">
        <hr>
    </div>
    <div class="col-sm-6 col-md-4">
Luc Didry's avatar
Luc Didry committed
49
50
51
52
        <a href="<%= url_for('categories') %>"
            data-toggle="tooltip"
            data-placement="top"
            title="<%= l('To sort and group dolos.') %>">
Luc Didry's avatar
Luc Didry committed
53
54
55
56
57
            <div class="thumbnail">
                <div class="caption">
                    <h1 id="cat_nb"><%= $h->{cats} %></h1>
                    <p><%= l('Categorie(s)') %></p>
                </div>
Luc Didry's avatar
Luc Didry committed
58
            </div>
Luc Didry's avatar
Luc Didry committed
59
        </a>
Luc Didry's avatar
Luc Didry committed
60
    </div>
Luc Didry's avatar
Luc Didry committed
61
    <div class="col-sm-6 col-md-4">
Luc Didry's avatar
Luc Didry committed
62
63
64
65
        <a href="<%= url_for('tags') %>"
            data-toggle="tooltip"
            data-placement="top"
            title="<%= l('To identify similar dolos.') %>">
Luc Didry's avatar
Luc Didry committed
66
67
68
69
70
            <div class="thumbnail">
                <div class="caption">
                    <h1 id="tag_nb"><%= $h->{tags} %></h1>
                    <p><%= l('Tag(s)') %></p>
                </div>
Luc Didry's avatar
Luc Didry committed
71
            </div>
Luc Didry's avatar
Luc Didry committed
72
        </a>
Luc Didry's avatar
Luc Didry committed
73
    </div>
Luc Didry's avatar
Luc Didry committed
74
    <div class="col-sm-6 col-md-4">
Luc Didry's avatar
Luc Didry committed
75
76
77
78
        <a href="<%= url_for('apps') %>"
            data-toggle="tooltip"
            data-placement="top"
            title="<%= l('External tools that you allowed to use your Dolomon account') %>">
Luc Didry's avatar
Luc Didry committed
79
80
81
82
83
            <div class="thumbnail">
                <div class="caption">
                    <h1 id="app_nb"><%= $h->{apps} %></h1>
                    <p><%= l('Application(s)') %></p>
                </div>
Luc Didry's avatar
Luc Didry committed
84
            </div>
Luc Didry's avatar
Luc Didry committed
85
86
87
88
89
90
        </a>
    </div>
</div>
<div class="row text-center">
    <div class="col-md-12">
        <hr>
Luc Didry's avatar
Luc Didry committed
91
    </div>
Luc Didry's avatar
Luc Didry committed
92
93
94
    <p>
        <a href="<%= url_for('/about') %>"><%= l('How does it work?') %></a>
    </p>
Luc Didry's avatar
Luc Didry committed
95
</div>