竞赛邀请码 竞赛settings(部分)

This commit is contained in:
huang 2016-12-22 15:17:02 +08:00
parent 55e1b0d8f2
commit 037e717937
5 changed files with 285 additions and 232 deletions

View File

@ -1,6 +1,6 @@
class ContestsController < ApplicationController
before_filter :find_contest, :only => [:show]
before_filter :find_contest, :only => [:show, :settings]
before_filter :is_logged, :only => [:index, :new, :create]
layout "base_contests"
@ -54,4 +54,8 @@ class ContestsController < ApplicationController
redirect_to signin_path unless User.current.logged?
end
def settings
end
end

View File

@ -84,4 +84,22 @@ class Contest < ActiveRecord::Base
def act_as_contest_activity
self.contest_acts << ContestActivity.new(:user_id => self.user_id,:contest_id => self.id)
end
# 延迟生成邀请码
def invite_code
return generate_invite_code
end
# 生成邀请码
# 如果已有改邀请码,则重新生成
CODES = %W(2 3 4 5 6 7 8 9 A B C D E F G H J K L N M O P Q R S T U V W X Y Z)
def generate_invite_code
code = read_attribute(:invite_code)
if !code || code.size < 4
code = CODES.sample(4).join
return generate_invite_code if Project.where(invite_code: code).present?
update_attribute(:invite_code, code)
end
code
end
end

View File

