Final modifications for the presentation
This commit is contained in:
parent
1fcacbb4af
commit
b68f5e11e5
|
@ -324,7 +324,7 @@ p{
|
|||
float:left;
|
||||
margin: 0 10px 0 0;
|
||||
}
|
||||
.buy_btn a{
|
||||
.main table td .buy_btn a{
|
||||
background: url("/assets/buy_btn.png") no-repeat scroll 0 0 transparent;
|
||||
color: #000000;
|
||||
display: block;
|
||||
|
@ -335,6 +335,7 @@ p{
|
|||
text-decoration: none;
|
||||
text-shadow: 0 1px 0 #FFFFFF;
|
||||
width: 170px;
|
||||
padding: 0px;
|
||||
}
|
||||
.buy_btn a:hover{
|
||||
background-position:0 bottom;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<%#= file_field_tag 'file' %>
|
||||
<%#= hidden_field_tag :avatar_cache %>
|
||||
<a id="upload" href="#"><%= t('admin.choose_file') %></a>
|
||||
<%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t('admin.email')};}", :value => t('admin.email'), :class => 'user_mail' %>
|
||||
<%= f.text_field :email, :onfocus => "this.value='';", :onblur => "if(this.value==''){this.value=#{t('admin.email')};}", :value => (@user.email.blank? ? t('admin.email') : @user.email), :class => 'user_mail' %>
|
||||
<label>
|
||||
<%= f.check_box :admin %><span><%= t('admin.admin') %></span>
|
||||
</label>
|
||||
|
|
|
@ -192,7 +192,8 @@ module Parser
|
|||
page.design.javascripts.each do |js|
|
||||
res << "<script type='text/javascript' src='#{js.file.url}'></script>"
|
||||
end
|
||||
|
||||
res << "<script type='text/javascript' src='/static/jquery.js'></script>"
|
||||
res << "<script type='text/javascript' src='/static/kernel.js'></script>"
|
||||
res
|
||||
end
|
||||
c.define_tag 'layout_part' do |tag|
|
||||
|
|
|
@ -5,8 +5,9 @@ namespace :site do
|
|||
task :build => :environment do
|
||||
|
||||
Site.delete_all
|
||||
Purchase.delete_all
|
||||
|
||||
Site.create( :school => 'The Best School', :department => 'Awesome', :valid_locales => [ 'en', 'zh_tw' ], :in_use_locales => [ 'zh_tw', 'en' ])
|
||||
Site.create( :school => 'RulingDigital University', :department => 'Computer Science', :valid_locales => [ 'en', 'zh_tw' ], :in_use_locales => [ 'zh_tw', 'en' ])
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue