Skip to content

Commit

Permalink
Alguns ajustes. Relacionado com tarefa #708.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcello committed Oct 1, 2013
1 parent 8fcb012 commit fc484e1
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/projects/repositories/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
Script para hook de autoupdate
<pre>
Post: curl -d id=<%= @repository.to_param %> -d project_id=<%= current_project.to_param %> -d version=$2 <%= root_url %>autoupdate
Get: curl <%= root_url %>autoupdate?id=<%= @repository.to_param %>&project_id=<%= current_project.to_param %>&version=$2
Get: curl -k <%= root_url %>autoupdate?id=<%= @repository.to_param %>&project_id=<%= current_project.to_param %>&version=$2
</pre>
<% end %>

Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/projects/repositories/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h1>Novo Repositório</h1>
<h1><%= t('.title') %></h1>

<%= render 'form' %>
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="container">
<div class="row" id="header">
<div class="col-sm-5">
<%= image_tag 'logo.png', class: 'logo' %>
<%= link_to (image_tag 'logo.png', class: 'logo'), root_path %>
</div>

<div class="col-sm-4 col-sm-offset-3 person">
Expand Down
6 changes: 3 additions & 3 deletions app/views/session/forgot_password.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="navigation">
<ul class="nav nav-pills">
<li>
<%= link_to 'ENTRAR', login_path %>
<%= link_to t('.sign_in'), login_path %>
</li>
<% unless deny_signup? %>
<li>
Expand All @@ -11,8 +11,8 @@
</ul>
</div>

<h3 class='title'>Recuperar senha</h3>
<p>Preencha o formulário para que sejam enviadas instruções de como mudar sua senha.</p>
<h3 class='title'>Recuperar acesso</h3>
<p><%= t('.info_recover_access') %></p>

<%= form_tag forgot_password_path do %>
<div class="form-group">
Expand Down
3 changes: 1 addition & 2 deletions app/views/session/login.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@

<div class="form-group">
<%= password_field_tag :password, nil, class: 'form-control', placeholder: t('.password') %>

<div class="reset-password">
Esqueceu a senha? <%= link_to t('.reset_password'), forgot_password_path %>
<%= link_to t('.forgot_password'), forgot_password_path %>
</div>
</div>

Expand Down
25 changes: 13 additions & 12 deletions config/locales/simple_form/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ pt-BR:
error_notification:
default_message: "Por favor, verifique os erros a seguir:"
# Labels and hints examples
# labels:
# defaults:
# password: 'Password'
# user:
# new:
# email: 'E-mail to sign in.'
# edit:
# email: 'E-mail.'
# hints:
# defaults:
# username: 'User name to sign in.'
# password: 'No special characters, please.'
labels:
defaults:
login: 'Nome de usuário'
password: 'Senha'
user:
new:
email: 'Email'
edit:
email: 'Email'
hints:
defaults:
#username: 'Nome de usuário para autenticar.'
#password: 'Sem caracteres especiais, por favor.'

12 changes: 12 additions & 0 deletions config/locales/views/admin/projects/repositories/pt-BR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pt-BR:
admin:
projects:
repositories:
new:
title: Novo Repositório
auth_required: Este repositório exige autenticação
login: Login
password: Senha
submit: Autenticar
create:
auth_failed: A autenticação falhou
2 changes: 1 addition & 1 deletion config/locales/views/admin/settings/pt-BR.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'pt-BR':
admin:
settings:
index:
show:
allow_register: Habilitar Cadastro
default_role: Papel padrão
login_method: Método de login
Expand Down
4 changes: 3 additions & 1 deletion config/locales/views/projects/repositories/auth/pt-BR.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
pt-BR:
projects:
repositories:
new:
title: Novo Repositório
auth:
create:
auth_failed: A autenticação falhou
new:
auth_required: Este repositório exige autenticação
login: Login
pass: Senha
password: Senha
submit: Autenticar
7 changes: 6 additions & 1 deletion config/locales/views/session/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ pt-BR:
password: Senha
sign_in: Entrar
sign_up: Cadastrar
reset_password: Recuperar senha
reset_password: Recuperar acesso
forgot_password: Esqueceu a senha?
forgot_password:
sign_in: Entrar
sign_up: Cadastrar
info_recover_access: Preencha o formulário para que sejam enviadas instruções de como recuperar seu acesso.
alert:
not_allow_register: O sistema não está aceitando registro de novos usuários

0 comments on commit fc484e1

Please sign in to comment.