Skip to content

Commit

Permalink
update seed
Browse files Browse the repository at this point in the history
  • Loading branch information
mouse-lin committed Apr 11, 2012
1 parent ced4fd9 commit c454fa3
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/code_campo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ table.item-list {
width: 100%;

tr {
border-top: 1px solid #DDD;
border-top: 1px solid #fff;

&:first-child {
border-top: none;
Expand Down
2 changes: 1 addition & 1 deletion config/mongoid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ production:
host: localhost
database: bicycle_production
identity_map_enabled: true
uri: <%= ENV['MONGOHQ_URL'] %>
#uri: <%= ENV['MONGOHQ_URL'] %>
60 changes: 46 additions & 14 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,60 @@

site = Site.new

site.fragment.footer = <<-EOF
<div class="pull-left">
<p>CodeCampo is a small community for web develeper and open source in <a href="https://github.com/chloerei/code_campo">Github</a> by <a href="https://twitter.com/chloerei">@chloerei</a>.</p>
<p>Feel free to use source code under MIT license.</p>
</div>
<div class="pull-right">
<p><a href="#top">Back to top</a></p>
</div>
EOF
#site.fragment.footer = <<-EOF
#<div class="pull-left">
# <p>CodeCampo is a small community for web develeper and open source in <a href="https://github.com/chloerei/code_campo">Github</a> by <a href="https://twitter.com/chloerei">@chloerei</a>.</p>
# <p>Feel free to use source code under MIT license.</p>
#</div>
#EOF

site.fragment.home_sidebar_bottom = <<-EOF
<section class="box">
<header>Power by</header>
<a href="http://rubyonrails.org"><img src="/assets/rails.png" /></a>
</section>
site.fragment.home_mainbar_bottom = <<-EOF
<section class="box no-padding">
<header>标签导航</header>
<table class="item-list">
<tbody>
<tr>
<td>活动</td>
<td class="tags">
<a href="/topics/tagged/短途">短途</a>
<a href="/topics/tagged/长途">长途</a>
<a href="/topics/tagged/惠州">惠州</a>
</td>
</tr>
<tr>
<td>技术 | 装备</td>
<td class="tags">
<a href="/topics/tagged/二手市场">二手市场</a>
<a href="/topics/tagged/one-piece">One Piece</a>
</td>
</tr>
<tr>
<td>站务</td>
<td class="tags">
<a href="/topics/tagged/codecampo">综合</a>
<a href="/topics/tagged/campo-feature">功能特性</a>
</td>
</tr>
</tbody>
</table>
</section>
EOF

#site.fragment.home_sidebar_bottom = <<-EOF
#<section class="box">
# <header>Power by</header>
# <a href="http://rubyonrails.org"><img src="/assets/rails.png" /></a>
#</section>
#EOF

#底部
site.fragment.footer = <<-EOF
<section class="box">
powerd by <b>Mouse</b> && <b>Yijie</b> ||
<img width="20px 20px" src="http://0.web.qstatic.com/webqqpic/pubapps/0/50/images/big.png"><b>惠大骑行者群</b>: 84560691
<div class="pull-right">
<p><a href="#top">Back to top</a></p>
</div>
</section>
EOF

Expand Down

0 comments on commit c454fa3

Please sign in to comment.