Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate
1
    <div id="palette">
2
        <span id="tags-section">
3
            <span id="back-button" onclick="history.back();">{{_('AtrĂ¡s')}}</span>
4
            <span id="location">{{meta}}</span>
5
            {%- for tag in session.tags %}
6
            <span class="tag">{{tag}}</span>
7
            {%- endfor %}
8
        </span>
9
    </div>
10
    <div id="toolbar">
11
        <ul class="toolbar-bar">
12
        <li class="toolbar-items">
13
            <div id="sn-button" onclick="location='/_toggle_connect'">
14
                {% if (session['connected'] or False) %}
15
                <img class="toolbar-icon sugar-network-online" src="/static/icons/sugar-network.png" /> 
16
                {% else %}
17
                <img class="toolbar-icon" src="/static/icons/sugar-network.png" /> 
18
                {% endif %}
19
            </div>
20
            <div id="sn-tooltip" class="tooltip">
21
            {%- for item in mounts -%}
22
            <div class="menu-option" onclick="location='/_toggle_connect?select={{item['mount']}}'">{{item['name']}}</div>
23
            {%- endfor -%}
24
            </div>
25
        </li>
26
        <!--li class="toolbar-items" onclick="location='/favorites'">
27
            <div>
28
                <img class="toolbar-icon" src="/static/icons/tool-shape-star.png" /> 
29
                <img onclick="location='/new/resource?cursor_offset={{context_offset}}'" class="toolbar-icon white-button" src="/static/icons/list-add.png" /> 
30
            </div>
31
        </li-->
32
        <!--li class="toolbar-items" onclick="location='/new/resource'"-->
33
        <li class="toolbar-items">
34
            <div id="browser-button" onclick="location='/context?type=all'">
35
                <img class="toolbar-icon" src="/static/icons/insert-table.png" /> 
36
            </div>
37
            <div id="browser-tooltip" class="tooltip">
38
            <div class="menu-option" onclick="location='/context?type=application'">{{_('Applications')}}</div>
39
            <div class="menu-option" onclick="location='/context?type=activity'">{{_('Activities')}}</div>
40
            <div class="menu-option" onclick='alert("{% trans %}Work in progress.{% endtrans %}"); return false;'
41
>{{_('Files')}}</div>
42
            <div class="menu-option" onclick="location='/context?type=article'">{{_('Articles')}}</div>
43
            <hr class="menu-separator"/>
44
            <div class="menu-option" onclick="location='/context?type=all'">{{_('All')}}</div>
45
            </div>
46
        </li>
47
        <li class="toolbar-items">
48
            <!-- input id="search" type="text" name="terms" value="{{query or ''}}"
49
                onkeyup="onKeyPressed(event)" /-->
50
            <div class="ui-widget">
51
                <input id="query" name="terms" value="{{query or ''}}">
52
            </div>
53
        </li>
54
        <li class="toolbar-items" onclick="improve_the_system('{{session.get('last_context')}}')">
55
            <div>
56
                <img class="toolbar-icon" src="/static/icons/list-add.png" /> 
57
            </div>
58
        </li>
59
        <li class="toolbar-items" onclick="new_context('{{session.get('last_context')}}')">
60
            <div>
61
                <img class="toolbar-icon" src="/static/icons/go-up.png" /> 
62
            </div>
63
        </li>
64
        </ul>
65
        <ul class="toolbar-bar toolbar-right">
66
        <li class="toolbar-items" onclick='alert("{% trans %}Work in progress.{% endtrans %}")'>
67
            <div>
68
                <img class="toolbar-icon" src="/static/icons/sugar-xo.png" /> 
69
            </div>
70
        </li>
71
        <li class="toolbar-items right">
72
            <div id="list-button" onclick="location='/resource'">
73
                <img class="toolbar-icon" src="/static/icons/view-list.png" /> 
74
            </div>
75
            <!--div id="browser-tooltip" class="tooltip">
76
            <div class="menu-option" onclick="location='/resource/questions'">{{_('Questions')}}</div>
77
            <div class="menu-option" onclick="location='/resource/ideas'">{{_('Ideas')}}</div>
78
            <div class="menu-option" onclick="location='/resource/problems'">{{_('Problems')}}</div>
79
            <div class="menu-option" onclick="location='/resource/reviews'">{{_('Reviews')}}</div>
80
            <hr class="menu-separator"/>
81
            <div class="menu-option" onclick="location='/resource'">{{_('All')}}</div>
82
            </div-->
83
        </li>
84
        </ul>
85
    </div>