mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-21 21:56: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 'mini_magick'
|
||||
gem 'pundit'
|
||||
gem 'rails-i18n'
|
||||
gem 'rails_warden'
|
||||
gem 'whenever', require: false
|
||||
|
||||
|
|
|
@ -249,6 +249,9 @@ GEM
|
|||
nokogiri (>= 1.6)
|
||||
rails-html-sanitizer (1.0.4)
|
||||
loofah (~> 2.2, >= 2.2.2)
|
||||
rails-i18n (5.1.3)
|
||||
i18n (>= 0.7, < 2)
|
||||
railties (>= 5.0, < 6)
|
||||
rails_warden (0.6.0)
|
||||
warden (>= 1.2.0)
|
||||
railties (5.2.3)
|
||||
|
@ -384,6 +387,7 @@ DEPENDENCIES
|
|||
puma (~> 3.7)
|
||||
pundit
|
||||
rails (~> 5.2)
|
||||
rails-i18n
|
||||
rails_warden
|
||||
rbnacl (< 5.0)
|
||||
rubocop
|
||||
|
|
|
@ -27,9 +27,16 @@
|
|||
%table.table.table-striped.table-condensed
|
||||
%tbody
|
||||
- @site.send(u).each do |cuenta|
|
||||
- rol = cuenta.rol_for_site(@site)
|
||||
%tr
|
||||
-# TODO: avatares
|
||||
%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
|
||||
.btn-group{role: 'group', 'aria-label': t('.individual_actions')}
|
||||
- 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.'
|
||||
invite:
|
||||
text: 'Invite'
|
||||
invited: Awaiting confirmation
|
||||
invite:
|
||||
title: 'Invite %{invite_as}'
|
||||
help:
|
||||
|
|
|
@ -292,6 +292,7 @@ es:
|
|||
confirm: '¿Convertir en usuarie? Ganará acceso a la gestión completa del sitio.'
|
||||
invite:
|
||||
text: 'Invitar'
|
||||
invited: Esperando confirmación
|
||||
invite:
|
||||
title: 'Invitar %{invite_as}'
|
||||
help:
|
||||
|
|
Loading…
Reference in a new issue