Ika's changes in modules

This commit is contained in:
Christophe Vilayphiou 2012-02-19 17:43:47 +08:00 committed by Christophe Vilayphiou
parent 7d57b50e46
commit cf038183b9
9 changed files with 129 additions and 113 deletions

View File

@ -19,6 +19,7 @@ gem 'ruby-debug19'
gem 'rubyzip' gem 'rubyzip'
gem 'sinatra' gem 'sinatra'
gem 'sprockets' gem 'sprockets'
gem 'therubyracer' # For linux
gem 'tinymce-rails' gem 'tinymce-rails'
# Gems used only for assets and not required # Gems used only for assets and not required

View File

@ -79,6 +79,7 @@ GEM
actionpack (>= 3.0.0) actionpack (>= 3.0.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
railties (>= 3.0.0) railties (>= 3.0.0)
libv8 (3.3.10.4)
linecache19 (0.5.12) linecache19 (0.5.12)
ruby_core_source (>= 0.1.4) ruby_core_source (>= 0.1.4)
mail (2.3.0) mail (2.3.0)
@ -174,6 +175,8 @@ GEM
rack (~> 1.0) rack (~> 1.0)
tilt (~> 1.1, != 1.3.0) tilt (~> 1.1, != 1.3.0)
subexec (0.2.1) subexec (0.2.1)
therubyracer (0.9.9)
libv8 (~> 3.3.10)
thor (0.14.6) thor (0.14.6)
tilt (1.3.3) tilt (1.3.3)
tinymce-rails (3.4.8) tinymce-rails (3.4.8)
@ -229,6 +232,7 @@ DEPENDENCIES
sinatra sinatra
spork spork
sprockets sprockets
therubyracer
tinymce-rails tinymce-rails
uglifier uglifier
watchr watchr

View File

@ -1,85 +1,94 @@
#back_sidebar { #back_sidebar {
background: url(<%= asset_path "75.png" %>) repeat scroll left top transparent; background: url(<%= asset_path "75.png" %>) repeat scroll left top transparent;
box-shadow: 3px 0 4px #472A12; box-shadow: 3px 0 4px #472A12;
border-right: 1px solid #121212; border-right: 1px solid #121212;
height: 100%; height: 100%;
left: 0; left: 0;
position: fixed; position: fixed;
top: 0; top: 0;
width: 220px; width: 220px;
} }
#back_sidebar h1 { #back_sidebar h1 {
background: url(<%= asset_path "h1_bg.png" %>) repeat-x scroll left top transparent; background: url(<%= asset_path "h1_bg.png" %>) repeat-x scroll left top transparent;
border-bottom: 1px solid #1B1B1B; border-bottom: 1px solid #1B1B1B;
border-top: 1px solid #424344; border-top: 1px solid #424344;
color: #FFFFFF; color: #FFFFFF;
font-size: 16px; font-size: 16px;
font-weight: normal; font-weight: normal;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
margin: 0; margin: 0;
padding-left: 10px; padding-left: 10px;
text-shadow: 0 -1px 0 #000000; text-shadow: 0 -1px 0 #000000;
} }
#back_sidebar .list { #back_sidebar .list {
color:#fff; background:url(<%= asset_path "line.png" %>) repeat-x left bottom;
font-size:12px; color:#fff;
background:url(<%= asset_path "line.png" %>) repeat-x left bottom; font-size:12px;
} margin:0;
#back_sidebar .list li { padding:0;
background:url(<%= asset_path "sidebar_li.jpg" %>) repeat-x left top; }
border-top:1px solid #424344; #back_sidebar .list li {
border-bottom:1px solid #000000; background:url(<%= asset_path "sidebar_li.jpg" %>) repeat-x left top;
} border-top:1px solid #424344;
#back_sidebar .list li:hover { border-bottom:1px solid #000000;
background-position:left bottom; list-style:none;
border-top:1px solid #406cc3; }
border-bottom:1px solid #242628; #back_sidebar .list li:hover {
} background-position:left bottom;
#back_sidebar .list li a { border-top:1px solid #406cc3;
display: block; border-bottom:1px solid #242628;
padding: 7px 0 6px 12px; }
color:#c4c4c4; #back_sidebar .list li a {
} display: block;
#back_sidebar .list li a span { padding: 7px 0 6px 12px;
background:url(<%= asset_path "add_mamber.png" %>) left top no-repeat; color:#c4c4c4;
text-shadow: 0px 1px 0px #000; }
line-height: 18px; #back_sidebar .list li a span {
padding: 2px 0 1px 35px; background:url(<%= asset_path "add_mamber.png" %>) left top no-repeat;
} text-shadow: 0px 1px 0px #000;
#back_sidebar .list li a:hover span { line-height: 18px;
background-position:left bottom; padding: 2px 0 1px 35px;
color:#eeeeee; }
} #back_sidebar .list li a:hover span {
#back_sidebar .users .list .set_1 { background-position:left bottom;
background-position:left bottom; color:#eeeeee;
border-top:1px solid #406cc3; }
border-bottom:1px solid #242628; #back_sidebar .list li ul{
} padding:0 0 0 15px;
#back_sidebar .users .list .set_1 a span { }
background-position:left bottom; #back_sidebar .list li ul ul{
color:#eeeeee; padding:0;
} }
#back_sidebar .roles .list .set_2 { #back_sidebar .users .list .set_1 {
background-position:left bottom; background-position:left bottom;
border-top:1px solid #406cc3; border-top:1px solid #406cc3;
border-bottom:1px solid #242628; border-bottom:1px solid #242628;
} }
#back_sidebar .roles .list .set_2 a span { #back_sidebar .users .list .set_1 a span {
background-position:left bottom; background-position:left bottom;
color:#eeeeee; color:#eeeeee;
} }
#sidebar .infos .list .set_3 { #back_sidebar .roles .list .set_2 {
background-position:left bottom; background-position:left bottom;
border-top:1px solid #406cc3; border-top:1px solid #406cc3;
border-bottom:1px solid #242628; border-bottom:1px solid #242628;
} }
#sidebar .infos .list .set_3 a span { #back_sidebar .roles .list .set_2 a span {
background-position:left bottom; background-position:left bottom;
color:#eeeeee; color:#eeeeee;
} }
#sidebar .translations_setup { #sidebar .infos .list .set_3 {
margin-top: 42px; background-position:left bottom;
border-top:1px solid #406cc3;
border-bottom:1px solid #242628;
}
#sidebar .infos .list .set_3 a span {
background-position:left bottom;
color:#eeeeee;
}
#sidebar .translations_setup {
margin-top: 42px;
} }

