|
1 | 1 | {% extends "frame.html" %}
|
2 | 2 | {% load smartmin i18n thumbnail ureport compress %}
|
| 3 | + |
3 | 4 | {% block styles %}
|
4 | 5 | {% compress css %}
|
5 | 6 | <link rel="stylesheet" href="{{ STATIC_URL }}css/tailwind.css">
|
6 | 7 | {% endcompress %}
|
7 | 8 | {% if is_rtl_org %}
|
8 | 9 | {% compress css %}
|
9 |
| - <link type="text/css" |
10 |
| - rel="stylesheet" |
11 |
| - href="{{ STATIC_URL }}css/bulma0.7.1.css"> |
12 |
| - <link type="text/css" |
13 |
| - rel="stylesheet" |
14 |
| - href="{{ STATIC_URL }}css/bulma-rtl0.7.1.css"> |
15 |
| - <link type="text/less" |
16 |
| - rel="stylesheet" |
17 |
| - href="{{ STATIC_URL }}less/styles.less"> |
| 10 | + <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}css/bulma0.7.1.css"> |
| 11 | + <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}css/bulma-rtl0.7.1.css"> |
| 12 | + <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}less/styles.less"> |
18 | 13 | {% endcompress %}
|
19 | 14 | {% else %}
|
20 | 15 | {% compress css %}
|
21 | 16 | <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}css/bulma.css">
|
22 |
| - <link type="text/css" |
23 |
| - rel="stylesheet" |
24 |
| - href="{{ STATIC_URL }}css/Chart.min.css"> |
25 |
| - <link type="text/less" |
26 |
| - rel="stylesheet" |
27 |
| - href="{{ STATIC_URL }}less/styles.less"> |
| 17 | + <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}css/Chart.min.css"> |
| 18 | + <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}less/styles.less"> |
28 | 19 | {% endcompress %}
|
29 | 20 | {% endif %}
|
30 | 21 | <style type="text/css">
|
31 |
| - table.list-table { |
32 |
| - font-size: 0.85rem; |
33 |
| - } |
34 |
| - |
35 |
| - .row1 a, .row2 a { |
36 |
| - display: block; |
37 |
| - padding-left: 5px; |
38 |
| - |
39 |
| - color: {{ org|config:'dark1_color'|default:'#439932' }}; |
40 |
| - border-left: 5px solid {{ org|config:'dark1_color'|default:'#439932' }}; |
41 |
| - } |
42 |
| - |
43 |
| - .row1 a:hover, .row2 a:hover { |
44 |
| - background-color: #E6E7E8; |
45 |
| - color: {{ org|config:'dark1_color'|default:'#439932' }}; |
46 |
| - } |
47 |
| - |
48 |
| - .row1.inactive a, .row2.inactive a, { |
| 22 | + table.list-table { |
| 23 | + font-size: 0.85rem; |
| 24 | + } |
| 25 | + |
| 26 | + .row1 a, |
| 27 | + .row2 a { |
| 28 | + display: block; |
| 29 | + padding-left: 5px; |
| 30 | + |
| 31 | + color: { |
| 32 | + { |
| 33 | + org|config: 'dark1_color' |default:'#439932' |
| 34 | + } |
| 35 | + } |
| 36 | + |
| 37 | + ; |
| 38 | + |
| 39 | + border-left: 5px solid { |
| 40 | + { |
| 41 | + org|config: 'dark1_color' |default:'#439932' |
| 42 | + } |
| 43 | + } |
| 44 | + |
| 45 | + ; |
| 46 | + } |
| 47 | + |
| 48 | + .row1 a:hover, |
| 49 | + .row2 a:hover { |
| 50 | + background-color: #E6E7E8; |
| 51 | + |
| 52 | + color: { |
| 53 | + { |
| 54 | + org|config: 'dark1_color' |default:'#439932' |
| 55 | + } |
| 56 | + } |
| 57 | + |
| 58 | + ; |
| 59 | + } |
| 60 | + |
| 61 | + .row1.inactive a, |
| 62 | + .row2.inactive a, |
| 63 | + { |
49 | 64 | border-left: 5px solid #bbb;
|
50 | 65 | padding-left: 5px;
|
51 |
| - } |
52 |
| - |
53 |
| - .row1.inactive a, .row2.inactive a, .row1.inactive td, .row2.inactive td { |
54 |
| - color: #ccc; |
55 |
| - } |
56 |
| - |
57 |
| - .row1.inactive a:hover, .row2.inactive a:hover { |
58 |
| - color: #ccc; |
59 |
| - text-decoration: none; |
60 |
| - font-weight: normal; |
61 |
| - |
62 |
| - } |
| 66 | + } |
| 67 | + |
| 68 | + .row1.inactive a, |
| 69 | + .row2.inactive a, |
| 70 | + .row1.inactive td, |
| 71 | + .row2.inactive td { |
| 72 | + color: #ccc; |
| 73 | + } |
| 74 | + |
| 75 | + .row1.inactive a:hover, |
| 76 | + .row2.inactive a:hover { |
| 77 | + color: #ccc; |
| 78 | + text-decoration: none; |
| 79 | + font-weight: normal; |
| 80 | + |
| 81 | + } |
63 | 82 | </style>
|
64 | 83 | {% endblock styles %}
|
65 | 84 | {% block body-content %}
|
|
72 | 91 | <div class="level">
|
73 | 92 | {% if is_rtl_org %}<div class="level-left"></div>{% endif %}
|
74 | 93 | <div class="{% if is_rtl_org %}level-right{% else %}level-left{% endif %}">
|
75 |
| - <a href="{% url 'public.index' %}" |
76 |
| - style="justify-content: start" |
77 |
| - class="level-item has-text-black"> |
78 |
| - <div style="{% if is_rtl_org %}margin-right:0; |
79 |
| - margin-left:1.25rem; |
80 |
| - {% endif %}" |
81 |
| - class="icon"> |
| 94 | + <a href="{% url 'public.index' %}" style="justify-content: start" class="level-item has-text-black"> |
| 95 | + <div style="{% if is_rtl_org %}margin-right:0; margin-left:1.25rem; {% endif %}" class="icon"> |
82 | 96 | <i class="{% if is_rtl_org %}fa-arrow-circle-right{% else %}fa-arrow-circle-left{% endif %} fas"></i>
|
83 | 97 | </div>
|
84 | 98 | {% trans "Back to Website" %}
|
|
93 | 107 | <div style="justify-content: start;" class="level-item square-logo">
|
94 | 108 | <div style="width:360px">
|
95 | 109 | {% if org|config:"has_new_brand" %}
|
96 |
| - <img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo.png" alt="{{ org.name }}" class="logo"> |
| 110 | + <img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo.png" alt="{{ org.name }}" class="logo"> |
97 | 111 | {% else %}
|
98 |
| - {% thumbnail org.get_logo "x180" format="PNG" as im %} |
99 |
| - <img src="{{ im.url }}" alt="{{ org.name }}" class="logo"> |
100 |
| - {% endthumbnail %} |
| 112 | + {% thumbnail org.get_logo "x180" format="PNG" as im %} |
| 113 | + <img src="{{ im.url }}" alt="{{ org.name }}" class="logo"> |
| 114 | + {% endthumbnail %} |
101 | 115 | {% endif %}
|
102 | 116 | </div>
|
103 | 117 | {% if org|config:"has_new_brand" %}
|
104 |
| - <div class="flex-1 text-center font-bold flex-center-y mx-4 mt-4" style="font-family:'Noto Sans', sans-serif;"> |
105 |
| - {{ org.name }} |
106 |
| - </div> |
| 118 | + <div class="flex-1 text-center font-bold flex-center-y mx-4 mt-4" |
| 119 | + style="font-family:'Noto Sans', sans-serif">{{ org.name }}</div> |
107 | 120 | {% endif %}
|
108 | 121 | </div>
|
109 | 122 | </div>
|
|
117 | 130 | <br class="is-hidden-mobile">
|
118 | 131 | {{ request.user.username }}
|
119 | 132 | </div>
|
120 |
| - <a href="{% url 'users.user_logout' %}?go=/" |
121 |
| - class="level-item button is-outlined logout-button">{% trans "Logout" %}</a> |
| 133 | + <a href="{% url 'users.user_logout' %}?go=/" class="level-item button is-outlined logout-button">{% trans "Logout" %}</a> |
122 | 134 | {% else %}
|
123 |
| - <a href="{% org_host_link %}{% url 'users.user_login' %}" |
124 |
| - class="level-item button is-outlined">{% trans "Login" %}</a> |
| 135 | + <a href="{% org_host_link %}{% url 'users.user_login' %}" class="level-item button is-outlined">{% trans "Login" %}</a> |
125 | 136 | {% endif %}
|
126 | 137 | {% endblock login %}
|
127 | 138 | </div>
|
128 | 139 | {% if is_rtl_org %}
|
129 | 140 | <div class="level-right">
|
130 |
| - <div style="justify-content: start; |
131 |
| - margin-right: 0rem" |
132 |
| - class="level-item square-logo"> |
| 141 | + <div style="justify-content: start; margin-right: 0rem" class="level-item square-logo"> |
133 | 142 | <div style="width:360px">
|
134 | 143 | {% thumbnail org.get_logo "x180" format="PNG" as im %}
|
135 | 144 | <img src="{{ im.url }}" alt="{{ org.name }}" class="logo">
|
|
271 | 280 | <li>
|
272 | 281 | <a href="{% url 'users.user_list' %}">
|
273 | 282 | <span class="icon">
|
274 |
| - <img src="{{ STATIC_URL }}img/settings_icon.png" alt="" > |
| 283 | + <img src="{{ STATIC_URL }}img/settings_icon.png" alt=""> |
275 | 284 | </span>
|
276 | 285 | <span class="menu-link-title">{% trans "Users" %}</span>
|
277 | 286 | </a>
|
|
322 | 331 | {% block footer %}
|
323 | 332 | <!-- footer navbar -->
|
324 | 333 | <div class="md:grid md:grid-cols-3 grid grid-cols-1 gap-4 px-home mt-12 mb-3">
|
325 |
| - <a href="{% url 'public.index' %}" |
326 |
| - class="md:block flex-1 text-center mb-2 hidden"> |
327 |
| - <div style="max-width:360px"> |
328 |
| - {% if org|config:"has_new_brand" %} |
329 |
| - <img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo.png" alt="{{ org.name }}" class="logo"> |
330 |
| - {% else %} |
331 |
| - {% thumbnail org.get_logo "x180" format="PNG" as im %} |
332 |
| - <img src="{{ im.url }}" alt="{{ org.name }}" class="logo"> |
333 |
| - {% endthumbnail %} |
334 |
| - {% endif %} |
335 |
| - </div> |
| 334 | + <a href="{% url 'public.index' %}" class="md:block flex-1 text-center mb-2 hidden"> |
| 335 | + {% if org|config:"has_new_brand" %} |
| 336 | + <div style="max-width:220px"> |
| 337 | + <img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo_footer.png" alt="{{ org.name }}" class="logo"> |
| 338 | + </div> |
| 339 | + {% else %} |
| 340 | + <div style="max-width:360px"> |
| 341 | + {% thumbnail org.get_logo "x180" format="PNG" as im %} |
| 342 | + <img src="{{ im.url }}" alt="{{ org.name }}" class="logo"> |
| 343 | + {% endthumbnail %} |
| 344 | + </div> |
| 345 | + {% endif %} |
336 | 346 | </a>
|
337 | 347 | <div class="md:flex justify-center hidden">
|
338 | 348 | <div style="max-width:150px" class="md:block block">
|
339 | 349 | {% if org.language != "ar" and org.language != "ru" and org.language != "ch" and org.language != "fr" %}
|
340 |
| - <img src="{{ STATIC_URL }}/img/logos/UNICEF/UNICEF_logo_footer_EN.png" class="md:-ml-0 -ml-2"> |
| 350 | + <img src="{{ STATIC_URL }}/img/logos/UNICEF/UNICEF_logo_footer_EN.png" class="md:-ml-0 -ml-2" alt=""> |
341 | 351 | {% else %}
|
342 |
| - <img src="{{ STATIC_URL }}/img/logos/UNICEF/UNICEF_logo_footer_{{ org.language|upper }}.png" class="md:-ml-0 -ml-2"> |
| 352 | + <img src="{{ STATIC_URL }}/img/logos/UNICEF/UNICEF_logo_footer_{{ org.language|upper }}.png" |
| 353 | + class="md:-ml-0 -ml-2" |
| 354 | + alt=""> |
343 | 355 | {% endif %}
|
344 | 356 | </div>
|
345 | 357 | </div>
|
346 |
| - <a href="{% url 'public.index' %}" |
347 |
| - class="md:hidden flex-1 text-center mb-6 inline-flex"> |
| 358 | + <a href="{% url 'public.index' %}" class="md:hidden flex-1 text-center mb-6 inline-flex"> |
348 | 359 | <div style="width:180px">
|
349 | 360 | {% if org|config:"has_new_brand" %}
|
350 | 361 | <img src="{{ STATIC_URL }}/img/logos/UREPORT/U-Report_Logo.png" alt="{{ org.name }}" class="logo">
|
351 | 362 | {% else %}
|
352 |
| - {% thumbnail org.get_logo "x180" format="PNG" as im %} |
353 |
| - <img src="{{ im.url }}" alt="{{ org.name }}" class="logo"> |
354 |
| - {% endthumbnail %} |
| 363 | + {% thumbnail org.get_logo "x180" format="PNG" as im %} |
| 364 | + <img src="{{ im.url }}" alt="{{ org.name }}" class="logo"> |
| 365 | + {% endthumbnail %} |
355 | 366 | {% endif %}
|
356 | 367 | </div>
|
357 | 368 | <div class="md:hidden flex flex-1 justify-end float-right">
|
358 | 369 | <div style="width:120px" class="md:block block">
|
359 | 370 | {% if org.language != "ar" and org.language != "ru" and org.language != "ch" and org.language != "fr" %}
|
360 |
| - <img src="{{ STATIC_URL }}/img/logos/UNICEF/UNICEF_logo_footer_EN.png" class="md:-ml-0 -ml-2" alt="UNICEF logo"> |
| 371 | + <img src="{{ STATIC_URL }}/img/logos/UNICEF/UNICEF_logo_footer_EN.png" |
| 372 | + class="md:-ml-0 -ml-2" |
| 373 | + alt="UNICEF logo"> |
361 | 374 | {% else %}
|
362 |
| - <img src="{{ STATIC_URL }}/img/logos/UNICEF/UNICEF_logo_footer_{{ org.language|upper }}.png" class="md:-ml-0 -ml-2" alt="UNICEF logo"> |
| 375 | + <img src="{{ STATIC_URL }}/img/logos/UNICEF/UNICEF_logo_footer_{{ org.language|upper }}.png" |
| 376 | + class="md:-ml-0 -ml-2" |
| 377 | + alt="UNICEF logo"> |
363 | 378 | {% endif %}
|
364 | 379 | </div>
|
365 | 380 | </div>
|
|
368 | 383 | <div class="md:ml-6 font-bold text-2xl flex-center-y">
|
369 | 384 | <div>
|
370 | 385 | <a href="{% url 'public.opinions' %}"
|
371 |
| - class="hover:text-gray-750 hover:border-dark1-v2024 pb-2 border-b-2 border-black"> |
372 |
| - {% trans "Opinions" %} |
373 |
| - </a> |
| 386 | + class="hover:text-gray-750 hover:border-dark1-v2024 pb-2 border-b-2 border-black">{% trans "Opinions" %}</a> |
374 | 387 | </div>
|
375 | 388 | </div>
|
376 | 389 | <div class="font-bold text-2xl ml-6 flex-center-y">
|
377 | 390 | <div>
|
378 | 391 | <a href="{% url 'public.stories' %}"
|
379 |
| - class="hover:text-gray-750 hover:border-dark1-v2024 pb-2 border-b-2 border-black"> |
380 |
| - {% trans "Stories" %} |
381 |
| - </a> |
| 392 | + class="hover:text-gray-750 hover:border-dark1-v2024 pb-2 border-b-2 border-black">{% trans "Stories" %}</a> |
382 | 393 | </div>
|
383 | 394 | </div>
|
384 | 395 | </div>
|
385 | 396 | </div>
|
386 | 397 | <div class="md:grid grid-cols-2 gap-4 px-home mt-5 mb-12">
|
387 | 398 | <div class="text-sm font-bold">
|
388 |
| - <a href="{% url 'public.about' %}" |
389 |
| - class="hover:text-gray-750 flex-initial py-menu">{% trans "About" %}</a> |
390 |
| - <a href="{% url 'public.ureporters' %}" |
391 |
| - class="md:ml-4 hover:text-gray-750 flex-initial py-menu">{% trans "Engagement" %}</a> |
| 399 | + <a href="{% url 'public.about' %}" class="hover:text-gray-750 flex-initial py-menu">{% trans "About" %}</a> |
| 400 | + <a href="{% url 'public.ureporters' %}" class="md:ml-4 hover:text-gray-750 flex-initial py-menu">{% trans "Engagement" %}</a> |
392 | 401 | <a href="{% url 'public.bots' %}"
|
393 |
| - class="{% if is_rtl_org %}md:mr-4{% else %}md:ml-4{% endif %} hover:text-gray-750 flex-initial py-menu"> |
394 |
| - {% trans "Bots" %} |
395 |
| - </a> |
| 402 | + class="{% if is_rtl_org %}md:mr-4{% else %}md:ml-4{% endif %} hover:text-gray-750 flex-initial py-menu">{% trans "Bots" %}</a> |
396 | 403 | <a href="{% url 'public.reports' %}"
|
397 |
| - class="{% if is_rtl_org %}md:mr-4{% else %}md:ml-4{% endif %} hover:text-gray-750 flex-initial py-menu"> |
398 |
| - {% trans "Reports" %} |
399 |
| - </a> |
| 404 | + class="{% if is_rtl_org %}md:mr-4{% else %}md:ml-4{% endif %} hover:text-gray-750 flex-initial py-menu">{% trans "Reports" %}</a> |
400 | 405 | {% if org|config:"has_jobs" %}
|
401 | 406 | <a href="{% url 'public.jobs' %}"
|
402 |
| - class="{% if is_rtl_org %}md:mr-4{% else %}md:ml-4{% endif %} hover:text-gray-750 flex-initial py-menu"> |
403 |
| - {% trans "Jobs" %} |
404 |
| - </a> |
| 407 | + class="{% if is_rtl_org %}md:mr-4{% else %}md:ml-4{% endif %} hover:text-gray-750 flex-initial py-menu">{% trans "Jobs" %}</a> |
405 | 408 | {% endif %}
|
406 | 409 | </div>
|
407 | 410 | <div class="md:justify-end flex text-sm font-bold">
|
|
429 | 432 | {% if show_login %}
|
430 | 433 | {% if request.user and request.user.is_authenticated %}
|
431 | 434 | <a href="{% url 'users.user_logout' %}?go=/"
|
432 |
| - class="{% if is_rtl_org %}mr-4{% else %}ml-4{% endif %} hover:text-gray-750 flex-initial py-menu"> |
433 |
| - {% trans "Logout" %} |
434 |
| - </a> |
| 435 | + class="{% if is_rtl_org %}mr-4{% else %}ml-4{% endif %} hover:text-gray-750 flex-initial py-menu">{% trans "Logout" %}</a> |
435 | 436 | {% else %}
|
436 | 437 | <a href="{% org_host_link %}{% url 'users.user_login' %}"
|
437 |
| - class="{% if is_rtl_org %}mr-4{% else %}ml-4{% endif %} hover:text-gray-750 flex-initial py-menu"> |
438 |
| - {% trans "Login" %} |
439 |
| - </a> |
| 438 | + class="{% if is_rtl_org %}mr-4{% else %}ml-4{% endif %} hover:text-gray-750 flex-initial py-menu">{% trans "Login" %}</a> |
440 | 439 | {% endif %}
|
441 | 440 | {% endif %}
|
442 | 441 | </div>
|
|
0 commit comments