Changes for THU
This commit is contained in:
parent
83935aaa60
commit
dc895b84c1
4
Gemfile
4
Gemfile
|
@ -1,5 +1,5 @@
|
||||||
source 'http://rubygems.org'
|
source 'http://rubygems.org'
|
||||||
gem 'rails'
|
gem 'rails', "~> 3.2"
|
||||||
|
|
||||||
gem "brakeman"
|
gem "brakeman"
|
||||||
gem 'mime-types'
|
gem 'mime-types'
|
||||||
|
@ -21,7 +21,7 @@ gem 'kaminari', :git => 'git://github.com/amatsuda/kaminari.git'
|
||||||
gem 'mini_magick'
|
gem 'mini_magick'
|
||||||
gem 'mongoid', '> 2.1', '< 3.0.0'
|
gem 'mongoid', '> 2.1', '< 3.0.0'
|
||||||
gem 'mongoid-tree', :require => 'mongoid/tree'
|
gem 'mongoid-tree', :require => 'mongoid/tree'
|
||||||
gem "mongo_session_store-rails3"
|
gem "mongo_session_store-rails3", "~> 3.0"
|
||||||
gem 'nokogiri'
|
gem 'nokogiri'
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 42 KiB |
|
@ -1,18 +1,39 @@
|
||||||
<div class="vp">
|
<h1 class="login-logo"><%= t(:ruling_site) %></h1>
|
||||||
<div class="s_title hh3">Password Managment</div>
|
<div id="signin-header">
|
||||||
<%= form_for(resource, :as => resource_name, :url => users_passwd_path(resource_name), :html => { :method => :put, "form-type"=>"ajax_form" ,"callback-method"=>"passwordUpdate" }) do |f| %>
|
<h3><%= t(:password_change) %></h3>
|
||||||
<ul class="s_form">
|
</div>
|
||||||
<li><%= f.label :current_password %>
|
<div id="container" class="sign-in">
|
||||||
<%= f.password_field :current_password %></li>
|
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => 'user_new form-horizontal' }) do |f| %>
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
<li><%= f.label :password %>
|
<% unless f.error_messages.blank? %>
|
||||||
<%= f.password_field :password %></li>
|
<div class="modal alert alert-error hide" id="myModal">
|
||||||
|
<p type="button" class="close" data-dismiss="modal">×</p>
|
||||||
<li><%= f.label :password_confirmation %>
|
<%= f.error_messages %>
|
||||||
<%= f.password_field :password_confirmation %></li>
|
</div>
|
||||||
</ul>
|
<script>
|
||||||
<div class="s_action"><%= f.submit "Update", :class => "setting_btn thmc1 thmtxt w1 hh2 hp" %></div>
|
$('#myModal').modal('show')
|
||||||
|
</script>
|
||||||
|
<% end -%>
|
||||||
|
|
||||||
|
<div class="main">
|
||||||
|
<div class="control-group clear">
|
||||||
|
<%= f.label :password, t(:password)%>
|
||||||
|
<%= f.text_field :password, :placeholder => t(:password), :style => "width: 330px;" %>
|
||||||
|
</div>
|
||||||
|
<div class="control-group clear">
|
||||||
|
<%= f.label :password_confirmation, t(:password_confirmation)%>
|
||||||
|
<%= f.text_field :password_confirmation, :placeholder => t(:password_confirmation), :style => "width: 330px;" %>
|
||||||
|
</div>
|
||||||
|
<div class="control-group clear">
|
||||||
|
<%= f.label :current_password, t(:password_current)%>
|
||||||
|
<%= f.text_field :current_password, :placeholder => t(:password_current), :style => "width: 330px;" %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-actions clear">
|
||||||
|
<%= link_to t(:back), :back, :class => 'btn' %>
|
||||||
|
<%= content_tag :button, t(:update), :type => :submit, :class => 'btn btn-primary pull-right' %>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li class="search clear" title="<%= t :search_google %>">
|
<li class="search clear" title="<%= t :search_thu %>">
|
||||||
<a class="orbit-bar-search" href="#" data-icon="search"></a>
|
<a class="orbit-bar-search" href="#" data-icon="search"></a>
|
||||||
<form class="navbar-search" method="get" action="http://www.google.com/custom">
|
<form class="navbar-search" method="get" action="http://www.google.com/custom">
|
||||||
<input type="hidden" name="client" value="pub-&" />
|
<input type="hidden" name="client" value="pub-&" />
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<input type="hidden" name="cof" id="cof" value="AH:center;AWFID:03de271f1940eea3;" />
|
<input type="hidden" name="cof" id="cof" value="AH:center;AWFID:03de271f1940eea3;" />
|
||||||
<input type='hidden' name='domains' value='<%= @site.search["domains"] rescue ''%>'>
|
<input type='hidden' name='domains' value='<%= @site.search["domains"] rescue ''%>'>
|
||||||
<input type='hidden' name='sitesearch' value='<%= @site.search["sitesearch"] rescue '' %>'>
|
<input type='hidden' name='sitesearch' value='<%= @site.search["sitesearch"] rescue '' %>'>
|
||||||
<%= text_field_tag 'q','',{:class => "search-query span3",:placeholder=> t(:search_google) ,:disabled=> ((@site.search["sitesearch"] || @site.search["domains"] ).blank? rescue true)}%>
|
<%= text_field_tag 'q','',{:class => "search-query span3",:placeholder=> t(:search_thu) ,:disabled=> ((@site.search["sitesearch"] || @site.search["domains"] ).blank? rescue true)}%>
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
<% if user_signed_in? %>
|
<% if user_signed_in? %>
|
||||||
|
@ -41,6 +41,7 @@
|
||||||
<span class="member-name"><%= current_user.name %></span>
|
<span class="member-name"><%= current_user.name %></span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu account-menu">
|
<ul class="dropdown-menu account-menu">
|
||||||
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-tools') + ' ' + t(:password_change), edit_user_registration_path %></li>
|
||||||
<!-- <li><%= link_to content_tag(:i, nil, :class => 'icons-tools') + ' ' + t(:account_setting), desktop_path+"#settings-account" %></li> -->
|
<!-- <li><%= link_to content_tag(:i, nil, :class => 'icons-tools') + ' ' + t(:account_setting), desktop_path+"#settings-account" %></li> -->
|
||||||
<!-- <li><%= link_to content_tag(:i, nil, :class => 'icons-desktop') + ' ' + t(:desktop), desktop_path %></li> -->
|
<!-- <li><%= link_to content_tag(:i, nil, :class => 'icons-desktop') + ' ' + t(:desktop), desktop_path %></li> -->
|
||||||
<li><%= link_to content_tag(:i, nil, :class => 'icons-outlog') + ' ' + t(:logout), destroy_user_session_path %></li>
|
<li><%= link_to content_tag(:i, nil, :class => 'icons-outlog') + ' ' + t(:logout), destroy_user_session_path %></li>
|
||||||
|
@ -64,7 +65,7 @@
|
||||||
<li>
|
<li>
|
||||||
<div class="input-prepend">
|
<div class="input-prepend">
|
||||||
<span class="add-on"><i class="icon-user"></i></span>
|
<span class="add-on"><i class="icon-user"></i></span>
|
||||||
<%= f.text_field :email, :class => 'span2', :placeholder => t(:email), :size => 16 %>
|
<%= f.text_field :email, :class => 'span2', :placeholder => t(:thu_account), :size => 16 %>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<%= page_title(@item).html_safe %>
|
<%= page_title(@item).html_safe %>
|
||||||
<link rel="shortcut icon" href="<%= asset_path "ncculogo.ico" %>">
|
<link rel="shortcut icon" href="<%= asset_path "favicon.ico" %>">
|
||||||
<%= page_metas(@item).html_safe %>
|
<%= page_metas(@item).html_safe %>
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<%= javascript_include_tag "html5" %>
|
<%= javascript_include_tag "html5" %>
|
||||||
|
|
|
@ -70,9 +70,9 @@ module Orbit
|
||||||
#config.time_zone = 'Taipei'
|
#config.time_zone = 'Taipei'
|
||||||
ENV['TZ'] = 'Asia/Taipei'
|
ENV['TZ'] = 'Asia/Taipei'
|
||||||
|
|
||||||
config.to_prepare do
|
# config.to_prepare do
|
||||||
Devise::RegistrationsController.layout false
|
# Devise::RegistrationsController.layout false
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Orbit_Apps = []
|
Orbit_Apps = []
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
en:
|
||||||
|
|
||||||
|
search_thu: Search THU
|
||||||
|
thu_account: THU Account
|
|
@ -0,0 +1,4 @@
|
||||||
|
zh_tw:
|
||||||
|
|
||||||
|
search_thu: 搜尋東海
|
||||||
|
thu_account: THU Account
|
|
@ -8,10 +8,10 @@ defaults: &defaults
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
database: demo_site_development
|
database: thu_development
|
||||||
test:
|
test:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
database: demo_site_test
|
database: thu_test
|
||||||
|
|
||||||
# set these environment variables on your prod server
|
# set these environment variables on your prod server
|
||||||
production:
|
production:
|
||||||
|
@ -21,4 +21,4 @@ production:
|
||||||
# password: <%= ENV['MONGOID_PASSWORD'] %>
|
# password: <%= ENV['MONGOID_PASSWORD'] %>
|
||||||
# database: <%= ENV['MONGOID_DATABASE'] %>
|
# database: <%= ENV['MONGOID_DATABASE'] %>
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
database: demo_site_production
|
database: thu_development
|
||||||
|
|
Loading…
Reference in New Issue