forked from publify/publify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A little refactoring of the accounts layout and the subsequent views.
Views were simplified and the accounts related links are now called outside of the yield to save some markup.
- Loading branch information
Frédéric de Villamil
committed
Aug 23, 2013
1 parent
d565431
commit 4630c56
Showing
9 changed files
with
72 additions
and
112 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 |
---|---|---|
@@ -1,29 +1,18 @@ | ||
<div class='row'> | ||
<div class='span4 offset4'> | ||
<h3><%= _("Sign in") %></h3> | ||
<%= 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")})%> | ||
<div class='clearfix'> | ||
<div class='row'> | ||
<div class='span2'> | ||
<label class='checkbox inline'> | ||
<%= check_box_tag 'remember_me' %><small><%= _('Remember me')%></small> | ||
</label> | ||
</div> | ||
<div class='span2'> | ||
<input type="submit" name="login" class="btn btn-info pull-right" value= "<%= _('Sign in') %>" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class='row'> | ||
<div class='span4 offset4 well'> | ||
<div id="flash"><%= render_the_flash %></div> | ||
<%= 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")})%> | ||
<div class='clearfix'> | ||
<div class='row'> | ||
<div class='span2'> | ||
<label class='checkbox inline'> | ||
<%= check_box_tag 'remember_me' %><small><%= _('Remember me')%></small> | ||
</label> | ||
</div> | ||
<div class='span2'> | ||
<input type="submit" name="login" class="btn btn-info pull-right" value= "<%= _('Sign in') %>" /> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class='span4 offset4'> | ||
<%= [lost_password, create_account_link].join("<br />") %> | ||
</div> | ||
<% end %> | ||
<% @accounts_links = [lost_password, create_account_link, back_home].join("<br />") %> |
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,17 +1,6 @@ | ||
<div class='row'> | ||
<div class='span4 offset4'> | ||
<h3><%= _("Reset my password") %></h3> | ||
</div> | ||
</div> | ||
<div class='row'> | ||
<div class='span4 offset4 well'> | ||
<div id="flash"><%= render_the_flash %></div> | ||
<%= 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') %>" /> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class='span4 offset4'> | ||
<%= [back_to_login, create_account_link].join("<br />") %> | ||
</div> | ||
<%= 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') %>" /> | ||
<% end %> | ||
<% @accounts_links = [back_to_login, create_account_link, back_home].join("<br />") %> |
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,7 @@ | ||
<div class='row'> | ||
<div class='span4 offset4'> | ||
<h3><%= _("Create an account") %></h3> | ||
</div> | ||
</div> | ||
<div class='row'> | ||
<div class='span4 offset4 well'> | ||
<div id="flash"><%= render_the_flash %></div> | ||
<%= 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 %> | ||
</div> | ||
</div> | ||
<div class='span4 offset4'> | ||
<%= [lost_password, back_to_login].join("<br />") %> | ||
</div> | ||
<%= 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 />") %> |
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 |
---|---|---|
@@ -1,19 +1,8 @@ | ||
<div class='row'> | ||
<div class='span4 offset4'> | ||
<h3><%= _("Welcome")%></h3> | ||
<%= form_tag :action=> 'index' do %> | ||
<div class='alert'> | ||
<small><%= _("Welcome to your %s blog setup. Just fill in your blog title and your email, and Publify will take care of everything else", link_to("Publify", 'http://publify.co'))%></small> | ||
</div> | ||
</div> | ||
<div class='row'> | ||
<div class='span4 offset4 well'> | ||
<div id="flash"><%= render_the_flash %></div> | ||
<%= form_tag :action=> 'index' do %> | ||
<div class='alert'> | ||
<small><%= _("Welcome to your %s blog setup. Just fill in your blog title and your email, and Publify will take care of everything else", link_to("Publify", 'http://publify.co'))%></small> | ||
</div> | ||
<%= text_field(:setting, :blog_name, { :class=> 'input-block-level', :placeholder => _("Blog name")})%> | ||
<%= text_field(:setting, :email, { :class=> 'input-block-level', :placeholder => _("Your email")})%> | ||
<input type="submit" id="submit" class='btn btn-info pull-right' value="<%= _('Save')%>" /> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<%= text_field(:setting, :blog_name, { :class=> 'input-block-level', :placeholder => _("Blog name")})%> | ||
<%= text_field(:setting, :email, { :class=> 'input-block-level', :placeholder => _("Your email")})%> | ||
<input type="submit" id="submit" class='btn btn-info pull-right' value="<%= _('Save')%>" /> | ||
<% 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,23 +1,12 @@ | ||
<div class='row'> | ||
<div class='span4 offset4'> | ||
<h3><%= _("Congratulations!") %></h3> | ||
</div> | ||
<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> | ||
|
||
<div class='row'> | ||
<div class='span4 offset4 well'> | ||
<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> | ||
</div> | ||
</div> | ||
<div class='span4 offset4'> | ||
<small><%= _("Proceed to %s", link_to(_("admin"), :controller => 'admin/dashboard')) %></small> | ||
</div> | ||
<% @accounts_links = _("Proceed to %s", link_to(_("admin"), :controller => 'admin/dashboard')) %> |