正在完善去掉鼠标点击效果

This commit is contained in:
huang 2017-09-01 14:48:25 +08:00
parent 032b1f1d59
commit 0ab3c43fcd
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
<% stage.stage_shixuns.each_with_index do |stage_shixun, index| %>
<% shixun = stage_shixun.shixun %>
<div class="clearfix pt10 pb10 paragraph pl20 pr20" id="stage_shixun_<%= shixun.id %>"
style="<%= allow_shixun_exec(shixun) ? "" : "cursor: pointer" %>;" onclick="<%= allow_shixun_exec(shixun) ? "" : "shixun_link('#{shixun.identifier}')" %>">
style="<%= allow_shixun_exec(shixun) ? "" : "cursor: pointer" %>;" onclick="<%= allow_shixun_exec(shixun) ? "" : (shixun.status < 2 && !User.current.manager_of_shixun?(shixun) ? "" : "shixun_link('#{shixun.identifier}')") %>">
<li class="fl li-width63">
<i class="fa fa-sort-up color-grey-c fl transform90 font-18 icon-set mr5"></i>
<span class="color-grey3 paragraph_name"><%= s_index + 1 %>-<%= index + 1 %>&nbsp;&nbsp;<%= shixun.name %></span>
@ -68,7 +68,7 @@
<% end %>
<% end %>
<% if shixun.status < 2 && !User.current.manager_of_shixun?(shixun) %>
<a class="task-btn task-btn-grey ml10" style="display: none">正在完善</a>
<a class="task-btn task-btn-grey ml10" style="display: none;cursor: default;">正在完善</a>
<% else %>
<%= link_to "查看详情", shixun_path(shixun), :class => "task-btn task-btn-green ml10", :style=>"display: none", :target => "_blank" %>
<% end %>