@ -0,0 +1,214 @@
<div class="sy_class_r fr ">
<h3 class="game-setting-h3 "><span class="ml15"></span>竞赛配置</h3>
<div class="game-setting-tab">
<ul id="game-setting-tab-nav">
<li id="game-setting-tab-nav-1" class="game-setting-nav-hover" onclick="HoverLi(1);">
<a href="javascript:void(0);" >基本信息</a>
</li>
<li id="game-setting-tab-nav-2" onclick="HoverLi(2);">
<a href="javascript:void(0);" >成员</a>
</li>
<li id="game-setting-tab-nav-3" onclick="HoverLi(3);">
<a href="javascript:void(0);" >讨论区设置</a>
</li>
<div class="cl"></div>
</ul>
<div id="game-setting-content-1">
<div class="pro_new_setting_conbox fl " style="width:100%; border:none;">
<div class="">
<ul class="pro_newsetting_con mb15">
<li class="clear mb10">
<label class="label fl">&nbsp;&nbsp;</label>
<img alt="上传图片" height="60" src="images/project/logo_pro.jpg" width="60" class="fl ml5 pro_new_upimg">
<button class="sub_btn fl mt35 ml5" name="button" type="button">文件浏览</button>
</li>
<li class="mb10">
<label class="label"><span class="c_red f12">*</span>&nbsp;竞赛名称&nbsp;&nbsp;:&nbsp;</label>
<input type="text" class="w625">
<span ></span>
</li>
<li class="clear mb10">
<label class="label fl">&nbsp;竞赛介绍&nbsp;&nbsp;:&nbsp;</label>
<textarea class=" fl ml5 w625" style="height:192px; padding-top:5px; background:#fff;" placeholder="参赛要求参与方法赛事日程最多6000个字符" ></textarea>
</li>
<li class="clear">
<label class="fl ">公开&nbsp;&nbsp;</label>
<input class="fl ml5" type="checkbox">
<span class="fl c_grey ">(选中后对所有用户可见,否则仅对成员可见。)</span>
</li>
<li class="clear">
<a href="javascript:void(0);" class="sy_btn_grey mr5 fl ml40 "> 删除</a>
<p class="fl c_grey">(友情提示:删除该竞赛后如果您想恢复,请联系系统管理员!)</p>
<a href="javascript:void(0);" class="sy_btn_blue mr15 fr" > 保存</a>
</li>
</ul>
</div>
</div>
</div><!--issues_list_content_1 end-->
<div id="game-setting-content-2" class="undis">
<div class="pro_new_setting_conbox fl " style="width:100%; border:none;">
<a href="javascript:void(0);" class="fl sy_btn_green mb10 ml15">添加成员</a>
<div class="cl"></div>
<div class=" sy_new_tchbox clear" style="margin-left:10px; margin-right:10px">
<div class="hw_search_box mb10">
<input class=" sy_new_search" placeholder="支持姓名、邮箱、登录名搜索" type="text">
</div>
<div class="clear mb10">
<ul class="pro_new_idlist fl">
<li class=" clear " ><input type="checkbox" class="mr5 fl" ><span class="fl pro_new_idname mt3">shashashashashashasshashashashashashshashashashashashshashashashashashshashashashashashhasha</span></li>
<li class=" clear "><input type="checkbox" class="mr5 fl" ><span class="fl mt3">shashashashashashashasha</span></li>
<li class=" clear "><input type="checkbox" class="mr5 fl" ><span class="fl mt3">shashashashashashashasha</span></li>
<li class=" clear "><input type="checkbox" class="mr5 fl" ><span class="fl mt3">shashashashashashashasha</span></li>
</ul>
<ul class="fl pro_new_idbox">
<li class="clear ">
<input type="checkbox" class="mt2 fl" >
<p class="fl ml5"> 管理员</p>
</li>
<li class="clear ">
<input type="checkbox" class="mt2 fl" >
<p class="fl ml5"> 评委</p>
</li>
<li class="clear ">
<input type="checkbox" class="mt2 fl" >
<p class="fl ml5"> 参赛者</p>
</li>
</ul>
</div>
<a href="javascript:void(0);" class="fr sy_btn_grey ">取消</a><a href="javascript:void(0);" class="fr sy_btn_blue mr5">保存</a>
</div>
<div class=" clear ml10 mr10" >
<table class="sy_new_table clearfix mb15 " cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>序号</th>
<th style="width:320px;">用户</th>
<th>角色</th>
<th class="sy_new_namebox">操作</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<th>shashasha</th>
<th>管理人员</th>
<th><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
<tr>
<th>2</th>
<th>shashasha</th>
<th>主办人</th>
<th><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
<tr>
<th>3</th>
<th ><span class="pro_new_idname">shashashashashashashashashahashashashashashashasha</span></th>
<th>
<ul class="clear ml15">
<li class="fl mr5">
<input type="checkbox" class="mt6 fl" >
<p class="fl ml5"> 管理员</p>
</li>
<li class="fl mr5">
<input type="checkbox" class="mt6 fl" >
<p class="fl ml5"> 评委</p>
</li>
<li class="fl mr5">
<input type="checkbox" class="mt6 fl" >
<p class="fl ml5"> 参赛者</p>
</li>
</ul>
</th>
<th><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">保存</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
</tbody>
</table>
</div>
</div>
</div><!--issues_list_content_2 end-->
<div id="game-setting-content-3" class="undis">
<div class="pro_new_setting_conbox " style="width:100%; border:none;">
<div class=" sy_new_tchbox clear " style="margin-left:10px; margin-right:10px; " >
<ul class="pro_newsetting_con mb15">
<li class="mb10 clear">
<label class=" fl">新增子栏目名称&nbsp;&nbsp;:&nbsp;</label>
<input type="text" class="w695 fl" placeholder=" 请输入子栏目名称">
</li>
</ul>
<a href="javascript:void(0);" class="fr sy_btn_grey ">取消</a><a href="javascript:void(0);" class="fr sy_btn_blue mr5">保存</a>
</div>
<div class=" clear ml10 mr10" >
<table class="sy_new_table clearfix mb15 " cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>名称</th>
<th style="width:280px;">操作</th>
</tr>
</thead>
<tbody>
<tr>
<th class="game-text-left"><span class=" ml20"></span>竞赛讨论区</th>
<th class="game-text-right"><a href="javascript:void(0);" class=" sy_btn_green mr5 ">添加子栏目</a></th>
</tr>
<tr>
<th class="game-text-left"><span class=" ml40"></span>技术讨论区</th>
<th class="game-text-right"><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">下移</a><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
<tr>
<th class="game-text-left"><span class=" ml40"></span>学术论区</th>
<th class="game-text-right"><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">上移</a><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">下移</a><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
<tr>
<th class="game-text-left"><span class=" ml40"></span>学术论区</th>
<th class="game-text-right"><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">上移</a><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
</tbody>
</table>
</div>
</div>
</div><!--issues_list_content_3 end-->
</div><!--issues_con_list end-->
</div><!--sy_class_r end-->
<script type="text/javascript">
function g(o){
return document.getElementById(o);
}
function HoverLi(n){
//如果有N个标签,就将i<=N;
for(var i=1;i<=3;i++){
g('game-setting-tab-nav-'+i).className='game-setting-nav-nomall';
g('game-setting-content-'+i).className='undis';
}
g('game-setting-content-'+n).className='dis';
g('game-setting-tab-nav-'+n).className='game-setting-nav-hover';
}
$(document).ready(function() {
// Store variables
var accordion_head = $('.accordion > li > a'),
accordion_body = $('.accordion li > .sub-menu');
// Click function
accordion_head.on('click', function(event) {
// Disable header links
event.preventDefault();
// Show and hide the tabs on click
if ($(this).attr('class') != 'active'){
accordion_body.slideUp('normal');
$(this).next().stop(true,true).slideToggle('normal');
accordion_head.removeClass('active');
$(this).addClass('active');
}
});
});
</script>

