Skip to content

Commit

Permalink
chore: cleanup (gitcoinco#5701)
Browse files Browse the repository at this point in the history
* update 2018 -> 2020

* chore: {%if%} -> {% if %}, {%endif%} -> {% endif %}, {%elif%} -> {% elif %}
  • Loading branch information
thelostone-mc authored and danlipert committed Jan 8, 2020
1 parent 9e12ced commit 4b9b713
Show file tree
Hide file tree
Showing 392 changed files with 530 additions and 532 deletions.
2 changes: 1 addition & 1 deletion app/app/context.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define additional context data to be passed to any request.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/log_filters.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define custom log filters for Gitcoin logging.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/pipeline.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define authentication pipeline functions and logic.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/settings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Gitcoin project settings.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/templates/shared/messages.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/templates/shared/rain.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/templates/shared/sentry.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/tests/test_app_urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Handle app url related tests.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/thumbnail_processors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the EthOS thumbnail processors.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/app/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8
"""Define the application WSGI.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/avatar/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Avatar admin layout.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/avatar/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Avatar application configuration.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/avatar/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Avatar models.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/avatar/templatetags/avatar_tags.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Avatar template tags.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/avatar/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Handle avatar URLs.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/avatar/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Avatar utilities.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/avatar/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Avatar views.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/avatar/views_3d.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Avatar views.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/bounty_requests/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define admin related functionality for Bounty Requests.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/bounty_requests/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define bounty request related forms.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/bounty_requests/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define bounty requests related models.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/bounty_requests/templates/bounty_request_form.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/bounty_requests/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define bounty request views.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/chat/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define view for the inbox app.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/apps.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define the Dashboard application configuration.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Handle dashboard helpers and related logic.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/management/commands/calc_profile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/management/commands/create_earnings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/management/commands/create_pagerank.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/management/commands/migrate_profiles.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Handle marketing commands related tests.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/management/commands/setup_grants_clr_3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/management/commands/sync_listener.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'''
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/notifications.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Handle dashboard related notifications.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/router.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Define dashboard specific DRF API routes.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/signals.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Handle dashboard related signals.
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/templates/addinterest.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/templates/bounty/change.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/templates/bounty/fulfill.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1 class="text-center title">{% trans "Submit Work" %}</h1>
<form id="submitBounty" class="submit_bounty_form px-5 pt-5">
<div class="w-100">
<label class="form__label" for="issueURL">{% trans "Issue URL" %}</label>
<input required name='issueURL' id="issueURL" class="form__input" type="url" placeholder="https://github.com/user/repo/issues/n" value="{% if bounty %}{{bounty.github_url}}{%endif%}" />
<input required name='issueURL' id="issueURL" class="form__input" type="url" placeholder="https://github.com/user/repo/issues/n" value="{% if bounty %}{{bounty.github_url}}{% endif %}" />
</div>
<div class="row mt-2">
{% include 'shared/github_username.html' %}
Expand Down
4 changes: 2 additions & 2 deletions app/dashboard/templates/bounty/fund.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down Expand Up @@ -77,7 +77,7 @@ <h5 class="font-smaller-3 font-weight-bold mb-2">Important Notes on Private Repo
</div>
</div>
<label class="font-caption letter-spacing text-black-60 text-uppercase" for=issueURL>{% trans "Github Issue URL" %} <span class="badge badge-greylight text-capitalize">Required</span></label>
<input name='issueURL' id="issueURL" class="form__input" type="url" placeholder="https://github.com/user/repo/issues/n" value="{% if issueURL %}{{issueURL}}{%endif%}" required/>
<input name='issueURL' id="issueURL" class="form__input" type="url" placeholder="https://github.com/user/repo/issues/n" value="{% if issueURL %}{{ issueURL }}{% endif %}" required/>
<div class="text-right mt-2">
<p class="font-caption" id="last-synced">{% trans "Last Synced " %}<span></span></p>
<button id="sync-issue" class="button button--primary disabled">
Expand Down
4 changes: 2 additions & 2 deletions app/dashboard/templates/bounty/invoice.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@
<td>
{% if total %}
{% trans "Total:" %} ${{total|floatformat:2}}
{%else%}
{% else %}
{% trans "Total:" %} $0.00
{%endif%}
{% endif %}
</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/templates/bounty/kill.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h4 class="text-left">{% trans "Cancel Bounty and Reclaim Funds" %}</h4>
<a class="link" href="{{ bounty.github_url }}">{% trans "Back to Bounty" %}</a>
</p>
<label class="form__label" for="issueURL">{% trans "Issue URL" %}</label>
<input name='issueURL' id="issueURL" class="form__input" type="url" required placeholder="https://github.com/user/repo/issues/n" value="{% if bounty %}{{bounty.github_url}}{%endif%}" />
<input name='issueURL' id="issueURL" class="form__input" type="url" required placeholder="https://github.com/user/repo/issues/n" value="{% if bounty %}{{bounty.github_url}}{% endif %}" />
</div>

<div class="my-4 pt-3 border-top">
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/templates/bounty/process_refund_request.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "admin/base_site.html" %}
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
2 changes: 1 addition & 1 deletion app/dashboard/templates/bulk_payout_bounty.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% comment %}
Copyright (C) 2018 Gitcoin Core
Copyright (C) 2020 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
Expand Down
Loading

0 comments on commit 4b9b713

Please sign in to comment.