Skip to content

Commit

Permalink
Mark all documents as secret
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Nov 13, 2024
1 parent b581ed6 commit d7b49af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions backend/hub/templates/hub/candidate/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,27 @@

{% if candidate.statement %}
{% trans "Representative statement" as doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.statement.url document_name=doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.statement.url document_name=doc_name is_secret=True %}
{% endif %}

{% if candidate.mandate %}
{% trans "Mandate" as doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.mandate.url document_name=doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.mandate.url document_name=doc_name is_secret=True %}
{% endif %}

{% if candidate.letter_of_intent %}
{% trans "Letter of intent" as doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.letter_of_intent.url document_name=doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.letter_of_intent.url document_name=doc_name is_secret=True %}
{% endif %}

{% if candidate.cv %}
{% trans "CV" as doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.cv.url document_name=doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.cv.url document_name=doc_name is_secret=True %}
{% endif %}

{% if candidate.declaration_of_interests %}
{% trans "Declaration of interests" as doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.declaration_of_interests.url document_name=doc_name %}
{% include "hub/partials/document.html" with document_url=candidate.declaration_of_interests.url document_name=doc_name is_secret=True %}
{% endif %}

{% if candidate.fiscal_record %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@

{% if ngo.report_2023 %}
{% trans "Yearly report 2023" as doc_name %}
{% include "hub/partials/document.html" with document_url=ngo.report_2023.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %}
{% include "hub/partials/document.html" with document_url=ngo.report_2023.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=True %}
{% endif %}

{% if ngo.report_2022 %}
{% trans "Yearly report 2022" as doc_name %}
{% include "hub/partials/document.html" with document_url=ngo.report_2022.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %}
{% include "hub/partials/document.html" with document_url=ngo.report_2022.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=True %}
{% endif %}

{% if ngo.report_2021 %}
{% trans "Yearly report 2021" as doc_name %}
{% include "hub/partials/document.html" with document_url=ngo.report_2021.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %}
{% include "hub/partials/document.html" with document_url=ngo.report_2021.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=True %}
{% endif %}

{% if ngo.statement_discrimination %}
{% trans "Non-discrimination statement " as doc_name %}
{% include "hub/partials/document.html" with document_url=ngo.statement_discrimination.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=False %}
{% include "hub/partials/document.html" with document_url=ngo.statement_discrimination.url document_name=doc_name can_view_secret_files=can_view_all_information is_secret=True %}
{% endif %}

{% if ngo.statement_political %}
Expand Down

0 comments on commit d7b49af

Please sign in to comment.