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

Commit 513dbd021e1ff53eab4b76c35b7763af3379bac4

Some UI tweaks.
app/app.py
(5 / 2)
  
272272 query=query, page=1))
273273
274274 meta = _("browsing %(total)s contexts", total=total)
275
275276 stroke, fill = get_colors()
276277 if '_pjax' in request.args:
277278 template='resource-grid.html'
322322 context=client.Context(context_guid, reply=['guid', 'title'])
323323 session['last_context']=context_guid
324324
325 stroke, fill = get_colors()
325326 if '_pjax' in request.args:
326327 template='context-content.html'
327328 else:
328329 template='context-view.html'
329330 return render_template(template,result=r,resource=resource,
330331 total_pages=total_pages,info=info,meta=meta,
331 resource_label=resource_label,
332 type='resource', context=context,page=page)
332 resource_label=resource_label,stroke=stroke,
333 type='resource', context=context,page=page,
334 fill=fill)
333335
334336@app.route('/submit_resource/<resource_label>', methods=['POST'])
335337def new_resource(resource_label):
  
179179 }
180180
181181img.star-emblem {
182 border-radius: 15px;
183 }
184img.moon-emblem {
185 border-radius: 15px;
182186 }
183187
184188.colored {
Binary files differ
Binary files differ
  
1717 y="0px"
1818 id="svg2985"
1919 inkscape:version="0.48.2 r9819"
20 sodipodi:docname="moon.svg"><metadata
20 sodipodi:docname="moon.svg"
21 inkscape:export-filename="/home/icarito/Proyectos/mejorar-sistema/app/static/icons/moon.png"
22 inkscape:export-xdpi="2000"
23 inkscape:export-ydpi="2000"><metadata
2124 id="metadata2994"><rdf:RDF><cc:Work
2225 rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
2326 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
3737 inkscape:window-height="600"
3838 id="namedview2990"
3939 showgrid="false"
40 inkscape:zoom="6.8173053"
41 inkscape:cx="2.3016933"
42 inkscape:cy="7.254294"
40 inkscape:zoom="13.634611"
41 inkscape:cx="12.077894"
42 inkscape:cy="11.064339"
4343 inkscape:window-x="0"
4444 inkscape:window-y="26"
4545 inkscape:window-maximized="0"
46 inkscape:current-layer="svg2985" /><g
47 id="g2984"
48 transform="translate(0.88011308,0.14668552)"><path
49 transform="matrix(1.8356433,0,0,-2.6257525,-5.3382481,65.183076)"
50 sodipodi:open="true"
51 sodipodi:end="5.0073496"
52 sodipodi:start="1.2356931"
53 d="M 12.277372,23.36002 C 9.7972228,23.953149 7.0865147,23.053231 6.2228355,21.349996 5.3591563,19.646762 6.6695637,17.785191 9.1497125,17.192062 10.100735,16.964624 11.132344,16.950403 12.095891,17.151447"
54 sodipodi:ry="3.265625"
55 sodipodi:rx="4.7552085"
56 sodipodi:cy="20.276041"
57 sodipodi:cx="10.713542"
58 id="path3827"
59 style="fill:#ffffff;fill-rule:evenodd;stroke:#000000;stroke-width:0.69524753;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
60 sodipodi:type="arc" /><path
61 transform="matrix(1,0,0,1.7598964,29.923847,-16.571023)"
62 sodipodi:open="true"
63 sodipodi:end="5.0073496"
64 sodipodi:start="1.2356931"
65 d="m -11.756955,21.042517 c -2.582077,0.915826 -5.404189,-0.4737 -6.303364,-3.103594 -0.899174,-2.629893 0.465088,-5.504266 3.047165,-6.420092 0.990107,-0.351177 2.064114,-0.373136 3.06726,-0.06271"
66 sodipodi:ry="5.042315"
67 sodipodi:rx="4.9506364"
68 sodipodi:cy="16.280674"
69 sodipodi:cx="-13.385055"
70 id="path4288"
71 style="fill:#000000;stroke-width:1.597;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none"
72 sodipodi:type="arc" /><path
73 transform="matrix(1.3229337,0,0,2.1280514,32.327188,-14.997576)"
74 sodipodi:open="true"
75 sodipodi:end="5.0073496"
76 sodipodi:start="1.2356931"
77 d="m -9.2591244,16.793782 c -2.0943516,0.779284 -4.3833976,-0.403076 -5.1127276,-2.640876 -0.729331,-2.237801 0.377237,-4.683631 2.471589,-5.4629155 0.803087,-0.2988195 1.674225,-0.3175045 2.4878885,-0.053363"
78 sodipodi:ry="4.2905517"
79 sodipodi:rx="4.0155163"
80 sodipodi:cy="12.741886"
81 sodipodi:cx="-10.579694"
82 id="path4292"
83 style="fill:#ffffff;stroke-width:1.597;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none"
84 sodipodi:type="arc" /></g></svg>
46 inkscape:current-layer="svg2985" /><path
47 style="fill:#ffffff;fill-opacity:1"
48 d="M 13.600104,18.951072 C 11.199939,18.610594 9.1417868,17.321569 7.941351,15.406982 7.4650369,14.647306 7.2014938,14.019742 6.9380117,13.017775 6.7488259,12.298341 6.7398313,12.235907 6.7187706,11.495918 6.6946276,10.647588 6.7534307,10.228422 6.996032,9.519474 7.9966604,6.595386 10.27271,4.6377359 13.292701,4.1036556 13.892793,3.9975296 14.592043,3.9536169 15.066934,3.9922327 l 0.379595,0.030869 -0.238741,0.2517283 c -1.015282,1.0705182 -1.73163,2.5266966 -2.149906,4.3702873 -0.440832,1.9430147 -0.425666,4.1586977 0.04255,6.2160357 0.323386,1.420953 1.044673,2.942217 1.829017,3.85757 0.137926,0.160963 0.185135,0.245264 0.149678,0.267276 -0.08327,0.0517 -1.025164,0.02946 -1.479022,-0.03493 z"
49 id="path3874"
50 inkscape:connector-curvature="0" /><path
51 style="fill:#ffffff;stroke:#000000;stroke-width:1.30000000000000004;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;fill-opacity:1"
52 d="M 13.614828,19.131801 C 11.081936,18.911921 8.9255935,17.657666 7.57872,15.620855 7.0983228,14.894372 6.6973153,13.956429 6.5095087,13.12 6.4438335,12.827505 6.268735,12.46165 6.2694593,11.181125 6.2701788,9.9139857 6.4305693,9.8515814 6.4945046,9.562443 6.8432491,7.985309 7.8381146,6.470897 9.1144415,5.43292 10.437441,4.356981 11.89188,3.780952 13.64029,3.640459 c 0.902019,-0.07248 1.955138,0.03702 2.838421,0.295131 0.456173,0.133302 0.412428,0.183486 0.0064,0.360012 -1.61568,0.702362 -2.738647,2.754612 -3.152469,5.5974854 -0.07839,0.5385626 -0.112262,2.2201736 -0.0556,2.7604436 0.238788,2.276573 0.942784,4.078096 2.051389,5.249489 0.300545,0.31757 0.725805,0.685278 0.996169,0.807697 0.05626,0.02548 0.154143,0.06544 0.154143,0.08881 0,0.04989 -0.53153,0.182387 -1.060009,0.264232 -0.360756,0.05587 -1.464512,0.0975 -1.803875,0.06804 z m 1.729488,-0.14317 c 0.434875,-0.06677 0.911868,-0.173645 0.909771,-0.203848 -7.97e-4,-0.0116 -0.144577,-0.11315 -0.319492,-0.225658 -0.398468,-0.256306 -0.916018,-0.790345 -1.255655,-1.295662 -0.770563,-1.146455 -1.247879,-2.574816 -1.456221,-4.35772 -0.05871,-0.502441 -0.07922,-1.93099 -0.03445,-2.398953 0.05209,-0.5443373 0.101746,-0.919656 0.169174,-1.27858 0.47267,-2.516067 1.611665,-4.357774 3.093413,-5.001914 L 16.734281,4.103086 16.374038,4.00116 C 15.487625,3.750365 14.50772,3.646992 13.677803,3.716725 11.437734,3.904949 9.5271705,4.885291 8.1282698,6.564288 7.4279262,7.404859 6.7975448,8.675917 6.5034216,9.7150841 c -0.030386,0.1073583 -0.068983,0.4113139 -0.0939,0.5018179 -0.1210069,0.439534 -0.1003319,0.417958 -0.082979,1.093289 0.024738,0.962811 0.084036,0.96624 0.2573523,1.735423 0.365972,1.624192 1.3604023,3.224466 2.6421266,4.245847 1.3016045,1.037224 2.7701415,1.618307 4.4631935,1.766029 0.320767,0.028 1.285814,-0.01217 1.655101,-0.06886 z"
53 id="path4505"
54 inkscape:connector-curvature="0"
55 sodipodi:nodetypes="ssssssssssssssssscsssssscssssssssssc" /></svg>
  
55 <script src="/static/js/jquery-1.6.2.js" type="text/javascript"></script>
66 <script src="/static/js/jquery.tools.min.js"></script>
77 <link rel="stylesheet" href="/static/css/browser.css" type="text/css" />
8 <link rel="shortcut icon" href="{{ url_for('static', filename='icons/favicon.ico') }}">
89</head>
910<body>
1011 {% include 'toolbar.html' %}
5757 $('.star-emblem').click( function() {
5858 if ( $(this).data('keep') == true) {
5959 $(this).css('background-color', '#fff');
60 $(this).css('border','none');
6061 $(this).data('keep', false);
6162 }
6263 else {
6364 $(this).css('background-color','{{fill}}');
65 $(this).css('border','1px solid {{stroke}}');
6466 $(this).data('keep', true);
6567 }
6668 $.get('/_stars/' + $(this).attr("id") + '?keep=' +
  
1919 <div class="context-label">
2020 <img id="moon-{{context['guid']}}"
2121 {% if context['keep_implementation'] %}
22 style="background-color:{{fill}}"
22 style="background-color:{{fill}}; border: 1px solid {{stroke}};"
2323 {% endif %}
2424 class="moon-emblem" src="/static/icons/moon.png"/>
2525
2626 <img id="star-{{context['guid']}}"
2727 {% if context['keep'] %}
28 style="background-color:{{fill}}"
28 style="background-color:{{fill}}; border: 1px solid {{stroke}};"
2929 {% endif %}
3030 class="star-emblem" src="/static/icons/add-link-small.png"/>
3131 {{context['title']}}