diff --git a/Gemfile b/Gemfile index aa6a2ba9c..ad6bbd02c 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'http://rubygems.org' -gem 'rails' +gem 'rails', "~> 3.2" gem "brakeman" gem 'mime-types' @@ -21,7 +21,7 @@ gem 'kaminari', :git => 'git://github.com/amatsuda/kaminari.git' gem 'mini_magick' gem 'mongoid', '> 2.1', '< 3.0.0' gem 'mongoid-tree', :require => 'mongoid/tree' -gem "mongo_session_store-rails3" +gem "mongo_session_store-rails3", "~> 3.0" gem 'nokogiri' diff --git a/app/assets/images/favicon.ico b/app/assets/images/favicon.ico new file mode 100644 index 000000000..fc144663c Binary files /dev/null and b/app/assets/images/favicon.ico differ diff --git a/app/assets/images/sign-in-logo.png b/app/assets/images/sign-in-logo.png index 53756c7c3..fa923dd5b 100644 Binary files a/app/assets/images/sign-in-logo.png and b/app/assets/images/sign-in-logo.png differ diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 2cedcb009..472e23eac 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -1,18 +1,39 @@ -
-
Password Managment
- <%= form_for(resource, :as => resource_name, :url => users_passwd_path(resource_name), :html => { :method => :put, "form-type"=>"ajax_form" ,"callback-method"=>"passwordUpdate" }) do |f| %> - -
<%= f.submit "Update", :class => "setting_btn thmc1 thmtxt w1 hh2 hp" %>
- - <% end %> +

<%= t(:ruling_site) %>

+
+

<%= t(:password_change) %>

+
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => 'user_new form-horizontal' }) do |f| %> +
+ <% unless f.error_messages.blank? %> + + + <% end -%> + +
+
+ <%= f.label :password, t(:password)%> + <%= f.text_field :password, :placeholder => t(:password), :style => "width: 330px;" %> +
+
+ <%= f.label :password_confirmation, t(:password_confirmation)%> + <%= f.text_field :password_confirmation, :placeholder => t(:password_confirmation), :style => "width: 330px;" %> +
+
+ <%= f.label :current_password, t(:password_current)%> + <%= f.text_field :current_password, :placeholder => t(:password_current), :style => "width: 330px;" %> +
+
+
+
+ <%= link_to t(:back), :back, :class => 'btn' %> + <%= content_tag :button, t(:update), :type => :submit, :class => 'btn btn-primary pull-right' %> +
+ <% end %> +
diff --git a/app/views/layouts/_orbit_bar.html.erb b/app/views/layouts/_orbit_bar.html.erb index d14a3d5de..fcb81a66e 100644 --- a/app/views/layouts/_orbit_bar.html.erb +++ b/app/views/layouts/_orbit_bar.html.erb @@ -21,7 +21,7 @@ <% end %> - <% if user_signed_in? %> @@ -41,6 +41,7 @@ <%= current_user.name %>