Skip to content

Commit

Permalink
Merge pull request #25 from AjuntamentdeBarcelona/feat/show-user-prof…
Browse files Browse the repository at this point in the history
…ile-on-iniciative

Show user profile on iniciative
  • Loading branch information
verarojman authored Oct 5, 2022
2 parents da45a25 + 5e6112a commit 43c6b7c
Show file tree
Hide file tree
Showing 45 changed files with 4 additions and 106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

.initiative-authors{
padding-left: 0 !important;
margin-left: 30px !important;

.publish-date{
display: inline-block;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,10 @@
<div class="author-data initiative-authors">
<div class="author-data__main ">
<div class="author author--inline">
<span class="author__avatar author__avatar--small">
<%= image_tag present(initiative.author).avatar_url, alt: t("decidim.author.avatar", name: decidim_sanitize(initiative.author_name)) %>
</span>
<span class="author__name">
<% if initiative.author.deleted? %>
<span class="label label--small label--basic">
<%= t(".deleted") %>
</span>
<% else %>
<%= decidim_sanitize(initiative.author_name) %>
<% end %>
</span>
</div>
<%== cell("decidim/author", present(initiative.author)).profile %>

<% initiative.committee_members.excluding_author.approved.each do |m| %>
<% unless m.user.deleted? %>
<div class="author author--inline">
<span class="author__avatar author__avatar--small">
<%= image_tag present(m.user).avatar_url %>
</span>
<span class="author__name">
<%= decidim_sanitize(m.user.name) %>
</span>
</div>
<%== cell("decidim/author", present(m.user)).profile %>
<% end %>
<% end %>

Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/ar-SA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,6 @@ ar:
sms_phone:
invalid: رقم الهاتف غير صالح أو قيد التفويض. من فضلك ، تحقق من التراخيص الخاصة بك.
initiatives:
author:
deleted: تم الحذف
author_list:
hidden_authors_count:
zero: و %{count} المزيد من الناس
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ ar:
sms_phone:
invalid: رقم الهاتف غير صالح أو قيد التفويض. من فضلك ، تحقق من التراخيص الخاصة بك.
initiatives:
author:
deleted: تم الحذف
author_list:
hidden_authors_count:
zero: و %{count} المزيد من الناس
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ ca:
sms_phone:
invalid: El número de telèfon no és vàlid o està pendent d'autorització. Si us plau, consulta les teves autoritzacions.
initiatives:
author:
deleted: Eliminat
author_list:
hidden_authors_count:
one: i 1 persona més
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/cs-CZ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ cs:
sms_phone:
invalid: Telefonní číslo je neplatné nebo čeká na autorizaci. Zkontrolujte prosím vaše oprávnění.
initiatives:
author:
deleted: Vymazáno
author_list:
hidden_authors_count:
one: a 1 další osobou
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,6 @@ cs:
sms_phone:
invalid: Telefonní číslo je neplatné nebo čeká na autorizaci. Zkontrolujte prosím vaše oprávnění.
initiatives:
author:
deleted: Vymazáno
author_list:
hidden_authors_count:
one: a 1 další osobou
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ de:
sms_phone:
invalid: Die Telefonnummer ist ungültig oder muss noch autorisiert werden. Bitte überprüfen Sie Ihre Berechtigungen.
initiatives:
author:
deleted: Gelöscht
author_list:
hidden_authors_count:
one: und 1 weitere Person
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ el:
sms_phone:
invalid: Ο αριθμός τηλεφώνου δεν είναι έγκυρος ή εκκρεμεί εξουσιοδότηση. Ελέγξτε τις εξουσιοδοτήσεις σας.
initiatives:
author:
deleted: Διαγράφηκε
author_list:
hidden_authors_count:
one: και 1 ακόμη άτομο
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,6 @@ en:
sms_phone:
invalid: The phone number is invalid or pending of authorization. Please, check your authorizations.
initiatives:
author:
deleted: Deleted
author_list:
hidden_authors_count:
one: and 1 more person
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/es-MX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ es-MX:
sms_phone:
invalid: El número de teléfono no es válido o está pendiente de autorización. Por favor, revise sus autorizaciones.
initiatives:
author:
deleted: Eliminado
author_list:
hidden_authors_count:
one: y 1 persona más
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/es-PY.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ es-PY:
sms_phone:
invalid: El número de teléfono no es válido o está pendiente de autorización. Por favor, revise sus autorizaciones.
initiatives:
author:
deleted: Eliminado
author_list:
hidden_authors_count:
one: y 1 persona más
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ es:
sms_phone:
invalid: El número de teléfono no es válido o está pendiente de autorización. Por favor, revisa tus autorizaciones.
initiatives:
author:
deleted: Eliminado
author_list:
hidden_authors_count:
one: y 1 persona más
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,6 @@ eu:
sms_phone:
invalid: Telefono-zenbakia baliogabea edo baimenaren zain dago. Egiaztatu zure baimenak.
initiatives:
author:
deleted: Ezabatutako
author_list:
hidden_authors_count:
one: eta beste 1 pertsona
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/fi-pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,6 @@ fi-pl:
sms_phone:
invalid: Puhelinnumero on virheellinen tai odottaa tarkastusta. Tarkista valtuutesi.
initiatives:
author:
deleted: Poistettu
author_list:
hidden_authors_count:
one: ja yksi muu henkilö
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/fi-plain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ fi-pl:
sms_phone:
invalid: Puhelinnumero on virheellinen tai odottaa tarkastusta. Tarkista valtuutesi.
initiatives:
author:
deleted: Poistettu
author_list:
hidden_authors_count:
one: ja yksi muu henkilö
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/fi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ fi:
sms_phone:
invalid: Puhelinnumero on virheellinen tai odottaa tarkastusta. Tarkista vahvistuksesi.
initiatives:
author:
deleted: Poistettu
author_list:
hidden_authors_count:
one: ja yksi muu henkilö
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/fr-CA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ fr-CA:
sms_phone:
invalid: Le numéro de téléphone est invalide ou en attente d'autorisation. S'il vous plaît, vérifiez vos autorisations.
initiatives:
author:
deleted: Supprimé
author_list:
hidden_authors_count:
one: et 1 autre personne
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/fr-LU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,6 @@ fr-LU:
sms_phone:
invalid: Le numéro de téléphone est invalide ou en attente d'autorisation. S'il vous plaît, vérifiez vos autorisations.
initiatives:
author:
deleted: Supprimé
author_list:
hidden_authors_count:
one: et 1 autre personne
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ fr:
sms_phone:
invalid: Le numéro de téléphone est invalide ou en attente d'autorisation. S'il vous plaît, vérifiez vos autorisations.
initiatives:
author:
deleted: Supprimé
author_list:
hidden_authors_count:
one: et 1 autre personne
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/ga-IE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ ga:
month:
year: Bliain
initiatives:
author:
deleted: Scriosta
committee_members:
approve: Ceadaigh
revoke: Cúlghairm
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/gl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,6 @@ gl:
sms_phone:
invalid: O número de teléfono non é válido nin está en espera de autorización. Verifique as súas autorizacións.
initiatives:
author:
deleted: Eliminado
author_list:
hidden_authors_count:
one: e 1 persoa máis
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/hu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,6 @@ hu:
sms_phone:
invalid: A telefonszám érvénytelen vagy függőben van. Kérjük, ellenőrizd az engedélyeket.
initiatives:
author:
deleted: Törölve
author_list:
hidden_authors_count:
one: és további 1 személy
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/id-ID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ id:
sms_phone:
invalid: Nomor telepon tidak valid atau menunggu otorisasi. Silakan periksa otorisasi Anda.
initiatives:
author:
deleted: Dihapus
author_list:
hidden_authors_count:
other: dan %{count} lebih banyak orang
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/is-IS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ is-IS:
index:
title: Frumkvæði
initiatives:
author:
deleted: Eytt
count:
title:
one: "%{count} frumkvæði"
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/is.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ is:
index:
title: Frumkvæði
initiatives:
author:
deleted: Eytt
count:
title:
one: "%{count} frumkvæði"
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ it:
sms_phone:
invalid: Il numero di telefono non è valido o è in attesa di autorizzazione. Per favore, controlla le tue autorizzazioni.
initiatives:
author:
deleted: eliminata
author_list:
hidden_authors_count:
one: e 1 altra persona
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ ja:
sms_phone:
invalid: 電話番号が無効または承認待ちです。認証を確認してください。
initiatives:
author:
deleted: 削除しました
author_list:
hidden_authors_count:
other: '%{count} 人以上'
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/lb-LU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ lb:
sms_phone:
invalid: Die Telefonnummer ist ungültig oder muss noch autorisiert werden. Bitte überprüfen Sie Ihre Berechtigungen.
initiatives:
author:
deleted: Gelöscht
author_list:
hidden_authors_count:
one: und 1 weitere Person
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/lb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,6 @@ lb:
sms_phone:
invalid: Die Telefonnummer ist ungültig oder muss noch autorisiert werden. Bitte überprüfen Sie Ihre Berechtigungen.
initiatives:
author:
deleted: Gelöscht
author_list:
hidden_authors_count:
one: und 1 weitere Person
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/lv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,6 @@ lv:
sms_phone:
invalid: Tālruņa numurs nav derīgs vai gaida autorizāciju. Lūdzu, pārbaudiet savas autorizācijas.
initiatives:
author:
deleted: Dzēsts
author_list:
hidden_authors_count:
zero: un vēl %{count} personas
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,6 @@ nl:
sms_phone:
invalid: Het telefoonnummer is ongeldig of in afwachting van autorisatie. Controleer alstublieft uw autorisaties.
initiatives:
author:
deleted: verwijderde
author_list:
hidden_authors_count:
one: en nog 1 persoon
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/no.yml
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,6 @@
sms_phone:
invalid: Telefonnummeret er ugyldig eller venter på godkjenning. Vennligst sjekk autorisasjonene dine.
initiatives:
author:
deleted: Slettet
author_list:
hidden_authors_count:
one: og 1 til persjon
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ pl:
sms_phone:
invalid: Numer telefonu jest nieprawidłowy lub oczekuje na autoryzację. Sprawdź swoje autoryzacje.
initiatives:
author:
deleted: Usunięto
author_list:
hidden_authors_count:
one: i jeszcze 1 osoba
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ pt-BR:
sms_phone:
invalid: O número de telefone é inválido ou está pendente de autorização. Por favor, verifique suas autorizações.
initiatives:
author:
deleted: Excluído
author_list:
hidden_authors_count:
one: e mais 1 pessoa
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ pt:
sms_phone:
invalid: O número de telefone é inválido ou está pendente de autorização. Por favor, verifique as suas autorizações.
initiatives:
author:
deleted: Eliminado
author_list:
hidden_authors_count:
one: e mais 1 pessoa
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/ro-RO.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,6 @@ ro:
sms_phone:
invalid: Numărul de telefon este invalid sau în aşteptarea autorizaţiei. Te rugăm să verific setările tale de autorizare.
initiatives:
author:
deleted: Șters
author_list:
hidden_authors_count:
one: și încă o persoană
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ ru:
create:
error: При попытке подписаться за этот почин произошли ошибки.
initiatives:
author:
deleted: Удален
author_list:
hidden_authors_count:
one: и еще 1 человек
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/sk-SK.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ sk:
sms_phone:
invalid: Telefónne číslo je neplatné alebo čaká na autorizáciu. Skontrolujte prosím vaše oprávnenie.
initiatives:
author:
deleted: Zmazaných
author_list:
hidden_authors_count:
one: a 1 ďalšou osobou
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/sk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@ sk:
sms_phone:
invalid: Telefónne číslo je neplatné alebo čaká na autorizáciu. Skontrolujte prosím vaše oprávnenie.
initiatives:
author:
deleted: Zmazaných
author_list:
hidden_authors_count:
one: a 1 ďalšou osobou
Expand Down
2 changes: 0 additions & 2 deletions decidim-initiatives/config/locales/sv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,6 @@ sv:
sms_phone:
invalid: Telefonnumret är ogiltigt eller har ännu inte godkänts. Kontrollera dina godkännanden.
initiatives:
author:
deleted: Raderade
author_list:
hidden_authors_count:
one: och ytterligare en person
Expand Down
Loading

0 comments on commit 43c6b7c

Please sign in to comment.