首页的作业动态添加编辑菜单
This commit is contained in:
parent
3254abf67f
commit
f5a6d5d349
|
@ -1,3 +1,4 @@
|
||||||
|
<% is_teacher = User.current.allowed_to?(:as_teacher,activity.course) %>
|
||||||
<div class="resources mt10">
|
<div class="resources mt10">
|
||||||
<div class="homepagePostBrief">
|
<div class="homepagePostBrief">
|
||||||
<div class="homepagePostPortrait">
|
<div class="homepagePostPortrait">
|
||||||
|
@ -45,18 +46,29 @@
|
||||||
<div class="homepagePostIntro break_word upload_img list_style" id="activity_description_<%= user_activity_id%>">
|
<div class="homepagePostIntro break_word upload_img list_style" id="activity_description_<%= user_activity_id%>">
|
||||||
<%= activity.description.html_safe %>
|
<%= activity.description.html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<div class="homepagePostSetting" style="visibility: hidden" id="act-<%=user_activity_id %>">
|
<% if is_teacher%>
|
||||||
<ul>
|
<div class="homepagePostSetting">
|
||||||
<li class="homepagePostSettingIcon">
|
<ul>
|
||||||
<ul class="homepagePostSettiongText">
|
<li class="homepagePostSettingIcon">
|
||||||
<li><a href="javascript:void(0);" class="postOptionLink">编辑</a></li>
|
<ul class="homepagePostSettiongText">
|
||||||
<li><a href="javascript:void(0);" class="postOptionLink">复制</a></li>
|
<li>
|
||||||
<li><a href="javascript:void(0);" class="postOptionLink">删除</a></li>
|
<%= link_to l(:button_edit),edit_homework_common_path(activity,:is_in_course => 0), :class => "postOptionLink"%>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to(l(:label_bid_respond_delete), homework_common_path(activity,:is_in_course => 0),:method => 'delete', :confirm => l(:text_are_you_sure), :class => "postOptionLink") %>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to("匿评设置", start_evaluation_set_homework_common_path(activity),:class => "postOptionLink", :remote => true) if activity.homework_detail_manual.comment_status == 1%>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= homework_anonymous_comment activity %>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</div>
|
||||||
</ul>
|
<% end%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue