Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit ec7259ed7ab49c7ad0e7b87f142a8178232a9bc6

some new icons, UI tweaks and bugfix
app/app.py
(5 / 2)
  
9393 """
9494 Context Grid
9595 """
96 terms = session['tags'][:]
96 try:
97 terms = session['tags'][:]
98 except KeyError:
99 terms = []
97100 if query:
98101 terms.append(query)
99102
122122 if page > total_pages and total_pages > 0:
123123 abort(404)
124124 return render_template('context-grid.html',
125 query=query, total=result.total,
125 query=query, total_pages=total_pages,
126126 result=r, type='context', info=info, page=page)
127127
128128@app.route('/context/<context>')
  
2525#search {
2626 height: 28px;
2727 width: 350px;
28 border-radius: 15px;
29 text-indent: 5px;
2830 }
2931
3032ul.toolbar-bar{
4949
5050.toolbar-icon {
5151 height: 40px;
52}
52 padding: 5px;
53 margin-top: 2px;
54 }
5355
56.toolbar-icon:hover {
57 background-color: #808080;
58 border-radius: 15px;
59 }
60
61
5462#tags-section {
5563}
5664
7474 }
7575
7676.tag {
77 -moz-border-radius: 15px;
7877 border-radius: 15px;
7978 background-color: #c5c5c5;
8079 margin-left:20px;
8585 float: right;
8686 margin-right: 20px;
8787 }
88
8889.pagination_button {
8990 float: right;
9091 margin-right: 20px;
9192 margin-top: 7px;
93 border: none;
94 border-radius: 5px;
9295 }
9396
9497/*** list view styles ****/
Binary files differ
  
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!-- Created with Inkscape (http://www.inkscape.org/) -->
3
4<svg
5 xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
6 xmlns:dc="http://purl.org/dc/elements/1.1/"
7 xmlns:cc="http://creativecommons.org/ns#"
8 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
9 xmlns:svg="http://www.w3.org/2000/svg"
10 xmlns="http://www.w3.org/2000/svg"
11 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
13 width="55"
14 height="55"
15 id="svg2"
16 version="1.1"
17 inkscape:version="0.48.2 r9819"
18 sodipodi:docname="mejorar-sistema.svg">
19 <defs
20 id="defs4">
21 <linearGradient
22 id="linearGradient3827"
23 osb:paint="solid">
24 <stop
25 style="stop-color:#000000;stop-opacity:1;"
26 offset="0"
27 id="stop3829" />
28 </linearGradient>
29 <linearGradient
30 id="linearGradient3821"
31 osb:paint="solid">
32 <stop
33 style="stop-color:#808080;stop-opacity:1;"
34 offset="0"
35 id="stop3823" />
36 </linearGradient>
37 </defs>
38 <sodipodi:namedview
39 id="base"
40 pagecolor="#ffffff"
41 bordercolor="#666666"
42 borderopacity="1.0"
43 inkscape:pageopacity="0.0"
44 inkscape:pageshadow="2"
45 inkscape:zoom="3.959798"
46 inkscape:cx="40.143504"
47 inkscape:cy="16.951108"
48 inkscape:document-units="px"
49 inkscape:current-layer="layer1"
50 showgrid="false"
51 inkscape:window-width="1024"
52 inkscape:window-height="548"
53 inkscape:window-x="-1"
54 inkscape:window-y="28"
55 inkscape:window-maximized="1"
56 width="480px" />
57 <metadata
58 id="metadata7">
59 <rdf:RDF>
60 <cc:Work
61 rdf:about="">
62 <dc:format>image/svg+xml</dc:format>
63 <dc:type
64 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
65 <dc:title></dc:title>
66 </cc:Work>
67 </rdf:RDF>
68 </metadata>
69 <g
70 inkscape:label="Layer 1"
71 inkscape:groupmode="layer"
72 id="layer1"
73 transform="translate(0,-997.36218)">
74 <path
75 style="fill:#ffffff;fill-opacity:1;stroke:#666666;stroke-width:2.15680075;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
76 d="m 24.036872,1003.268 c -1.335294,-0.036 -5.39348,1.2626 -8.35013,2.7549 -5.566172,2.8094 -9.7967146,8.1042 -11.5595349,14.5134 -3.13466834,11.3967 3.789991,23.1099 16.0470189,27.1236 3.783748,1.2391 10.470522,1.1855 14.797339,-0.1136 6.549338,-1.9663 12.491904,-7.1345 15.052956,-13.15 0.982929,-2.3087 1.181605,-3.8134 1.192875,-8.6626 0.01333,-5.7389 -0.02391,-5.928 -1.959724,-9.6281 -3.450696,-6.5958 -10.173589,-11.5929 -16.70026,-12.44 l -2.470957,-0.3408 0,2.3573 c 0,2.1298 0.137311,2.3524 1.476894,2.6697 5.241282,1.2421 10.27669,5.0543 12.724008,9.6283 1.426933,2.6669 1.5905,3.451 1.5905,7.7821 0,4.2413 -0.191169,5.1628 -1.505295,7.6968 -1.804773,3.4804 -5.328396,7.0134 -8.492139,8.4638 -9.536589,4.3718 -20.728244,0.6065 -25.476417,-8.5489 -1.2731194,-2.4549 -1.4503105,-3.3971 -1.4484925,-7.6117 0.0023,-4.2433 0.1797991,-5.1032 1.4484925,-7.3845 2.764473,-4.9709 6.327667,-7.9222 11.531132,-9.543 2.803699,-0.8733 2.811779,-0.8882 2.811779,-3.039 0,-1.1853 -0.147544,-2.2864 -0.31242,-2.4426 -0.06736,-0.064 -0.206865,-0.08 -0.397625,-0.085 z m 3.1526,9.8838 c -0.609871,0.01 -1.139935,0.2976 -1.760912,0.8236 -3.361601,2.8474 -9.77022,9.84 -9.77022,10.6507 0,1.3696 1.945555,3.181 3.436618,3.181 0.84122,0 1.920516,-0.7349 3.181002,-2.1585 l 1.902921,-2.1586 0.0284,6.5608 c 0.0086,5.3717 0.153915,6.7095 0.880456,7.4697 1.086421,1.1368 3.55098,1.1887 4.686298,0.1136 0.677517,-0.6415 0.867641,-2.0891 0.880455,-7.4697 l 0,-6.6744 1.988127,2.1586 c 2.167234,2.3531 3.878495,2.7533 5.566753,1.3065 2.031751,-1.7413 1.301366,-3.2577 -4.231869,-8.7194 -3.745657,-3.6973 -5.446302,-5.1057 -6.78803,-5.0839 z"
77 id="path3186"
78 inkscape:connector-curvature="0" />
79 </g>
80</svg>
  
3333 <img class="toolbar-icon" src="/static/icons/sugar-xo.png" />
3434 </div>
3535 </li>
36 <li class="toolbar-items right" onclick="location='/new/resource'">
37 <div>
38 <img class="toolbar-icon" src="/static/icons/mejorar-sistema.png" />
39 </div>
40 </li>
3641 </ul>
3742 </div>
3843 <div id="palette">
39 {%- if (page or total) != total %}
40 <input class="pagination_button" type="button" value=">" onclick="location='?page={{ (page or 0) +1 }}'" />
44 {%- if (page or total_pages) != total_pages %}
45 <input class="pagination_button" type="button" value="»" onclick="location='?page={{ (page or 0) +1 }}'" />
4146 {%- endif %}
4247 <span id="tags-section">
4348 {%- for tag in session.tags %}
5151 </span>
5252 <span id="info">{{info}}</span>
5353 {%- if (page or None) > 1 %}
54 <input class="pagination_button" type="button" value="<" onclick="location='?page={{ (page or 0) -1 }}'" />
54 <input class="pagination_button" type="button" value="«" onclick="location='?page={{ (page or 0) -1 }}'" />
5555 {%- endif %}
5656 </div>
5757 {% block view %}{% endblock view %}