forked from publify/publify
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean account page and start config locale.
Start to use standard config/locale/yml file format for I18n Clean helper with a content_for yield usage
- Loading branch information
Yannick Francois
committed
Oct 2, 2013
1 parent
fc12a91
commit 8d192b4
Showing
13 changed files
with
83 additions
and
66 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,10 @@ | ||
<%= render 'shared/confirm'%> | ||
<p><%= _("You have successfully signed up") %></p> | ||
<p><%= _("<strong>Login:</strong> %s", current_user.login)%></p> | ||
<p><%= _("strong>Password:</strong> %s", session[:tmppass]) %></p> | ||
<div class='alert'> | ||
<small><%= _("Don't lose the mail sent at %s or you won't be able to login anymore", current_user.email)%></small> | ||
</div> | ||
|
||
<%- content_for :account_links do %> | ||
<%= _("Proceed to %s", link_to(_("admin"), controller: 'admin/dashboard')) %> | ||
<% 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 |
---|---|---|
@@ -1,18 +1,26 @@ | ||
<%= form_tag :action=> "login" do %> | ||
<%= text_field(:user, :login, {:class => 'input-block-level', :placeholder => _("Login")})%> | ||
<%= password_field(:user, :password, {:class => 'input-block-level', :placeholder => _("Password")})%> | ||
<%= form_tag action: "login" do %> | ||
<%= text_field(:user, :login, {class: 'input-block-level', placeholder: t(".login")})%> | ||
<%= password_field(:user, :password, {class: 'input-block-level', placeholder: t(".password")})%> | ||
<div class='clearfix'> | ||
<div class='row'> | ||
<div class='span2'> | ||
<label class='checkbox inline'> | ||
<%= check_box_tag 'remember_me' %><small><%= _('Remember me')%></small> | ||
<%= check_box_tag 'remember_me' %><small><%= t('.remember_me')%></small> | ||
</label> | ||
</div> | ||
<div class='span2'> | ||
<input type="submit" name="login" class="btn btn-info pull-right" value= "<%= _('Sign in') %>" /> | ||
<%= submit_tag t('.sign_in'), class: "btn btn-info pull-right" %> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
<% @accounts_links = [lost_password, create_account_link, back_home].join("<br />") %> | ||
<%- content_for :account_links do %> | ||
<small><%= link_to(_("I've lost my password"), action: 'recover_password') %></small> | ||
<br/> | ||
<%- if this_blog.allow_signup? %> | ||
<small><%= link_to(_("Create an account"), action: 'signup') %></small> | ||
<br/> | ||
<% end %> | ||
<small><%= link_to(_("← Back to %s", this_blog.blog_name).html_safe, this_blog.base_url) %></small> | ||
<% 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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
<%= form_tag :action=> "recover_password" do %> | ||
<%= text_field(:user, :login, {:class => 'input-block-level', :placeholder => _("Username or email")})%> | ||
<input type="submit" name="submit" class="btn btn-info pull-right" value= "<%= _('Reset my password') %>" /> | ||
<%= form_tag action: "recover_password" do %> | ||
<%= text_field(:user, :login, {class: 'input-block-level', placeholder: _("Username or email")})%> | ||
<%= submit_tag _('Reset my password'), class: "btn btn-info pull-right" %> | ||
<% end %> | ||
<% @accounts_links = [back_to_login, create_account_link, back_home].join("<br />") %> | ||
<%- content_for :account_links do %> | ||
<small><%= link_to(_("Back to login"), action: 'login') %></small> | ||
<br/> | ||
<%- if this_blog.allow_signup? %> | ||
<small><%= link_to(_("Create an account"), action: 'signup') %></small> | ||
<br/> | ||
<% end %> | ||
<small><%= link_to(_("← Back to %s", this_blog.blog_name).html_safe, this_blog.base_url) %></small> | ||
<% 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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
<%= form_tag :action=> "signup" do %> | ||
<%= text_field(:user, :login, {:class => 'input-block-level', :placeholder => _("Username") })%> | ||
<%= text_field(:user, :email, {:class => 'input-block-level', :placeholder => _("Email") })%> | ||
<%= form_tag action: "signup" do %> | ||
<%= text_field(:user, :login, {class: 'input-block-level', placeholder: _("Username") })%> | ||
<%= text_field(:user, :email, {class: 'input-block-level', placeholder: _("Email") })%> | ||
<input type="submit" id="submit" class='btn btn-info pull-right' value="<%= _('Signup')%>" /> | ||
<% end %> | ||
<% @accounts_links = [lost_password, back_to_login, back_home].join("<br />") %> | ||
<%- content_for :account_links do %> | ||
<small><%= link_to(_("I've lost my password"), action: 'recover_password') %></small> | ||
<br/> | ||
<small><%= link_to(_("Back to login"), action: 'login') %></small> | ||
<br/> | ||
<small><%= link_to(_("← Back to %s", this_blog.blog_name).html_safe, this_blog.base_url) %></small> | ||
<% 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,2 @@ | ||
# Sample localization file for English. Add more files in this directory for other locales. | ||
# See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. | ||
|
||
en: | ||
hello: "Hello world" |
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,12 @@ | ||
fr: | ||
admin: | ||
cache: | ||
index: | ||
explanations: "Afin d'économiser des ressources, Publify génère des fichiers statiques avec votre contenu. Ces fichiers sont supprimés lors d'une nouvelle publication. Vous pouvez cependant les effacer vous même." | ||
|
||
accounts: | ||
login: | ||
login: "Identifiant" | ||
password: "Mot de passe" | ||
sign_in: "S'identifier" | ||
remember_me: "Rester connecté" |
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