实训按钮样式调整

This commit is contained in:
daiao 2017-05-02 17:29:24 +08:00
parent ceed7279f2
commit d01c5f75c2
6 changed files with 21 additions and 10 deletions

View File

@ -5,7 +5,7 @@
<span class="btn-cir btn-cir-grey ml5 mt8 fl"><%= @challenges.count %></span>
<% end %>
<% if User.current.manager_of_shixun?(@shixun) || User.current.admin? %>
<a href="<%= new_shixun_challenge_path(@shixun) %>" class=" task-btn task-btn-green fr">新建阶段</a>
<a href="<%= new_shixun_challenge_path(@shixun) %>" class="shixun-task-btn task-btn-green fr">新建阶段</a>
<% end %>
</div>
<div class="panel-list">

View File

@ -41,7 +41,7 @@
<div class="task-pm-box mt20">
<div class="panel-header clearfix">
<h3 class="fl mt5">阶段详情</h3>
<a href="<%= new_shixun_challenge_path(@shixun) %>" class=" task-btn task-btn-green fr">新建阶段</a>
<a href="<%= new_shixun_challenge_path(@shixun) %>" class="shixun-task-btn task-btn-green fr">新建阶段</a>
</div>
<div class="panel-form ">
<div class="clearfix mb20">

View File

@ -1,19 +1,19 @@
<span class="mt10 -flex c_grey ml15" id="time-consuming"></span>
<div id="code_estimate">
<% if @game.status == 0 %>
<a href="javascript:void(0)" class="task-btn task-btn-blue mr15 mt8" id="code_test" onclick="training_task_submmit();">评测</a>
<a href="javascript:void(0)" class="shixun-task-btn task-btn-blue mr15 mt8" id="code_test" onclick="training_task_submmit();">评测</a>
<% elsif @game.status == 1 %>
<a class="task-btn mb10 mt6 mr15" id="code_testing">评测中..</a>
<a class="shixun-task-btn mb10 mt6 mr15" id="code_testing">评测中..</a>
<% elsif @game.status == 2 %>
<% if @had_done == 0 %>
<%= link_to "下 一 关 ", {:controller => 'games',
:action => "next_step", :id => @game,
:myshixun_id => @myshixun},
:class => "task-btn task-btn-blue mr15 mt8",
:class => "shixun-task-btn task-btn-blue mr15 mt8",
:remote => true %>
<!--<a href="javascript:void(0);" onclick="shixun_next_step();" class="task-btn task-btn-blue mr15 mt8">下 一 步</a>-->
<% else %>
<a href="<%= shixuns_path() %>" class="task-btn task-btn-blue mb10 mt6 mr15">退出实训</a>
<a href="<%= shixuns_path() %>" class="shixun-task-btn task-btn-blue mb10 mt6 mr15">退出实训</a>
<% end %>
<% end %>
</div>

View File

@ -8,14 +8,14 @@
<% if allow_shixun_exec(@shixun) %>
<% if User.current.id == @shixun.user_id %>
<% if @shixun.status == 1 %>
<%= link_to "重新发布", publish_shixun_path(@shixun, :type => "retry"), :class => "fr task-btn task-btn-orange font-14", :id => "challenge_begin", :remote => true %>
<%= link_to "重新发布", publish_shixun_path(@shixun, :type => "retry"), :class => "fr shixun-task-btn task-btn-orange", :id => "challenge_begin", :remote => true %>
<% else %>
<%= link_to "发布实训", publish_shixun_path(@shixun), :class => "fr task-btn task-btn-orange font-14", :id => "challenge_begin", :remote => true %>
<%= link_to "发布实训", publish_shixun_path(@shixun), :class => "fr shixun-task-btn task-btn-orange", :id => "challenge_begin", :remote => true %>
<% end %>
<% else %>
<% if @shixun.status == 1 %>
<div id="bengin_challenge_task">
<%= link_to "开始挑战", shixun_exec_shixun_path(@shixun), :class => "fr task-btn task-btn-orange font-14", :id => "challenge_begin", :onclick =>"$('#ajax-indicator').css('opacity','0.8').text('正在加载实训项目,请稍等……').show();" %>
<%= link_to "开始挑战", shixun_exec_shixun_path(@shixun), :class => "fr shixun-task-btn task-btn-orange", :id => "challenge_begin", :onclick =>"$('#ajax-indicator').css('opacity','0.8').text('正在加载实训项目,请稍等……').show();" %>
</div>
<% end %>
<% end %>

View File

@ -76,7 +76,7 @@ position:absolute;left:-420px;top:0;}
.col-width-2{ max-width: 20%; background: #fff; border:1px solid #e8e8e8;}
.col-width-1{ max-width: 10%; background: #fff; border:1px solid #e8e8e8;}
/*按钮*/
a.task-btn{display: inline-block;border:none; padding:0 35px;color: #666;background: #e1e1e1; text-align:center;font-size: 12px; height: 35px;line-height: 35px; border-radius:3px;}
a.task-btn{display: inline-block;border:none; padding:0 35px;color: #666;background: #e1e1e1; text-align:center;font-size: 14px; height: 35px;line-height: 35px; border-radius:3px;}
a:hover.task-btn {background: #c3c3c3; }
a.task-btn-green{background: #29bd8b; color: #fff!important;}
a:hover.task-btn-green{background: #19b17e;}

View File

@ -249,3 +249,14 @@ a.sortArrowActiveU {background:url(../images/post_image_list.png) -17px -20px no
.postSort {width:75px; float:right}
.new_li ul li{ list-style-type: disc!important; }
.new_li li{ margin-bottom: 0!important; }
a.shixun-task-btn { display: inline-block;
font-weight: bold;
border: none;
padding: 0 12px;
color: #666;
letter-spacing: 1px;
text-align: center;
font-size: 16px;
height: 35px;
line-height: 33px;
border-radius: 3px; }