Gemfile and bugs in js for orbit-bar

This commit is contained in:
Christophe Vilayphiou 2012-02-13 13:28:42 +08:00 committed by Christophe Vilayphiou
parent 55ae7de01c
commit 1f7dae9bee
4 changed files with 40 additions and 11 deletions

View File

@ -82,6 +82,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)
@ -177,6 +178,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)
treetop (1.4.10) treetop (1.4.10)
@ -231,5 +234,6 @@ DEPENDENCIES
sinatra sinatra
spork spork
sprockets sprockets
therubyracer
uglifier uglifier
watchr watchr

View File

@ -1,6 +1,8 @@
<link href='assets/bootstrap.css.erb' rel='stylesheet' type='text/css'/> <% if controller.controller_name.eql?('pages') %>
<link href='assets/style.css.erb' rel='stylesheet' type='text/css'/> <link href='/assets/bootstrap.css.erb' rel='stylesheet' type='text/css'/>
<script type='text/javascript' src='assets/bootstrap.js'></script> <link href='/assets/style.css.erb' rel='stylesheet' type='text/css'/>
<script type='text/javascript' src='/assets/bootstrap.js'></script>
<% end %>
<header id="orbit-bar" class="navbar"> <header id="orbit-bar" class="navbar">
<div class="navbar-inner"> <div class="navbar-inner">

View File

@ -1,7 +1,28 @@
<div> <ul class="post_list">
<%= post_frontend.title %><br /> <li>
<p> <h2 class="h2 in_heading"><%= post_frontend.title %></h2>
<div class="post_content">
<%= truncate(post_frontend.body,:length=>25) %> <%= truncate(post_frontend.body,:length=>25) %>
<%= link_to 'Read more...',panel_new_blog_front_end_post_path(post_frontend) %> </div>
</p> <%= link_to 'Read more...',panel_new_blog_front_end_post_path(post_frontend), :class => 'btn' %>
</div> </li>
</ul>
<div class="clear" style="height:20px;"></div>
<table class="table table-bordered">
<thead>
<tr>
<th>Title</th>
<th>Content</th>
<th>Link</th>
</tr>
</thead>
<tbody>
<tr>
<th><%= post_frontend.title %></td>
<td><%= truncate(post_frontend.body,:length=>25) %></td>
<td><%= link_to 'Read more...',panel_new_blog_front_end_post_path(post_frontend), :class => 'btn' %></td>
</tr>
</tbody>
</ul>

View File

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