Skip to content

add link to gravatar #337

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

Merged
merged 1 commit into from
Apr 4, 2018
Merged
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
3 changes: 3 additions & 0 deletions app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<a href="https://www.gravatar.com" target="_blank">
<%= image_tag avatar_url(@user, 160) %>
</a>
<a href="https://www.gravatar.com" target="_blank" class="btn btn-link">
<%= glyph :pencil %> <%= t ".change_your_image" %>
</a>
<% else %>
<%= image_tag avatar_url(@user, 160) %>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ ca:
accounts: Comptes
balance: 'Balanç:'
categories: Serveis Ofertats
change_your_image: Canvia la teva imatge
created_at: 'Alta:'
data: Dades de l'usuari
date: Data
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ en:
accounts: Accounts
balance: 'Balance:'
categories: Offered Services
change_your_image: Change your image
created_at: 'Registered:'
data: User details
date: Date
Expand Down
1 change: 1 addition & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ es:
accounts: Cuentas
balance: 'Balance:'
categories: Servicios Ofrecidos
change_your_image: Cambia tu imagen
created_at: 'Alta:'
data: Datos del usuario
date: Fecha
Expand Down
1 change: 1 addition & 0 deletions config/locales/eu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ eu:
accounts: Kontuak
balance: 'Balantzea:'
categories: Eskainiriko zerbitzuak
change_your_image:
created_at: 'Alta:'
data: Erabiltzailearen datuak
date: Eguna
Expand Down
1 change: 1 addition & 0 deletions config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ pt-BR:
accounts: Contas
balance: 'Balanço:'
categories: Serviços Oferecidos
change_your_image:
Copy link
Collaborator

@sauloperez sauloperez Mar 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a problem @sseerrggii ? I guess this will be displayed as an empty string which might be troublesome.

Copy link
Collaborator Author

@markets markets Mar 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so @sauloperez, we are using i18n.fallbacks = true so it should render the default_locale, in our case i18n.default_locale = :es. Example:

captura de pantalla 2018-03-20 a las 11 53 04

created_at: 'Inscrição:'
data: Dados do usuário
date: Data
Expand Down