mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-25 02:06:22 +00:00
ver información básica sobre les usuaries
This commit is contained in:
parent
0d9b0ab305
commit
9cf4645d5e
5 changed files with 14 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -51,6 +51,7 @@ gem 'jekyll'
|
||||||
gem 'jquery-rails'
|
gem 'jquery-rails'
|
||||||
gem 'mini_magick'
|
gem 'mini_magick'
|
||||||
gem 'pundit'
|
gem 'pundit'
|
||||||
|
gem 'rails-i18n'
|
||||||
gem 'rails_warden'
|
gem 'rails_warden'
|
||||||
gem 'whenever', require: false
|
gem 'whenever', require: false
|
||||||
|
|
||||||
|
|
|
@ -249,6 +249,9 @@ GEM
|
||||||
nokogiri (>= 1.6)
|
nokogiri (>= 1.6)
|
||||||
rails-html-sanitizer (1.0.4)
|
rails-html-sanitizer (1.0.4)
|
||||||
loofah (~> 2.2, >= 2.2.2)
|
loofah (~> 2.2, >= 2.2.2)
|
||||||
|
rails-i18n (5.1.3)
|
||||||
|
i18n (>= 0.7, < 2)
|
||||||
|
railties (>= 5.0, < 6)
|
||||||
rails_warden (0.6.0)
|
rails_warden (0.6.0)
|
||||||
warden (>= 1.2.0)
|
warden (>= 1.2.0)
|
||||||
railties (5.2.3)
|
railties (5.2.3)
|
||||||
|
@ -384,6 +387,7 @@ DEPENDENCIES
|
||||||
puma (~> 3.7)
|
puma (~> 3.7)
|
||||||
pundit
|
pundit
|
||||||
rails (~> 5.2)
|
rails (~> 5.2)
|
||||||
|
rails-i18n
|
||||||
rails_warden
|
rails_warden
|
||||||
rbnacl (< 5.0)
|
rbnacl (< 5.0)
|
||||||
rubocop
|
rubocop
|
||||||
|
|
|
@ -27,9 +27,16 @@
|
||||||
%table.table.table-striped.table-condensed
|
%table.table.table-striped.table-condensed
|
||||||
%tbody
|
%tbody
|
||||||
- @site.send(u).each do |cuenta|
|
- @site.send(u).each do |cuenta|
|
||||||
|
- rol = cuenta.rol_for_site(@site)
|
||||||
%tr
|
%tr
|
||||||
-# TODO: avatares
|
-# TODO: avatares
|
||||||
%td= cuenta.email
|
%td= cuenta.email
|
||||||
|
%td
|
||||||
|
%time{ datetime: rol.created_at }
|
||||||
|
= time_ago_in_words rol.created_at
|
||||||
|
%td
|
||||||
|
- if rol.temporal
|
||||||
|
%span.badge.badge-info= t('.invited')
|
||||||
%td
|
%td
|
||||||
.btn-group{role: 'group', 'aria-label': t('.individual_actions')}
|
.btn-group{role: 'group', 'aria-label': t('.individual_actions')}
|
||||||
- if @policy.demote? && @site.usuarie?(cuenta)
|
- if @policy.demote? && @site.usuarie?(cuenta)
|
||||||
|
|
|
@ -291,6 +291,7 @@ en:
|
||||||
confirm: 'Convert to user? They will gain full access to self-manage this site.'
|
confirm: 'Convert to user? They will gain full access to self-manage this site.'
|
||||||
invite:
|
invite:
|
||||||
text: 'Invite'
|
text: 'Invite'
|
||||||
|
invited: Awaiting confirmation
|
||||||
invite:
|
invite:
|
||||||
title: 'Invite %{invite_as}'
|
title: 'Invite %{invite_as}'
|
||||||
help:
|
help:
|
||||||
|
|
|
@ -292,6 +292,7 @@ es:
|
||||||
confirm: '¿Convertir en usuarie? Ganará acceso a la gestión completa del sitio.'
|
confirm: '¿Convertir en usuarie? Ganará acceso a la gestión completa del sitio.'
|
||||||
invite:
|
invite:
|
||||||
text: 'Invitar'
|
text: 'Invitar'
|
||||||
|
invited: Esperando confirmación
|
||||||
invite:
|
invite:
|
||||||
title: 'Invitar %{invite_as}'
|
title: 'Invitar %{invite_as}'
|
||||||
help:
|
help:
|
||||||
|
|
Loading…
Reference in a new issue