View File

@ -22,239 +22,58 @@
<div class="cl"></div>
<div id="Container">
<div class="sy_contanier">
<div class="sy_class_infobox">
<p class="sy_cgrey mb10">
<%= link_to @contest.user.try(:show_name), user_path(@contest.user), :class => "sy_cgrey" %>&nbsp;&gt;&nbsp;
<%= link_to @contest.name, contest_path(@contest), :class => "sy_cgrey" %>&nbsp;&gt;&nbsp;
<%= link_to "配置", settings_contest_path(@contest), :class => "sy_cgrey" %>
</p>
<% if is_contest_manager?(User.current.id, @contest.id) %>
<%= render :partial => "contests/mamager_setting" %>
<% end %>
<div class="cl"></div>
<div class="banner-game "><img src="/images/game/banner-game.png" width="968" height="110" /></div>
<div class="sy_class_info fl">
<div class="sy_class_titbox">
<h3 class="fl sy_class_title"><%= @contest.name %></h3>
<% unless @contest.is_public %>
<span class="hw_icon_open fl ml5 mt3"></span>
<div class="sy_contanier">
<div class="sy_class_infobox">
<p class="sy_cgrey mb10">
<%= link_to @contest.user.try(:show_name), user_path(@contest.user), :class => "sy_cgrey" %>&nbsp;&gt;&nbsp;
<%= link_to @contest.name, contest_path(@contest), :class => "sy_cgrey" %>&nbsp;&gt;&nbsp;
<%= link_to "配置", settings_contest_path(@contest), :class => "sy_cgrey" %>
</p>
<% if is_contest_manager?(User.current.id, @contest.id) %>
<%= render :partial => "contests/mamager_setting" %>
<% end %>
<div class="cl"></div>
<div class="banner-game "><img src="/images/game/banner-game.png" width="968" height="110" /></div>
<div class="sy_class_info fl">
<div class="sy_class_titbox">
<h3 class="fl sy_class_title"><%= @contest.name %></h3>
<% unless @contest.is_public %>
<span class="hw_icon_open fl ml5 mt3"></span>
<% end %>
<div class="cl"></div>
</div>
<p class="sy_cgrey ">
<span class=" mr15"> 管理员:<a class="sy_cblue"><%= contest_managers(@contest).count %></a></span>
<span class=" mr15">评委:<a class="sy_cblue"><%= contest_judges(@contest).count %></a></span>
<span class=" mr15">参赛者:<a class="sy_cblue"><%= contest_contestants(@contest).count %></a></span>
</p>
</div>
<a href="javascript:void(0);" class="fr sy_btn_blue mt28 ml10">加入竞赛</a>
<span class="fr mt30 f16"> 邀请码:<span class="sy_corange"><%= @contest.invite_code %></span></span>
<div class="cl"></div>
</div>
<p class="sy_cgrey ">
<span class=" mr15"> 管理员:<a class="sy_cblue"><%= contest_managers(@contest).count %></a></span>
<span class=" mr15">评委:<a class="sy_cblue"><%= contest_judges(@contest).count %></a></span>
<span class=" mr15">参赛者:<a class="sy_cblue"><%= contest_contestants(@contest).count %></a></span>
</p>
<div class="sy_content ">
<div class="sy_class_l fl">
<div class="sy_class_leftnav mb12" >
<ul class="accordion">
<li id="sy_01" class="sy_icons_game"> <a href="#sy_01" >竞赛首页</a></li>
<li id="sy_01" class="sy_icons_index"> <a href="#sy_01" >动态<span>1</span></a></li>
<li id="sy_02" class="sy_icons_boards"> <a href="#sy_02">讨论区<span>26</span></a> <a href="javascript:void(0);" class="sy_class_add"></a></li>
<li id="sy_03" class="sy_icons_hwork"> <a href="#sy_03">作品<span>26</span></a> <a href="javascript:void(0);" class="sy_class_add"></a></li>
<li id="sy_04" class="sy_icons_news"> <a href="#sy_04">通知<span>26</span></a><a href="javascript:void(0);" class="sy_class_add"></a></li>
<li id="sy_06" class="sy_icons_feedback"> <a href="#sy_06">留言<span>26</span></a> <a href="javascript:void(0);" class="sy_class_add"></a></li>
</ul>
</div><!--sy_class_leftnav end-->
</div><!--sy_class_l end-->
<%= render_flash_messages %>
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div>
<div class="cl"></div>
</div><!--sy_content end-->
</div>
<a href="javascript:void(0);" class="fr sy_btn_blue mt28 ml10">加入竞赛</a>
<span class="fr mt30 f16"> 邀请码:<span class="sy_corange">JVCR</span></span>
<div class="cl"></div>
</div>
<div class="sy_content ">
<div class="sy_class_l fl">
<div class="sy_class_leftnav mb12" >
<ul class="accordion">
<li id="sy_01" class="sy_icons_game"> <a href="#sy_01" >竞赛首页</a></li>
<li id="sy_01" class="sy_icons_index"> <a href="#sy_01" >动态<span>1</span></a></li>
<li id="sy_02" class="sy_icons_boards"> <a href="#sy_02">讨论区<span>26</span></a> <a href="javascript:void(0);" class="sy_class_add"></a></li>
<li id="sy_03" class="sy_icons_hwork"> <a href="#sy_03">作品<span>26</span></a> <a href="javascript:void(0);" class="sy_class_add"></a></li>
<li id="sy_04" class="sy_icons_news"> <a href="#sy_04">通知<span>26</span></a><a href="javascript:void(0);" class="sy_class_add"></a></li>
<li id="sy_06" class="sy_icons_feedback"> <a href="#sy_06">留言<span>26</span></a> <a href="javascript:void(0);" class="sy_class_add"></a></li>
</ul>
</div><!--sy_class_leftnav end-->
</div><!--sy_class_l end-->
<div class="sy_class_r fr ">
<h3 class="game-setting-h3 "><span class="ml15"></span>竞赛配置</h3>
<div class="game-setting-tab">
<ul id="game-setting-tab-nav">
<li id="game-setting-tab-nav-1" class="game-setting-nav-hover" onclick="HoverLi(1);">
<a href="javascript:void(0);" >基本信息</a>
</li>
<li id="game-setting-tab-nav-2" onclick="HoverLi(2);">
<a href="javascript:void(0);" >成员</a>
</li>
<li id="game-setting-tab-nav-3" onclick="HoverLi(3);">
<a href="javascript:void(0);" >讨论区设置</a>
</li>
<div class="cl"></div>
</ul>
<div id="game-setting-content-1">
<div class="pro_new_setting_conbox fl " style="width:100%; border:none;">
<div class="">
<ul class="pro_newsetting_con mb15">
<li class="clear mb10">
<label class="label fl">&nbsp;&nbsp;</label>
<img alt="上传图片" height="60" src="images/project/logo_pro.jpg" width="60" class="fl ml5 pro_new_upimg">
<button class="sub_btn fl mt35 ml5" name="button" type="button">文件浏览</button>
</li>
<li class="mb10">
<label class="label"><span class="c_red f12">*</span>&nbsp;竞赛名称&nbsp;&nbsp;:&nbsp;</label>
<input type="text" class="w625">
<span ></span>
</li>
<li class="clear mb10">
<label class="label fl">&nbsp;竞赛介绍&nbsp;&nbsp;:&nbsp;</label>
<textarea class=" fl ml5 w625" style="height:192px; padding-top:5px; background:#fff;" placeholder="参赛要求参与方法赛事日程最多6000个字符" ></textarea>
</li>
<li class="clear">
<label class="fl ">公开&nbsp;&nbsp;</label>
<input class="fl ml5" type="checkbox">
<span class="fl c_grey ">(选中后对所有用户可见,否则仅对成员可见。)</span>
</li>
<li class="clear">
<a href="javascript:void(0);" class="sy_btn_grey mr5 fl ml40 "> 删除</a>
<p class="fl c_grey">(友情提示:删除该竞赛后如果您想恢复,请联系系统管理员!)</p>
<a href="javascript:void(0);" class="sy_btn_blue mr15 fr" > 保存</a>
</li>
</ul>
</div>
</div>
</div><!--issues_list_content_1 end-->
<div id="game-setting-content-2" class="undis">
<div class="pro_new_setting_conbox fl " style="width:100%; border:none;">
<a href="javascript:void(0);" class="fl sy_btn_green mb10 ml15">添加成员</a>
<div class="cl"></div>
<div class=" sy_new_tchbox clear" style="margin-left:10px; margin-right:10px">
<div class="hw_search_box mb10">
<input class=" sy_new_search" placeholder="支持姓名、邮箱、登录名搜索" type="text">
</div>
<div class="clear mb10">
<ul class="pro_new_idlist fl">
<li class=" clear " ><input type="checkbox" class="mr5 fl" ><span class="fl pro_new_idname mt3">shashashashashashasshashashashashashshashashashashashshashashashashashshashashashashashhasha</span></li>
<li class=" clear "><input type="checkbox" class="mr5 fl" ><span class="fl mt3">shashashashashashashasha</span></li>
<li class=" clear "><input type="checkbox" class="mr5 fl" ><span class="fl mt3">shashashashashashashasha</span></li>
<li class=" clear "><input type="checkbox" class="mr5 fl" ><span class="fl mt3">shashashashashashashasha</span></li>
</ul>
<ul class="fl pro_new_idbox">
<li class="clear ">
<input type="checkbox" class="mt2 fl" >
<p class="fl ml5"> 管理员</p>
</li>
<li class="clear ">
<input type="checkbox" class="mt2 fl" >
<p class="fl ml5"> 评委</p>
</li>
<li class="clear ">
<input type="checkbox" class="mt2 fl" >
<p class="fl ml5"> 参赛者</p>
</li>
</ul>
</div>
<a href="javascript:void(0);" class="fr sy_btn_grey ">取消</a><a href="javascript:void(0);" class="fr sy_btn_blue mr5">保存</a>
</div>
<div class=" clear ml10 mr10" >
<table class="sy_new_table clearfix mb15 " cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>序号</th>
<th style="width:320px;">用户</th>
<th>角色</th>
<th class="sy_new_namebox">操作</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<th>shashasha</th>
<th>管理人员</th>
<th><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
<tr>
<th>2</th>
<th>shashasha</th>
<th>主办人</th>
<th><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
<tr>
<th>3</th>
<th ><span class="pro_new_idname">shashashashashashashashashahashashashashashashasha</span></th>
<th>
<ul class="clear ml15">
<li class="fl mr5">
<input type="checkbox" class="mt6 fl" >
<p class="fl ml5"> 管理员</p>
</li>
<li class="fl mr5">
<input type="checkbox" class="mt6 fl" >
<p class="fl ml5"> 评委</p>
</li>
<li class="fl mr5">
<input type="checkbox" class="mt6 fl" >
<p class="fl ml5"> 参赛者</p>
</li>
</ul>
</th>
<th><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">保存</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
</tbody>
</table>
</div>
</div>
</div><!--issues_list_content_2 end-->
<div id="game-setting-content-3" class="undis">
<div class="pro_new_setting_conbox " style="width:100%; border:none;">
<div class=" sy_new_tchbox clear " style="margin-left:10px; margin-right:10px; " >
<ul class="pro_newsetting_con mb15">
<li class="mb10 clear">
<label class=" fl">新增子栏目名称&nbsp;&nbsp;:&nbsp;</label>
<input type="text" class="w695 fl" placeholder=" 请输入子栏目名称">
</li>
</ul>
<a href="javascript:void(0);" class="fr sy_btn_grey ">取消</a><a href="javascript:void(0);" class="fr sy_btn_blue mr5">保存</a>
</div>
<div class=" clear ml10 mr10" >
<table class="sy_new_table clearfix mb15 " cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>名称</th>
<th style="width:280px;">操作</th>
</tr>
</thead>
<tbody>
<tr>
<th class="game-text-left"><span class=" ml20"></span>竞赛讨论区</th>
<th class="game-text-right"><a href="javascript:void(0);" class=" sy_btn_green mr5 ">添加子栏目</a></th>
</tr>
<tr>
<th class="game-text-left"><span class=" ml40"></span>技术讨论区</th>
<th class="game-text-right"><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">下移</a><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
<tr>
<th class="game-text-left"><span class=" ml40"></span>学术论区</th>
<th class="game-text-right"><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">上移</a><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">下移</a><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
<tr>
<th class="game-text-left"><span class=" ml40"></span>学术论区</th>
<th class="game-text-right"><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">上移</a><a href="javascript:void(0);" class=" sy_btn_blue mr5 ">编辑</a><a href="javascript:void(0);" class=" sy_btn_grey mr5 ">删除</a></th>
</tr>
</tbody>
</table>
</div>
</div>
</div><!--issues_list_content_3 end-->
</div><!--issues_con_list end-->
</div><!--sy_class_r end-->
<div class="cl"></div>
</div><!--sy_content end-->
</div>
<%= render_flash_messages %>
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div>
<div style="clear:both;"></div>
</div>
<div class="cl"></div>

View File

@ -29,8 +29,6 @@
<%= yield %>
<%= call_hook :view_layouts_base_content %>
<div style="clear:both;"></div>
<div style="clear:both;"></div>
</div>
<div class="cl"></div>