实训TPI的全部任务页面,关卡状态显示不够明显

This commit is contained in:
daiao 2017-06-23 09:56:31 +08:00
parent 395eb0244c
commit f59e7952b3
2 changed files with 6 additions and 5 deletions

View File

@ -9,16 +9,17 @@
<div class=" clearfix -task-list-inner">
<span class="icon-success fl mr5"><%= challenge.try(:position) %></span>
<% if game.try(:status) == 0 %>
<h4 class=" -task-list-title fl"> <%= link_to challenge.try(:subject), myshixun_game_path(game, :myshixun_id => @myshixun), :remote => true %></h4>
<h4 class=" -task-list-title fl"><%= link_to challenge.try(:subject), myshixun_game_path(game, :myshixun_id => @myshixun), :remote => true %></h4>
<a class="fr " title="待完成"><i class="fa fa-unlock-alt fr font-18 mt5 -text-danger w20_center" ></i></a>
<% elsif game.try(:status) == 1 %>
<h4 class="-task-list-title fl"> <%= challenge.try(:subject) %></h4>
<span class="fr color-light-green">正在解决</span>
<span class="fr color-light-green">正在解决</span>
<% elsif game.try(:status) == 2 %>
<h4 class="-task-list-title fl"> <%= link_to challenge.try(:subject), myshixun_game_path(game, :myshixun_id => @myshixun), :remote => true %></h4>
<a class="fr"> <i class="fa fa-check fr font-18 mt5" ></i></a>
<a class="fr" title="已解决"><i class="fa fa-unlock fr font-18 mt5 color-light-green w20_center" ></i></a>
<% elsif game.try(:status) == 3 %>
<h4 class="-task-list-title fl"> <%= challenge.try(:subject) %></h4>
<a class="fr"> <i class="fa fa-lock fr font-18 mt5" ></i></a>
<a class="fr" title="未解锁"><i class="fa fa-lock fr font-18 mt5 color-grey w20_center" ></i></a>
<% end %>
<div class="cl"></div>
</div>

View File

@ -4,7 +4,7 @@ html,body{ font-size:14px; line-height:2.0; height:100%;}
.newMain{ margin: 0 auto; padding-bottom: 155px; }
.newFooter{ position: absolute; bottom: 0; width: 100%; height: 155px;background: #323232; clear:both; min-width: 1200px}
.newHeader{background: #46484c;width:100%; height: 50px; min-width: 1200px}
.w20_center{ width: 20px;text-align: center; }
.task-container{ min-width:1300px; margin:0 auto; background: #f5f9fc; position: relative;}
/*左侧导航*/
.leftbar{ height: 100%; background: #1f212d; width:80px;}