Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(1462): added collab section with standard links #1510

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions _data/collab_links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
it:
- name: "issue_tracker"
title: "Issue Tracker"
icon: "it-github"

- name: "forum"
title: "Entra nel forum"
icon: "it-horn"

- name: "sign_up_slack"
title: "Registrati su Slack"
secondary: true

en:
- name: "issue_tracker"
title: "Issue Tracker"
icon: "it-github"

- name: "forum"
title: "Enter the forum"
icon: "it-horn"

- name: "sign_up_slack"
title: "Register on Slack"
secondary: true
2 changes: 2 additions & 0 deletions _data/l10n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ it:
project_abilitante: Piattaforma abilitante
project_owner: Titolare
project_manager: Gestore
project_collab: Canali
project_risorse: Risorse
project_issues: Attività aperte
project_issues_go: Vai alla pagina delle Attività
Expand Down Expand Up @@ -633,6 +634,7 @@ en:
project_abilitante: Enabling Platform
project_owner: Owner
project_manager: Manager
project_collab: Collaboration
project_risorse: Resources
project_issues: Open issues
project_issues_go: Go to Issues page
Expand Down
33 changes: 33 additions & 0 deletions _includes/platform-collab.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{% assign collab_links = site.data.collab_links[active_lang] %}

<section id="collab" class="project__collab">
<p class="pb-3">
{{ page.collab.description }}
</p>
<div class="d-flex flex-wrap justify-content-start">
{% for link in page.collab.links %}
{% if link.title %}
{% assign link_title = link.title %}
{% assign link_icon = link.icon | default: "" %}
{% assign link_secondary = link.secondary | default: false %}
{% else %}
{% assign collab_link = collab_links | where: "name", link.name | first %}
{% if collab_link %}
{% assign link_title = collab_link.title %}
{% assign link_icon = collab_link.icon | default: "" %}
{% assign link_secondary = collab_link.secondary | default: false %}
{% endif %}
{% endif %}
<a class="btn {% if link_secondary %}btn-white btn-outline-primary{% else %}btn-primary{% endif %} mr-2 mb-2 d-flex align-items-center" href="{{ link.url }}" target="_blank">
{% if link_icon != "" %}
<span class="project__collab-icon mr-1">
<svg class="icon {% if link_secondary %}icon-primary{% else %}icon-white{% endif %}">
<use xlink:href="/assets/svg/sprite.svg#{{ link_icon }}"></use>
</svg>
</span>
{% endif %}
{{ link_title }}
</a>
{% endfor %}
</div>
</section>
5 changes: 5 additions & 0 deletions _layouts/platform.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ <h2 class="d-inline h1">{{ page.subtitle }}</h2>
<div class="project__maincontent col-md-10">
{{ content }}

{% if page.collab %}
<h2>{{t.project_collab}}</h2>
{% include platform-collab.html %}
{% endif %}

{% if page.resources %}
{% unless page.resources_hide_title %}
<h2>{{t.project_risorse}}</h2>
Expand Down
18 changes: 9 additions & 9 deletions _platforms/en/anpr.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ resources:
icon: github
url: https://github.com/italia/anpr-client-example
desc: Client for testing the connection with ANPR
collab:
description: We built some collaboration tools for you including an issue tracker and a forum dedicated to discuss all the problems on integrating ANPR.
links:
- name: issue_tracker
url: "https://github.com/italia/anpr/issues"
- name: forum
url: "https://forum.italia.it/c/anpr"
- name: "sign_up_slack"
url: "https://slack.developers.italia.it/"
---

## Intro
Expand Down Expand Up @@ -70,12 +79,3 @@ ANPR provides a test environment that municipalities can use to:
For technical specifications, service documentation and the guide to the
migration process for municipalities, please refer to the [Technical
documentation and reference tables](https://docs.italia.it/italia/anpr/anpr/).

## Collaboration

We built some collaboration tools for you including an *issue tracker* and
a forum dedicated to discuss all the problems on integrating ANPR.

<a class="btn btn-primary" href="https://github.com/italia/anpr/issues" target="_blank"><svg class="icon icon-white"><use xlink:href="/assets/svg/sprite.svg#it-github"></use></svg> Issue tracker</a>
<a class="btn btn-primary" href="https://forum.italia.it/c/anpr" target="_blank"><svg class="icon icon-white"><use xlink:href="/assets/svg/sprite.svg#it-horn"></use></svg> Enter the forum</a>
<a class="btn btn-white btn-outline-primary" href="https://slack.developers.italia.it/" target="_blank"><svg class="icon icon-primary"><use xlink:href="/assets/svg/sprite.svg#it-comment"></use></svg> Sign up on Slack</a>
24 changes: 12 additions & 12 deletions _platforms/it/anpr.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ resources:
icon: github
url: https://github.com/italia/anpr-client-example
desc: Client per il test della connessione ad ANPR
collab:
description: Abbiamo creato degli strumenti di collaborazione a vostra disposizione, tra cui un issue tracker e un forum dedicato alla discussione delle problematiche di integrazione.
links:
- name: issue_tracker
url: "https://github.com/italia/anpr/issues"
- name: forum
url: "https://forum.italia.it/c/anpr"
- title: "Dialoga su Slack (#anpr)"
url: https://developersitalia.slack.com/archives/C7A8NS7RQ
- name: "sign_up_slack"
url: "https://slack.developers.italia.it/"
---

## Intro
Expand Down Expand Up @@ -73,15 +84,4 @@ salotto, oppure di scaricare un certificato di stato di famiglia.
Per le specifiche tecniche la documentazioni dei servizi e la guida al processo
di migrazione per i comuni si faccia riferimento alla [Documentazione tecnica
e tabelle di
riferimento](https://docs.italia.it/italia/anpr/anpr/){:target="_blank"}

## Canali

Abbiamo creato degli strumenti di collaborazione a vostra disposizione, tra cui
un *issue tracker* e un forum dedicato alla discussione delle problematiche di
integrazione.

<a class="btn btn-primary" href="https://github.com/italia/anpr/issues" target="_blank"><i class="it-github" /> Issue tracker</a>
<a class="btn btn-primary" href="https://forum.italia.it/c/anpr" target="_blank"><i class="it-horn" /> Entra nel forum</a>
<a class="btn btn-primary" href="https://developersitalia.slack.com/archives/C7A8NS7RQ" target="_blank"><i class="it-comment" /> Dialoga su Slack (#anpr)</a>
<a class="btn btn-white btn-outline-primary" href="https://slack.developers.italia.it/" target="_blank"><i class="it-comment" /> Registrati su Slack</a>
riferimento](https://docs.italia.it/italia/anpr/anpr/){:target="_blank"}
Loading