From 9fed040815d7066d01a14c75a09c116fa6f9eae2 Mon Sep 17 00:00:00 2001 From: Aditya Anand Date: Wed, 14 Nov 2018 21:33:02 +0530 Subject: [PATCH 1/3] qa : fixes - refactoring - added common nav - added custom nav for grants - new: removed munites + hours + any - new: increase textarea height + make form neater - new : increased font-size - detail: remove duplicate fund text - milestones: change order + remove description - milestones: UI cleanup - milestones: add back button - details: tab fixes refs: #2798 refs: #2753 refs: #2803 --- app/assets/v2/css/forms/form.css | 17 ++++- app/assets/v2/css/forms/input.css | 4 ++ app/assets/v2/css/forms/label.css | 5 ++ app/assets/v2/css/grants/detail.css | 10 ++- app/assets/v2/css/grants/milestones.css | 20 ++++-- app/assets/v2/css/grants/new.css | 7 +- app/assets/v2/css/tabs.css | 1 + app/assets/v2/js/grants/new.js | 5 -- app/grants/forms.py | 30 +++++--- app/grants/templates/grants/cancel.html | 3 +- app/grants/templates/grants/detail.html | 46 ++++++------ app/grants/templates/grants/fund.html | 3 +- app/grants/templates/grants/index.html | 3 +- app/grants/templates/grants/milestones.html | 64 +++++++++-------- app/grants/templates/grants/nav.html | 54 ++++++++++++++ app/grants/templates/grants/new.html | 71 +++++++++---------- .../templates/grants/profile/index.html | 8 +-- app/grants/templates/grants/quickstart.html | 11 +-- app/grants/views.py | 39 +++++----- 19 files changed, 257 insertions(+), 144 deletions(-) create mode 100644 app/grants/templates/grants/nav.html diff --git a/app/assets/v2/css/forms/form.css b/app/assets/v2/css/forms/form.css index 3d303a4000e..c8cee199647 100644 --- a/app/assets/v2/css/forms/form.css +++ b/app/assets/v2/css/forms/form.css @@ -51,6 +51,10 @@ margin-bottom: 3rem; } +.form__footer a { + font-weight: 500; +} + .form__footer button { margin-bottom: .5rem; } @@ -63,9 +67,20 @@ .form__group { flex-direction: column; } - + .form__group-item { margin-bottom: 1em; width: 100%; } } + +@media (min-width: 992px) { + .form__footer a { + position: relative; + top: 10px; + } + + .form__footer button { + float: right + } +} diff --git a/app/assets/v2/css/forms/input.css b/app/assets/v2/css/forms/input.css index 400b968671c..b586b3e8583 100644 --- a/app/assets/v2/css/forms/input.css +++ b/app/assets/v2/css/forms/input.css @@ -7,6 +7,10 @@ width: 100%; } +.form__input-lg { + font-size: 1rem; +} + .form__input_lg { padding: 8px; } diff --git a/app/assets/v2/css/forms/label.css b/app/assets/v2/css/forms/label.css index 4b422bab44e..a13b59d0d4d 100644 --- a/app/assets/v2/css/forms/label.css +++ b/app/assets/v2/css/forms/label.css @@ -2,3 +2,8 @@ font-size: 12px; margin: .5rem 0; } + +.form__label-lg { + font-size: 1rem; + margin: .7rem 0; +} diff --git a/app/assets/v2/css/grants/detail.css b/app/assets/v2/css/grants/detail.css index 8cc8ff4ae7d..1e632f855b4 100644 --- a/app/assets/v2/css/grants/detail.css +++ b/app/assets/v2/css/grants/detail.css @@ -90,13 +90,17 @@ textarea.editable { color: #43484D; } +.article-description { + text-align:justify; +} + .no-subscriptions a { text-decoration: none; color: #007bff; } .article-date { - color: #BBBDBF; + color: #999; } .form__input { @@ -132,6 +136,10 @@ textarea.editable { background-color: white; } +#js-postUpdate { + max-width: 40rem; +} + @keyframes rotation { from { transform: rotate(0deg); diff --git a/app/assets/v2/css/grants/milestones.css b/app/assets/v2/css/grants/milestones.css index ec1d972f6be..508b0b2ed41 100644 --- a/app/assets/v2/css/grants/milestones.css +++ b/app/assets/v2/css/grants/milestones.css @@ -1,6 +1,6 @@ .milestones-edit { float: right; - font-size: 0.75rem; + font-weight: 600; } .milestones-container { @@ -58,7 +58,7 @@ ul.milestones-list .milestone-title { ul.milestones-list .milestone-date { margin-bottom: 0.3rem; font-size: 14px; - color: #CCCCCC; + color: #000; } ul.milestones-list .milestone-date form { @@ -68,23 +68,35 @@ ul.milestones-list .milestone-date form { ul.milestones-list .milestone-date input { border: 0; font-size: 14px; - color: #CCCCCC; + color: #999; } + ul.milestones-list .milestone-date .error { color: #D50000; font-size: 0.75rem; } + ul.milestones-list .milestone-date a { float: right; margin-right: 0.3rem; } ul.milestones-list .milestone-description { - font-size: 14px; + font-size: .85rem; color: #43484D; } .milestones-input input, .milestones-input textarea { margin-top: 20px; +} + +ul.milestones-list .button { + font-size: 0.75rem; + font-weight: 600; + color: #fff; +} + +ul.milestones-list .button:hover { + color: #fff; } \ No newline at end of file diff --git a/app/assets/v2/css/grants/new.css b/app/assets/v2/css/grants/new.css index 71d240edc59..4d283268399 100644 --- a/app/assets/v2/css/grants/new.css +++ b/app/assets/v2/css/grants/new.css @@ -20,6 +20,7 @@ .frequency .select2-container--default .select2-selection--single .select2-selection__rendered { position: relative; + font-size: 1rem; } .frequency .select2-container--default .select2-selection--single .select2-selection__rendered, @@ -29,7 +30,11 @@ .select2-container--default .select2-selection--multiple { border-color: #000; - font-size: 0.8rem; + font-size: 1rem; +} + +.select2-results__option, .select2-search--dropdown .select2-search__field { + font-size: 1rem; } .select2-container--default .select2-selection--multiple .select2-selection__choice { diff --git a/app/assets/v2/css/tabs.css b/app/assets/v2/css/tabs.css index dc20c65dc22..9319cf003b7 100644 --- a/app/assets/v2/css/tabs.css +++ b/app/assets/v2/css/tabs.css @@ -23,6 +23,7 @@ cursor: pointer; color: var(--gc-purple); padding: 0; + padding-bottom: 8px; } .section-tab:hover, diff --git a/app/assets/v2/js/grants/new.js b/app/assets/v2/js/grants/new.js index 8dd047742f4..bb20eda87b9 100644 --- a/app/assets/v2/js/grants/new.js +++ b/app/assets/v2/js/grants/new.js @@ -1,10 +1,5 @@ /* eslint-disable no-console */ -const validate = () => { - if ($('#frequency_unit').select2('data')[0].text === 'any') - $('#frequency_count').val('0'); -}; - $(document).ready(function() { if (localStorage['grants_quickstart_disable'] !== 'true') { diff --git a/app/grants/forms.py b/app/grants/forms.py index 892873677c9..6788bedadef 100644 --- a/app/grants/forms.py +++ b/app/grants/forms.py @@ -31,9 +31,9 @@ class Meta: model = Grant fields = ( - 'title', 'description', 'reference_url', 'logo', 'logo_svg', 'admin_address', 'frequency', - 'amount_goal', 'amount_received', 'token_address', 'contract_address', 'transaction_hash', 'metadata', - 'network', 'required_gas_price', 'admin_profile', 'team_members' + 'title', 'description', 'reference_url', 'logo', 'logo_svg', 'admin_address', 'frequency', 'amount_goal', + 'amount_received', 'token_address', 'contract_address', 'transaction_hash', 'metadata', 'network', + 'required_gas_price', 'admin_profile', 'team_members' ) @@ -44,11 +44,23 @@ class Meta: """Define the metadata for the Milestone model form.""" model = Milestone - fields = ( - 'title', 'description', 'due_date', - ) + fields = ('title', 'description', 'due_date', ) widgets = { - 'title': forms.TextInput(attrs={'class': 'form__input', 'placeholder': _('Title')}), - 'description': forms.Textarea(attrs={'class': 'form__input', 'placeholder': _('Description')}), - 'due_date': forms.DateInput(attrs={'type': 'date', 'class': 'form__input', 'placeholder': _('Date')}) + 'title': forms.TextInput(attrs={ + 'class': 'form__input form__input-lg', + 'placeholder': _('Title') + }), + 'description': + forms.Textarea(attrs={ + 'class': 'form__input form__input-lg', + 'placeholder': _('Description') + }), + 'due_date': + forms.DateInput( + attrs={ + 'type': 'date', + 'class': 'form__input form__input-lg', + 'placeholder': _('Date') + } + ) } diff --git a/app/grants/templates/grants/cancel.html b/app/grants/templates/grants/cancel.html index 7f7a7c2299a..5b1789186f9 100644 --- a/app/grants/templates/grants/cancel.html +++ b/app/grants/templates/grants/cancel.html @@ -24,7 +24,8 @@ {% include 'shared/tag_manager_2.html' %}
- {% include 'shared/nav.html' %} + {% include 'shared/top_nav.html' with class='d-md-flex' %} + {% include 'grants/nav.html' %}
{% include 'shared/no_metamask_error.html' %} diff --git a/app/grants/templates/grants/detail.html b/app/grants/templates/grants/detail.html index 74f0e27baaf..455b938a81d 100644 --- a/app/grants/templates/grants/detail.html +++ b/app/grants/templates/grants/detail.html @@ -26,7 +26,8 @@ {% include 'shared/tag_manager_2.html' %}
- {% include 'shared/nav.html' %} + {% include 'shared/top_nav.html' with class='d-md-flex' %} + {% include 'grants/nav.html' %}
@@ -177,9 +178,6 @@

