diff --git a/akvo/rsr/static/rsr/v3/css/src/main.css b/akvo/rsr/static/rsr/v3/css/src/main.css index 8232b8361f..306e294e48 100755 --- a/akvo/rsr/static/rsr/v3/css/src/main.css +++ b/akvo/rsr/static/rsr/v3/css/src/main.css @@ -233,9 +233,6 @@ dl.dl-horizontal dt { dl.dl-horizontal dt.totalFinance { margin-top: 30px; font-weight: bold; } -@media only screen and (max-width: 768px) { - dl.dl-horizontal dd { - margin-left: 100px; } } dl.dl-horizontal dd.totalFinance { margin-top: 30px; font-weight: bold; } @@ -503,8 +500,15 @@ nav.navbar-fixed-top { color: white; } @media only screen and (max-width: 768px) { .twoColumns a { - width: 95%; - padding: 2px 5%; + width: 98%; + padding: 2px 1%; + float: none; + margin: 2px 0 2px 0; + display: block; } } + @media only screen and (min-width: 768px) and (max-width: 1024px) { + .twoColumns a { + width: 98%; + padding: 2px 1%; float: none; margin: 2px 0 2px 0; display: block; } } @@ -815,6 +819,12 @@ h4.detailedInfo { color: rgba(32, 32, 36, 0.5); } .main-list li .additionalInfo div span { margin-left: 5px; } + @media only screen and (max-width: 768px) { + .main-list li dl.dl-horizontal dd { + margin-left: 100px; } } + @media only screen and (min-width: 768px) and (max-width: 1024px) { + .main-list li dl.dl-horizontal dd { + margin-left: 80px; } } .main-list .excerpt { overflow: hidden; text-overflow: ellipsis; @@ -964,6 +974,9 @@ header.projectHeader { width: calc(100%-2px); height: 300px; } +.orgMap .mapInfoWindow img { + display: none; } + div.projectTopRow { position: relative; background: rgba(245, 245, 245, 0.5); diff --git a/akvo/rsr/static/rsr/v3/css/src/main.scss b/akvo/rsr/static/rsr/v3/css/src/main.scss index d4d1b00ed8..54e737e9f9 100755 --- a/akvo/rsr/static/rsr/v3/css/src/main.scss +++ b/akvo/rsr/static/rsr/v3/css/src/main.scss @@ -240,10 +240,6 @@ dl { } } dd { - @include responsive(small-max-screens) { - margin-left: 100px; - } - &.totalFinance { margin-top: 30px; font-weight: bold; @@ -407,11 +403,12 @@ nav.navbar-fixed-top { } } } -@include responsive (ipadAir) { - .navbar-header { + +@include responsive(ipadAir) { + .navbar-header { float: none; } - .navbar-left,.navbar-right { + .navbar-left, .navbar-right { float: none !important; } .navbar-toggle { @@ -419,28 +416,28 @@ nav.navbar-fixed-top { } .navbar-collapse { border-top: 1px solid transparent; - box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); } .navbar-fixed-top { top: 0; border-width: 0 0 1px; } .navbar-collapse.collapse { - display: none!important; + display: none !important; } .navbar-nav { - float: none!important; + float: none !important; margin-top: 7.5px; } - .navbar-nav>li { + .navbar-nav > li { float: none; } - .navbar-nav>li>a { + .navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; } - .collapse.in{ - display:block !important; + .collapse.in { + display: block !important; } } @@ -541,8 +538,15 @@ nav.navbar-fixed-top { color: white; } @include responsive(small-max-screens) { - width: 95%; - padding: 2px 5%; + width: 98%; + padding: 2px 1%; + float: none; + margin: 2px 0 2px 0; + display: block; + } + @include responsive(ipadAir) { + width: 98%; + padding: 2px 1%; float: none; margin: 2px 0 2px 0; display: block; @@ -930,6 +934,18 @@ h4.detailedInfo { } } } + dl { + &.dl-horizontal { + dd { + @include responsive(small-max-screens) { + margin-left: 100px; + } + @include responsive(ipadAir) { + margin-left: 80px; + } + } + } + } } .excerpt { @include noWrapBlockTxt; @@ -1132,7 +1148,13 @@ header { height: 300px; } } - +.orgMap { + .mapInfoWindow { + img { + display: none; + } + } +} div.projectTopRow { position: relative; background: rgba(245, 245, 245, 0.5); diff --git a/akvo/templates/myrsr/my_projects.html b/akvo/templates/myrsr/my_projects.html index 63669b3f7a..5a44bcecc8 100644 --- a/akvo/templates/myrsr/my_projects.html +++ b/akvo/templates/myrsr/my_projects.html @@ -5,10 +5,10 @@ {% block title %}{% trans "MyRSR - my projects" %}{% endblock %} {% block myrsr_main %} -
+

{% trans "My project" %}s

{% if page %} - +
@@ -50,7 +50,7 @@

{{ project.title }}

{% endif %} {% has_perm 'rsr.post_updates' project as can_add_update %} - Add an update + Add update diff --git a/akvo/templates/myrsr/my_updates.html b/akvo/templates/myrsr/my_updates.html index 65286a8ced..067347eb7c 100644 --- a/akvo/templates/myrsr/my_updates.html +++ b/akvo/templates/myrsr/my_updates.html @@ -7,8 +7,8 @@ {% block myrsr_main %}

My updates

{% if page %} -
-
ProjectLocationStatusActions
+
+
{% for update in page %} diff --git a/akvo/templates/myrsr/myrsr_base.html b/akvo/templates/myrsr/myrsr_base.html index 1abee81c7f..c0ac4b886f 100644 --- a/akvo/templates/myrsr/myrsr_base.html +++ b/akvo/templates/myrsr/myrsr_base.html @@ -6,7 +6,7 @@
{% block myrsr_menu %} -
+
{% with current_path=request.get_full_path %}
{% endblock %} -
+
{% block myrsr_main %}{% endblock %}
diff --git a/akvo/templates/organisation_directory.html b/akvo/templates/organisation_directory.html index 3c61d245bf..d5a0b27ab2 100644 --- a/akvo/templates/organisation_directory.html +++ b/akvo/templates/organisation_directory.html @@ -3,7 +3,7 @@ {% block title %}{% trans 'Organisations' %}{% endblock %} {% block maincontent %} -
+
{% coll_map page '100%' '100%' %}
diff --git a/akvo/templates/project_finance.html b/akvo/templates/project_finance.html index 6bb2a45a1a..98a42e4fca 100644 --- a/akvo/templates/project_finance.html +++ b/akvo/templates/project_finance.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% load compressed i18n rsr_utils %} +{% load compressed i18n rsr_utils humanize %} {% block title %}{{project.title}}{% endblock title%} @@ -14,17 +14,17 @@

{% trans "Project financial details" %}:

{% for budget_item in project.budget_items.all %} -
{{budget_item.label.label}}:
{% if project.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{budget_item.amount}}
+
{{budget_item.label.label}}:
{{project.get_currency_display}}{{budget_item.amount|floatformat|intcomma}}
{% endfor %} -
{% trans "Total" %}:
{% if project.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{project.budget}}
+
{% trans "Total" %}:
{{project.get_currency_display}}{{project.budget|floatformat|intcomma}}

{% trans "Project funding" %}:

-
{% trans "Budget" %}:
{% if project.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{project.budget}}
-
{% trans "Funded" %}:
{% if project.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{project.funds}}
-
{% trans "Funds needed" %}:
{% if project.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{project.funds_needed}}
+
{% trans "Budget" %}:
{{project.get_currency_display}}{{project.budget|floatformat|intcomma}}
+
{% trans "Funded" %}:
{{project.get_currency_display}}{{project.funds|floatformat|intcomma}}
+
{% trans "Funds needed" %}:
{{project.get_currency_display}}{{project.funds_needed|floatformat|intcomma}}
@@ -34,19 +34,19 @@

{% trans "Current funders" %}:

{% img partnership.organisation 80 60 partnership.organisation.name %}
{{partnership.organisation}} -
{% if project.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{partnership.funding_amount}} +
{{project.get_currency_display}}{{partnership.funding_amount|floatformat|intcomma}}
{% endfor %}

{% trans "Donations" %}:

{% for donation in project.all_donations %} -
{% if donation.is_anonymous %}{% trans "Anonymous" %}{% else %}{{donation.name}}{% endif %}:
{% if project.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{donation.amount}}
+
{% if donation.is_anonymous %}{% trans "Anonymous" %}{% else %}{{donation.name}}{% endif %}:
{{project.get_currency_display}}{{donation.amount|floatformat|intcomma}}
{% empty %}
{% trans "No donations" %}
{% endfor %} {% if project.all_donations %} -
{% trans "Total" %}:
{% if project.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{project.all_donations_amount}}
+
{% trans "Total" %}:
{{project.get_currency_display}}{{project.all_donations_amount|floatformat|intcomma}}
{% endif %}
@@ -54,7 +54,7 @@

{% trans "Donations" %}:

{% trans "Project transactions" %}:

{% for transaction in project.transactions.all %} -
{{transaction.description}}:
{% if transaction.currency = 'EUR' %}€{% elif project.currency = 'USD' %}${% endif %}{{transaction.value}}
+
{{transaction.description}}:
{{project.get_currency_display}}{{transaction.value|floatformat|intcomma}}
{% empty %}

{% trans "No transactions for this project" %}

{% endfor %}
MediaTitleDateProjectActions