Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#7620207] Installed RailsAdmin and configured it to authorize users …
…with admin flag set to true.
- Loading branch information
Riccardo Cambiassi
committed
Dec 22, 2010
1 parent
8006177
commit ab55dc3
Showing
27 changed files
with
1,205 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
RailsAdmin.authorize_with do | ||
redirect_to root_path unless current_user.admin? | ||
end | ||
|
||
RailsAdmin.config do |config| | ||
config.model Slug do | ||
hide_from_navigation | ||
end | ||
config.model Knot do | ||
list do | ||
field :url | ||
field :title | ||
field :state | ||
field :created_at | ||
end | ||
end | ||
config.model User do | ||
list do | ||
field :cached_slug do | ||
label "Slug" | ||
end | ||
field :admin do | ||
label "Admin?" | ||
end | ||
field :public_flag do | ||
label "Public?" | ||
end | ||
field :nickname | ||
field :email | ||
field :language | ||
field :created_at | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
en: | ||
errors: | ||
messages: | ||
not_found: "не е намерен" | ||
already_confirmed: "е вече потвърден" | ||
not_locked: "не е бил заключен" | ||
|
||
devise: | ||
failure: | ||
unauthenticated: 'Трябва да влезнеш в акаунта си или да се регистрираш преди да продължиш.' | ||
unconfirmed: 'Трябва да потвърдиш регистрацията на акаунта си преди да продължиш.' | ||
locked: 'Твоят акаунт е заключен.' | ||
invalid: 'Невалиден мейл или парола.' | ||
invalid_token: 'Невалиден код за потвърждение.' | ||
timeout: 'Сесията е изтекла, моля влез наново в акаунта си преди да продължиш.' | ||
inactive: 'Твоят акаунт неактивен.' | ||
sessions: | ||
signed_in: 'Влезе успешно.' | ||
signed_out: 'Излезе успешно.' | ||
passwords: | ||
send_instructions: 'Ще получиш емейл с инструкции за смяна на твоята парола.' | ||
updated: 'Успешно смени паролата си.' | ||
confirmations: | ||
send_instructions: 'Ще получиш емейл с инструкции за потвърждение на твоята регистрация.' | ||
confirmed: 'Успешно потвърди регистрацията си.' | ||
registrations: | ||
signed_up: 'Регистрацията мина успешно. Ако е актививирано потвърждение по емейл, моля провери пощенската си кутия.' | ||
updated: 'Успешно обнови акаунта си.' | ||
destroyed: 'Твоят акаунт беше изтрит.' | ||
unlocks: | ||
send_instructions: 'Ще получиш емейл с инструкции за отключване на акаунта ти.' | ||
unlocked: 'Твоят акаунт беше успешно отключен.' | ||
mailer: | ||
confirmation_instructions: | ||
subject: 'Инструкции за потвърждаване на регистрация' | ||
reset_password_instructions: | ||
subject: 'Инструкции за смяна на парола' | ||
unlock_instructions: | ||
subject: 'Инструкции за отключване на акаунт' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
es: | ||
errors: | ||
messages: | ||
not_found: "no encontrado" | ||
already_confirmed: "ya fue confirmado" | ||
not_locked: "no ha sido desbloqueado" | ||
|
||
devise: | ||
failure: | ||
unauthenticated: 'Necesita ingresar o registrarse para continuar.' | ||
unconfirmed: 'Necesita confirmar su cuenta antes de continuar.' | ||
locked: 'Su cuenta ha sido bloqueada.' | ||
invalid: "Email o Contraseña invalido." | ||
invalid_token: "Llave de Autenticación invalida." | ||
timeout: "Su sesión ha expirado, por favor ingrese nuevamente para continuar." | ||
inactive: 'Su cuenta aun no ha sido activada.' | ||
sessions: | ||
signed_in: "Ingreso de sesión exitosamente." | ||
signed_out: 'Sesión cerrada exitosamente.' | ||
passwords: | ||
send_instructions: "Usted recibirá un email con instrucciones sobre como re establecer su contraseña en unos minutos." | ||
updated: "Su contraseña ha sido cambiada exitosamente. Ahora usted puede ingresar." | ||
confirmations: | ||
send_instructions: 'Usted recibirá un email con instrucciones de como confirmar su cuenta en unos minutos.' | ||
confirmed: 'Su cuenta ha sido confirmada exitosamente. Ahora usted puede ingresar.' | ||
registrations: | ||
signed_up: "Se ha registrado con exito. Si está activado, la confirmación será enviada a su correo electrónico." | ||
updated: 'Ha actualizado su cuenta exitosamente.' | ||
destroyed: 'Adios! Su cuenta ha sido cancelada exitosamente. Esperamos verlo pronto.' | ||
unlocks: | ||
send_instructions: "Usted recibirá un email con instrucciones sobre como des bloquear su cuenta en unos minutos." | ||
unlocked: 'Su cuenta ha sido des bloqueada exitosamente. Ahora usted ingresar.' | ||
mailer: | ||
confirmation_instructions: | ||
subject: "Instrucciones de Confirmación" | ||
reset_password_instructions: | ||
subject: "Instrucciones para re establecer contraseña" | ||
unlock_instructions: | ||
subject: 'Instrucciones para des bloquear' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
fi: | ||
errors: | ||
messages: | ||
not_found: "ei löytynyt" | ||
already_confirmed: "oli jo vahvistettu" | ||
not_locked: "ei ollut lukittu" | ||
|
||
devise: | ||
failure: | ||
unauthenticated: 'Sinun täytyy kirjautua tai rekisteröityä ennen jatkamista.' | ||
unconfirmed: 'Sinun täytyy vahvistaa tilisi ennen jatkamista.' | ||
locked: 'Tilisi on lukittu.' | ||
invalid: 'Virheellinen sähköpostiosoite tai salasana.' | ||
invalid_token: 'Virheellinen valtuutusavain.' | ||
timeout: 'Istuntosi on vanhentunut, ole hyvä ja kirjaudu uudelleen jatkaaksesi.' | ||
inactive: 'Tiliäsi ei ole vielä aktivoitu.' | ||
sessions: | ||
signed_in: 'Sisäänkirjautuminen onnistui.' | ||
signed_out: 'Uloskirjautuminen onnistui.' | ||
passwords: | ||
send_instructions: 'Saat hetken kuluttua sähköpostin joka sisältää salasanan nollausohjeet.' | ||
updated: 'Salasanan vaihto onnistui. Olet nyt kirjautunut sisään.' | ||
confirmations: | ||
send_instructions: 'Saat hetken kuluttua sähköpostin joka sisältää tilin vahvistusohjeet.' | ||
confirmed: 'Tilin vahvistus onnistui. Olet nyt kirjautunut sisään.' | ||
registrations: | ||
signed_up: 'Rekisteröityminen onnistui. Vahvistussähköposti on lähetetty sinulle, mikäli kyseinen toiminto on päällä.' | ||
updated: 'Tilin päivitys onnistui.' | ||
destroyed: 'Tilin peruutus onnistui. Toivomme kuitenkin näkevämme sinut vielä uudestaan.' | ||
unlocks: | ||
send_instructions: 'Saat hetken kuluttua sähköpostin joka sisältää tilisi avausohjeet.' | ||
unlocked: 'Tilin avaus onnistui. Olet nyt kirjautunut sisään.' | ||
mailer: | ||
confirmation_instructions: | ||
subject: 'Vahvistusohjeet' | ||
reset_password_instructions: | ||
subject: 'Salasanan nollausohjeet' | ||
unlock_instructions: | ||
subject: 'Avausohjeet' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
pt-PT: | ||
errors: | ||
messages: | ||
not_found: "não encontrado" | ||
already_confirmed: "já foi confirmado" | ||
not_locked: "não foi bloqueado" | ||
|
||
devise: | ||
failure: | ||
unauthenticated: 'Antes de continuar por favor inicie a sua sessão ou registe-se.' | ||
unconfirmed: 'Antes de continuar terá que confirmar a sua conta.' | ||
locked: 'A sua conta está bloqueada.' | ||
invalid: 'E-mail ou palavra-passe inválido.' | ||
invalid_token: 'Chave de autenticação inválida.' | ||
timeout: 'A sua sessão expirou, por favor volte a identificar-se para continuar.' | ||
inactive: 'A sua conta ainda não foi activada.' | ||
sessions: | ||
signed_in: 'Sessão iniciada com sucesso.' | ||
signed_out: 'Sessão terminada com sucesso.' | ||
passwords: | ||
send_instructions: 'Dentro de alguns minutos irá receber um e-mail com instruções sobre como redefinir a sua palavra-passe.' | ||
updated: 'Palavra-passe alterada com sucesso. A sua sessão foi iniciada.' | ||
confirmations: | ||
send_instructions: 'Dentro de alguns minutos irá receber um e-mail com instruções sobre como confirmar a sua conta.' | ||
confirmed: 'Conta confirmada com sucesso. A sua sessão foi iniciada.' | ||
registrations: | ||
signed_up: 'Conta criada com sucesso. A confirmação de registo foi enviada para o seu e-mail, caso tenha seleccionado essa opção.' | ||
updated: 'A sua conta foi actualizada com sucesso.' | ||
destroyed: 'Adeus! A sua conta foi cancelada com sucesso. Esperamos vê-lo em breve.' | ||
unlocks: | ||
send_instructions: 'Dentro de alguns minutos irá receber um e-mail com instruções sobre como desbloquear a sua conta.' | ||
unlocked: 'Conta desbloqueada com sucesso. A sua sessão foi iniciada.' | ||
mailer: | ||
confirmation_instructions: | ||
subject: 'Instruções de confirmação.' | ||
reset_password_instructions: | ||
subject: 'Instruções de redefinição da palavra-passe.' | ||
unlock_instructions: | ||
subject: 'Instruções de desbloqueamento.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
tr: | ||
errors: | ||
messages: | ||
not_found: "bulunamadı" | ||
already_confirmed: "zaten onaylanmış." | ||
not_locked: "açılmamış." | ||
|
||
devise: | ||
failure: | ||
unauthenticated: 'Devam etmeden önce giriş yapmanız ya da kayıt olmanız gerekiyor.' | ||
unconfirmed: 'Devam etmeden önce hesabınızı onaylamanız gerekiyor.' | ||
locked: 'Hesabınız kilitli.' | ||
invalid: 'Yanlış email ya da şifre.' | ||
invalid_token: 'Kimlik denetimi anahtarı yanlış.' | ||
timeout: 'Oturumunuzun süresi geçmiş. Devam etmek için lütfen giriş yapın.' | ||
inactive: 'Hesabınız daha etkileştirilmedi.' | ||
sessions: | ||
signed_in: 'Başarıyla giriş yapıldı.' | ||
signed_out: 'Başarıyla çıkış yapıldı.' | ||
passwords: | ||
send_instructions: 'Birkaç dakika içinde emailinize şifrenizi nasıl sıfırlayacağınız konusunda talimatlar gönderilecek.' | ||
updated: 'Şifreniz başarıyla değiştirildi. Şimdi giriş yaptınız.' | ||
confirmations: | ||
send_instructions: 'Birkaç dakika içinde emailinize hesabınızı nasıl onaylayacağınız konusunda talimatlar gönderilecek.' | ||
confirmed: 'Hesabınız başarıyla onaylandı. Şimdi giriş yaptınız.' | ||
registrations: | ||
signed_up: 'Başarıyla kayıt oldunuz. Eğer etkinleştirildiyse, bir onay emaili gönderilecek.' | ||
updated: 'Hesabınızı başarıyla güncellediniz.' | ||
destroyed: 'Güle güle! Hesabınız başarıyla iptal edildi. Umarız tekrar görüşürüz.' | ||
unlocks: | ||
send_instructions: 'Birkaç dakika içinde emailinize hesabınızın kilidini nasıl açacağınız konusunda talimatlar gönderilecek.' | ||
unlocked: 'Hesabınızın kilidi başarıyla çözüldü. Şimdi giriş yaptınız.' | ||
mailer: | ||
confirmation_instructions: | ||
subject: 'Onaylama talimatları' | ||
reset_password_instructions: | ||
subject: 'Şifre sıfırlama talimatları' | ||
unlock_instructions: | ||
subject: 'Kilit açma talimatları' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
uk: | ||
errors: | ||
messages: | ||
not_found: "не знайдено" | ||
already_confirmed: "вже підтверджено" | ||
not_locked: "не було заблоковано" | ||
|
||
devise: | ||
failure: | ||
unauthenticated: 'Вам потрібно ввійти або зареєструватись для того, щоб продовжити.' | ||
unconfirmed: 'Вам потрібно підтвердити Ваш рахунок для того, щоб продовжити.' | ||
locked: 'Ваш рахунок заблоковано.' | ||
invalid: 'Невірна адреса електроної пошти або гасло.' | ||
invalid_token: 'Невірний автентифікаційний ключ.' | ||
timeout: 'Ваш сеанс більше недійсний, будь-ласка ввійдіть ще раз для того, щоб продовжити.' | ||
inactive: 'Ваш рахунок ще неактивований.' | ||
sessions: | ||
signed_in: 'Ви успішно ввійшли.' | ||
signed_out: 'Ви успішно вийшли.' | ||
passwords: | ||
send_instructions: 'За декілька хвилин Ви отримаєте лист із інструкціями, як змінити Ваше гасло.' | ||
updated: 'Ви успішно змінили Ваше гасло та ввійшли.' | ||
confirmations: | ||
send_instructions: 'За декілька хвилин Ви отримаєте лист із інструкціями, як підтвердити Ваш рахунок.' | ||
confirmed: 'Ви успішно підтвердили Ваш рахунок та ввійшли.' | ||
registrations: | ||
signed_up: 'Ви успішно створили рахунок. Якщо було потрібно, Вам надіслали лист для підтвердження.' | ||
updated: 'Ви успішно оновили дані рахунку.' | ||
destroyed: 'До зустрічі! Ви успішно закрили рахунок. Сподіваємось побачити Вас найближчим часом.' | ||
unlocks: | ||
send_instructions: 'За декілька хвилин Ви отримаєте лист із інструкціями, як розблокувати Ваш рахунок.' | ||
unlocked: 'Ви успішно розблокували Ваш рахунок та ввійшли.' | ||
mailer: | ||
confirmation_instructions: | ||
subject: 'Інструкції для підтвердження' | ||
reset_password_instructions: | ||
subject: 'Інструкції для зміни гасла' | ||
unlock_instructions: | ||
subject: 'Інструкції для розблокування' |
Oops, something went wrong.