{% empty %}

{% trans "No active subscriptions." %}

-

- {% trans "Subscribe now!" %} -

{% endfor %}

@@ -227,33 +225,33 @@

  • {% trans "Updates" %}
  • {% trans "GitHub" %}
  • - {% if is_admin %} -
    -
    - {% csrf_token %} -
    - -
    +
    + {% if is_admin %} +
    + + {% csrf_token %} +
    + +
    -
    - -
    +
    + +
    -
    - +
    + +
    +
    - -
    - {% endif %} -
    + {% endif %}
      {% for item in activity %}
    • {{ item.title }}
      -

      {{ item.description }}

      +

      {{ item.description }}

    • {% empty %} {% trans "No updates yet!" %} @@ -266,7 +264,7 @@

    • {{ item.title }}
      -

      {{ item.description }}

      +

      {{ item.description }}

    • {% empty %} {% trans "No Github activity yet!" %} diff --git a/app/grants/templates/grants/fund.html b/app/grants/templates/grants/fund.html index 3d7aac65d46..823c5ad171c 100644 --- a/app/grants/templates/grants/fund.html +++ b/app/grants/templates/grants/fund.html @@ -25,7 +25,8 @@ {% include 'shared/tag_manager_2.html' %}
      - {% include 'shared/nav.html' %} + {% include 'shared/top_nav.html' with class='d-md-flex' %} + {% include 'grants/nav.html' %}
      {% include 'shared/no_metamask_error.html' %} diff --git a/app/grants/templates/grants/index.html b/app/grants/templates/grants/index.html index 52042ad2887..2f2a0bc58a9 100644 --- a/app/grants/templates/grants/index.html +++ b/app/grants/templates/grants/index.html @@ -25,7 +25,8 @@ {% include 'shared/tag_manager_2.html' %}
      - {% include 'shared/nav.html' %} + {% include 'shared/top_nav.html' with class='d-md-flex' %} + {% include 'grants/nav.html' %}
      diff --git a/app/grants/templates/grants/milestones.html b/app/grants/templates/grants/milestones.html index 7d71c4ffe1d..16fa2428adb 100644 --- a/app/grants/templates/grants/milestones.html +++ b/app/grants/templates/grants/milestones.html @@ -10,18 +10,40 @@ {% include 'shared/tag_manager_2.html' %}
      - {% include 'shared/nav.html' %} + {% include 'shared/top_nav.html' with class='d-md-flex' %} + {% include 'grants/nav.html' %}
      -
      -

      {% trans "Create Milestones for " %}{{ grant.title }}

      -

      {{ grant.description }}

      +
      +

      {% trans "Create Milestones for " %}{{ grant.title }}

      -
      - {% if milestones %} +
      +
      + {% csrf_token %} + +
      +
      +
      + {{ form.title }} + {{ form.title.errors }} + {{ form.description }} + {{ form.description.errors }} + {{ form.due_date }} + {{ form.due_date.errors }} +
      +
      +
      + +
      +
      +
      + {% if milestones %}
      @@ -46,30 +68,12 @@

      {% trans "Create Milestones for " %}{{ grant.title }}

      {% endfor %}

    {% else %} -

    {% trans "No milestones currently set for this grant." %}

    +

    + + {% trans "No milestones currently set for this grant." %} +

    {% endif %}
    -
    -
    - {% csrf_token %} - -
    -
    -
    - {{ form.title }} - {{ form.title.errors }} - {{ form.due_date }} - {{ form.due_date.errors }} - {{ form.description }} - {{ form.description.errors }} -
    -
    -
    - -
    -

    diff --git a/app/grants/templates/grants/nav.html b/app/grants/templates/grants/nav.html new file mode 100644 index 00000000000..be2ad3b5de4 --- /dev/null +++ b/app/grants/templates/grants/nav.html @@ -0,0 +1,54 @@ +{% comment %} + Copyright (C) 2017 Gitcoin Core + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +{% endcomment %} +{% load i18n static matches %} + +{% if request.path|matches:"^\/((new)|(fund.*)|(.*cancel.*))$" %} + +{% endif %} diff --git a/app/grants/templates/grants/new.html b/app/grants/templates/grants/new.html index f6b221e6933..f154e4f5171 100644 --- a/app/grants/templates/grants/new.html +++ b/app/grants/templates/grants/new.html @@ -26,7 +26,8 @@ {% include 'shared/tag_manager_2.html' %}
    - {% include 'shared/nav.html' %} + {% include 'shared/top_nav.html' with class='d-md-flex' %} + {% include 'grants/nav.html' %}
    {% include 'shared/no_metamask_error.html' %} @@ -67,65 +68,60 @@ -
    +

    {% trans "Create a Grant" %}

    -

    {% trans "We're excited to learn about your project. Complete the form below to get funding for your project." %}

    +

    {% trans "We're excited to learn about your project.
    Complete the form below to get funding for your project." %}

    {% csrf_token %}
    - - + +
    - - + +
    - - + +
    - +
    -
    -
    -
    - +
    + +
    -
    -
    - -
    - -
    -
    - +
    + +
    -
    - + +
    - +
    @@ -136,30 +132,27 @@

    {% trans "Create a Grant" %}

    - - + +
    - +
    - +
    - - - +
    - +
    {% trans "Drag & Drop or Browse" %} @@ -168,13 +161,13 @@

    {% trans "Create a Grant" %}

    - - - + + +
    diff --git a/app/grants/templates/grants/profile/index.html b/app/grants/templates/grants/profile/index.html index 31c8ef88291..336795ec204 100644 --- a/app/grants/templates/grants/profile/index.html +++ b/app/grants/templates/grants/profile/index.html @@ -28,15 +28,15 @@ {% include 'shared/tag_manager_2.html' %}
    - {% include 'shared/nav.html' %} - {% include 'shared/minihero.html' with h1='My Grants' suppress_logo=1 position_h1_below_logo=True hide_rain=True %} + {% include 'shared/top_nav.html' with class='d-md-flex' %} + {% include 'grants/nav.html' %}
    {% if grants|length != 0 and sub_grants|length != 0 %}
    - - + +
    diff --git a/app/grants/templates/grants/quickstart.html b/app/grants/templates/grants/quickstart.html index 7c8f17fb382..cece442df9a 100644 --- a/app/grants/templates/grants/quickstart.html +++ b/app/grants/templates/grants/quickstart.html @@ -54,7 +54,8 @@ {% include 'shared/tag_manager_2.html' %}
    - {% include 'shared/nav.html' %} + {% include 'shared/top_nav.html' with class='d-md-flex' %} + {% include 'grants/nav.html' %} {% include 'shared/minihero.html' with h1='Getting Started with Grants' suppress_logo=1 position_h1_below_logo=True hide_rain=True %}
    @@ -103,8 +104,8 @@

    {%trans "It’s not just about the money" %}

    -

    {%trans "Ready to fund a grant?" %}

    - {%trans "Fund a Grant" %} +

    {%trans "Ready to fund a grant?" %}

    + {%trans "Fund a Grant" %}

    {%trans "Have any questions?" %}
    {%trans "Reach out to a Gitcoin Core Team member on" %} @@ -157,8 +158,8 @@

    {%trans "Introduce yourself or your team" %}

    -

    {%trans "Ready to start a grant?" %}

    - {%trans "Start a Grant" %} +

    {%trans "Ready to start a grant?" %}

    + {%trans "Start a Grant" %}

    {%trans "Have any questions?" %}
    {%trans "Reach out to a Gitcoin Core Team member on" %} diff --git a/app/grants/views.py b/app/grants/views.py index b373333e0e0..bedd60974be 100644 --- a/app/grants/views.py +++ b/app/grants/views.py @@ -56,15 +56,13 @@ def grants(request): if request.method == 'POST': keyword = request.POST.get('search_grants', '') _grants = Grant.objects.filter( - Q(description__icontains=keyword) | - Q(title__icontains=keyword) | - Q(reference_url__icontains=keyword) + Q(description__icontains=keyword) | Q(title__icontains=keyword) | Q(reference_url__icontains=keyword) ).order_by(sort) paginator = Paginator(_grants, limit) grants = paginator.get_page(page) - params = {'active': 'dashboard', 'title': _('Grants Explorer'), 'grants': grants, 'keywords': get_keywords(), } + params = {'active': 'grants_landing', 'title': _('Grants Explorer'), 'grants': grants, 'keywords': get_keywords(), } return TemplateResponse(request, 'grants/index.html', params) @@ -129,18 +127,20 @@ def grant_details(request, grant_id): 'title': 'Initial commit by flapjacks', 'date': '08.02.2018', 'description': 'Initial commit with some blah blah blah...', - }, { - 'title': 'Fix the build by derp-nation', - 'date': '08.02.2018', - 'description': 'Initial commit with some blah blah blah...', - }, { - 'title': 'A subpar commit by derp-diggity', - 'date': '08.02.2018', - 'description': 'Initial commit with some blah blah blah...', - }] + }, + { + 'title': 'Fix the build by derp-nation', + 'date': '08.02.2018', + 'description': 'Initial commit with some blah blah blah...', + }, + { + 'title': 'A subpar commit by derp-diggity', + 'date': '08.02.2018', + 'description': 'Initial commit with some blah blah blah...', + }] params = { - 'active': 'dashboard', + 'active': 'grant_details', 'title': _('Grant Details'), 'grant': grant, 'subscription': subscription, @@ -185,7 +185,7 @@ def grant_new(request): return redirect(reverse('grants:details', args=(grant.pk, ))) - params = {'active': 'grants', 'title': _('New Grant'), 'grant': {}, 'keywords': get_keywords(), } + params = {'active': 'new_grant', 'title': _('New Grant'), 'grant': {}, 'keywords': get_keywords(), } return TemplateResponse(request, 'grants/new.html', params) @@ -224,7 +224,7 @@ def milestones(request, grant_id): milestones = Milestone.objects.filter(grant_id=grant_id).order_by('due_date') params = { - 'active': 'grants', + 'active': 'grant_milestones', 'title': _('Grant Milestones'), 'grant': grant, 'milestones': milestones, @@ -261,7 +261,7 @@ def grant_fund(request, grant_id): return redirect(reverse('grants:details', args=(grant.pk, ))) params = { - 'active': 'dashboard', + 'active': 'fund_grant', 'title': _('Fund Grant'), 'subscription': {}, 'grant': grant, @@ -283,6 +283,7 @@ def subscription_cancel(request, grant_id, subscription_id): return redirect(reverse('grants:details', args=(grant.pk, ))) params = { + 'active': 'cancel_grant', 'title': _('Cancel Grant Subscription'), 'subscription': subscription, 'grant': grant, @@ -342,4 +343,6 @@ def profile(request): def quickstart(request): """Display quickstart guide.""" - return TemplateResponse(request, 'grants/quickstart.html', {}) + + params = {'active': 'grants_quickstart', 'title': _('Quickstart')} + return TemplateResponse(request, 'grants/quickstart.html', params) From 032c25d2a1c426fc7c931e7bf35a20d4c7e3a41b Mon Sep 17 00:00:00 2001 From: Aditya Anand Date: Thu, 15 Nov 2018 02:43:59 +0530 Subject: [PATCH 2/3] added feedback comments --- app/grants/templates/grants/new.html | 6 +++- app/grants/views.py | 42 +++++++++++++++------------- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/app/grants/templates/grants/new.html b/app/grants/templates/grants/new.html index f154e4f5171..bd8a54f965d 100644 --- a/app/grants/templates/grants/new.html +++ b/app/grants/templates/grants/new.html @@ -71,7 +71,11 @@

    {% trans "Create a Grant" %}

    -

    {% trans "We're excited to learn about your project.
    Complete the form below to get funding for your project." %}

    +

    + {% trans "We're excited to learn about your project." %} +
    + {% trans "Complete the form below to get funding for your project." %} +

    {% csrf_token %} diff --git a/app/grants/views.py b/app/grants/views.py index bedd60974be..889fa2e1b05 100644 --- a/app/grants/views.py +++ b/app/grants/views.py @@ -309,26 +309,28 @@ def profile(request): paginator = Paginator(_grants, limit) grants = paginator.get_page(page) - history = [{ - 'date': '16 Mar', - 'value_true': 1.0, - 'token_name': 'ETH', - 'frequency': 'days', - 'value_in_usdt_now': 80, - 'title': 'Lorem ipsum dolor sit amet', - 'link': 'https://etherscan.io/txs?a=0xcf267ea3f1ebae3c29fea0a3253f94f3122c2199&f=3', - 'avatar_url': 'https://c.gitcoin.co/avatars/57e79c0ae763bb27095f6b265a1a8bf3/thelostone-mc.svg' - }, - { - 'date': '24 April', - 'value_true': 90, - 'token_name': 'DAI', - 'frequency': 'months', - 'value_in_usdt_now': 90, - 'title': 'Lorem ipsum dolor sit amet', - 'link': 'https://etherscan.io/txs?a=0xcf267ea3f1ebae3c29fea0a3253f94f3122c2199&f=3', - 'avatar_url': 'https://c.gitcoin.co/avatars/57e79c0ae763bb27095f6b265a1a8bf3/thelostone-mc.svg' - }] + history = [ + { + 'date': '16 Mar', + 'value_true': 1.0, + 'token_name': 'ETH', + 'frequency': 'days', + 'value_in_usdt_now': 80, + 'title': 'Lorem ipsum dolor sit amet', + 'link': 'https://etherscan.io/txs?a=0xcf267ea3f1ebae3c29fea0a3253f94f3122c2199&f=3', + 'avatar_url': 'https://c.gitcoin.co/avatars/57e79c0ae763bb27095f6b265a1a8bf3/thelostone-mc.svg' + }, + { + 'date': '24 April', + 'value_true': 90, + 'token_name': 'DAI', + 'frequency': 'months', + 'value_in_usdt_now': 90, + 'title': 'Lorem ipsum dolor sit amet', + 'link': 'https://etherscan.io/txs?a=0xcf267ea3f1ebae3c29fea0a3253f94f3122c2199&f=3', + 'avatar_url': 'https://c.gitcoin.co/avatars/57e79c0ae763bb27095f6b265a1a8bf3/thelostone-mc.svg' + } + ] params = { 'active': 'profile', From 5a8bb90206a372356ad9196d3420e55000f30a35 Mon Sep 17 00:00:00 2001 From: Aditya Anand Date: Thu, 15 Nov 2018 03:19:30 +0530 Subject: [PATCH 3/3] - profile: show placeholder --- app/grants/templates/grants/card.html | 1 - app/grants/templates/grants/index.html | 1 + .../templates/grants/profile/index.html | 31 ++++++++++++------- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/app/grants/templates/grants/card.html b/app/grants/templates/grants/card.html index 482bfc86833..0849945a295 100644 --- a/app/grants/templates/grants/card.html +++ b/app/grants/templates/grants/card.html @@ -15,7 +15,6 @@ along with this program. If not, see . {% endcomment %} {% load i18n static humanize i18n %} -

    {{ grant.title|truncatechars:60 }}

    diff --git a/app/grants/templates/grants/index.html b/app/grants/templates/grants/index.html index 2f2a0bc58a9..a47aa0229a5 100644 --- a/app/grants/templates/grants/index.html +++ b/app/grants/templates/grants/index.html @@ -21,6 +21,7 @@ {% include 'shared/head.html' %} {% include 'shared/cards.html' %} + {% include 'shared/tag_manager_2.html' %} diff --git a/app/grants/templates/grants/profile/index.html b/app/grants/templates/grants/profile/index.html index 336795ec204..6a5292a2795 100644 --- a/app/grants/templates/grants/profile/index.html +++ b/app/grants/templates/grants/profile/index.html @@ -24,6 +24,7 @@ + {% include 'shared/tag_manager_2.html' %} @@ -32,7 +33,7 @@ {% include 'grants/nav.html' %}
    - {% if grants|length != 0 and sub_grants|length != 0 %} + {% if grants|length != 0 or sub_grants|length != 0 %}
    @@ -41,22 +42,30 @@
    -
    -
    -
    - {% include 'grants/profile/body.html' with grants=sub_grants history=history %} + {% if sub_grants|length != 0 %} +
    +
    +
    + {% include 'grants/profile/body.html' with grants=sub_grants history=history %} +
    -
    + {% else %} + {% include 'grants/profile/none.html' %} + {% endif %}
    -
    -
    -
    - {% include 'grants/profile/body.html' with grants=grants history=history %} + {% if grants|length != 0 %} +
    +
    +
    + {% include 'grants/profile/body.html' with grants=grants history=history %} +
    -
    + {% else %} + {% include 'grants/profile/none.html' %} + {% endif %}