Skip to content

Commit

Permalink
content: fix mainCopyrightOwner/repoOwner logic (italia#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabio authored Jul 30, 2024
1 parent 32d14f4 commit b37f8da
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _data/l10n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ I range di ogni misura possono essere trovati nel file [vitality-ranges.yml](htt
transportation: trasporti
welfare: benessere
pa:
top_right_text: Questa pagina elenca il software di cui l'ente è titolare e che è stato pubblicato con licenza aperta ai sensi dell'art. 69 del Codice dell'Amministrazione Digitale.
top_right_text:
more_details: Esplora
errors:
something_went_wrong: Ops! Qualcosa è andato storto...
Expand Down Expand Up @@ -879,7 +879,7 @@ The ranges of every measure can be found in the [vitality-ranges.yml](https://gi
transportation: transportation
welfare: welfare
pa:
top_right_text: This page lists the software solutions owned by this public entity and released under an open license according to art. 69 of the Italian Digital Administration Code.
top_right_text:
more_details: Read more
errors:
something_went_wrong: Oops, something went wrong...
Expand Down
13 changes: 11 additions & 2 deletions _layouts/software-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,26 @@ <h3 class="color-content font-serif my-2 my-md-4">
{% endif %}
</div>
<div class="row legal-main-info">
{% if page.publiccode.legal.mainCopyrightOwner %}
<div class="col-sm">
<p><span class="label">{{ t.software.published_by }} </span>
{{ page.publiccode.legal.mainCopyrightOwner }}
</p>
</div>
{% endif %}
{% if page.publiccode.legal.repoOwner %}
<div class="col-sm">
<p><span class="label">Gestito da</span>
{% if page.publiccode.it.riuso.codiceIPA %}
<a href="/{{ active_lang }}/pa/{{ page.publiccode.it.riuso.codiceIPA | downcase }}">
{{ page.publiccode.legal.repoOwner | default: page['it-riuso-codiceIPA-label'] }}
{{ page.publiccode.legal.repoOwner }}
</a>
{% else %}
{{ page.publiccode.legal.repoOwner | default: page['it-riuso-codiceIPA-label'] }}
{{ page.publiccode.legal.repoOwner }}
{% endif %}
</p>
</div>
{% endif %}
{% if page.publiccode.maintenance.type == "contract" %}
{% if page.publiccode.maintenance.contractors.size > 0 %}
<div class="col-sm">
Expand Down

0 comments on commit b37f8da

Please sign in to comment.