View File

@ -20,7 +20,7 @@ class Design
validates_presence_of :title validates_presence_of :title
validates_presence_of :author validates_presence_of :author
# after_save :parse_css_for_images after_save :parse_css_for_images
def new_files=(*attrs) def new_files=(*attrs)
attrs[0].map do |key,items_ary| #Loop by JSs,Themes,Imgs attrs[0].map do |key,items_ary| #Loop by JSs,Themes,Imgs

View File

@ -37,4 +37,4 @@ $(document).ready(function() {
} }
}) })
}); });
// Ad Banner FX code [end] // Ad Banner FX code [end]

View File

@ -4,10 +4,10 @@
<%= paginate @bulletins %> <%= paginate @bulletins %>
<h1><%= t('bulletin.list_announcement') %></h1> <h1 class="h1"><%= t('bulletin.list_announcement') %></h1>
<table> <table class="table table-bordered">
<tr> <tr>
<th><%= t('bulletin.postdate') %></th> <th><%= t('bulletin.postdate') %></th>
<th><%= t('bulletin.category') %></th> <th><%= t('bulletin.category') %></th>

View File

@ -2,19 +2,19 @@
<% if @bulletins and !@bulletins.nil? %> <% if @bulletins and !@bulletins.nil? %>
<h2 class="topic_title"><%= t('焦點新聞')%></h2> <h2 class="topic_title"><%= t('焦點新聞')%></h2>
<%= link_to "more+",panel_announcement_front_end_bulletins_path(), :class => "topic_note" %> <%= link_to "more+",panel_announcement_front_end_bulletins_path(), :class => "topic_note" %>
<div class="topic_prev">previous page</div> <div class="topic_prev">previous page</div>
<div class="topic_next">next page</div> <div class="topic_next">next page</div>
<ul> <ul id="topic_list">
<% @bulletins.each do |post| %> <% @bulletins.each do |post| %>
<li> <li>
<div class="news_img"><%= image_tag(post.image.url, :size => "290x130") if post.image.file %></div> <div class="news_img"><%= image_tag(post.image.url, :size => "290x130") if post.image.file %></div>
<h3 class="h3 news_title"><%= link_to post.title[I18n.locale], panel_announcement_front_end_bulletin_path(post) %></h3> <h3 class="h3 news_title"><%= link_to post.title[I18n.locale], panel_announcement_front_end_bulletin_path(post) %></h3>
<p class="news_wrap"><%= post.subtitle[I18n.locale] %></p> <p class="news_wrap"><%= post.subtitle[I18n.locale] %></p>
</li> </li>
<% end %> <% end %>
</ul> </ul>
<% end %> <% end %>

View File

@ -1,13 +1,14 @@
<ul class="post_list"> <ul class="post_list1">
<li> <li>
<h2 class="h2 in_heading"><%= post_frontend.title %></h2> <div class="post_title">
<div class="post_content"> <h4 class="h4"><%=link_to post_frontend.title,panel_new_blog_front_end_post_path(post_frontend) %></h2>
<%= truncate(post_frontend.body,:length=>25) %>
</div> </div>
<%= link_to 'Read more...',panel_new_blog_front_end_post_path(post_frontend), :class => 'btn' %> <div class="post_content" style="margin:0 0 10px;">
<%= truncate(post_frontend.body,:length=>100) %>
</div>
</li> </li>
</ul> </ul>
<div class="clear" style="height:20px;"></div> <div class="clear" style="height:20px;"></div>
<table class="table table-bordered"> <table class="table table-bordered">
@ -20,9 +21,9 @@
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<th><%= post_frontend.title %></td> <td width="30%"><%= post_frontend.title %></td>
<td><%= truncate(post_frontend.body,:length=>25) %></td> <td width="55%"><%= truncate(post_frontend.body,:length=>100) %></td>
<td><%= link_to 'Read more...',panel_new_blog_front_end_post_path(post_frontend), :class => 'btn' %></td> <td width="15%"><%= link_to 'Read more...',panel_new_blog_front_end_post_path(post_frontend), :class => 'btn' %></td>
</tr> </tr>
</tbody> </tbody>
</ul> </ul>

View File

@ -6,8 +6,9 @@
<%= flash_messages %> <%= flash_messages %>
<h1 class="h1 ini_heading"><%= t('blog.front_end_index') %></h1> <h1 class="h1"><%= t('blog.front_end_index') %></h1>
<%= render :partial => "post_frontend", :collection => @posts %>
<div class="style1">
<%= render :partial => "post_frontend", :collection => @posts %>
</div>