Merge remote-tracking branch 'origin/szzh' into szzh
This commit is contained in:
commit
08c2b9395e
|
@ -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,17 +46,28 @@
|
||||||
<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%>
|
||||||
|
<div class="homepagePostSetting">
|
||||||
<ul>
|
<ul>
|
||||||
<li class="homepagePostSettingIcon">
|
<li class="homepagePostSettingIcon">
|
||||||
<ul class="homepagePostSettiongText">
|
<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><a href="javascript:void(0);" class="postOptionLink">删除</a></li>
|
</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>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<% end%>
|
||||||
</div>
|
</div>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -98,7 +98,7 @@ a.homepagePostTypeForum {background:url(../images/homepage_icon.png) -10px -310p
|
||||||
a.homepagePostTypeQuiz {background:url(../images/homepage_icon.png) -90px -124px no-repeat; padding-left:23px;}
|
a.homepagePostTypeQuiz {background:url(../images/homepage_icon.png) -90px -124px no-repeat; padding-left:23px;}
|
||||||
a.homepagePostTypeQuestion {background:url(../images/homepage_icon.png) -10px -273px no-repeat; padding-left:23px;}
|
a.homepagePostTypeQuestion {background:url(../images/homepage_icon.png) -10px -273px no-repeat; padding-left:23px;}
|
||||||
a.homepagePostTypeMine {background:url(../images/homepage_icon.png) -187px -277px no-repeat; padding-left:23px;}
|
a.homepagePostTypeMine {background:url(../images/homepage_icon.png) -187px -277px no-repeat; padding-left:23px;}
|
||||||
a.homepagePostTypeAll {background:url(../images/homepage_icon.png) -185px -308px no-repeat; padding-left:23px;}
|
a.homepagePostTypeAll {background:url(../images/homepage_icon.png) -189px -308px no-repeat; padding-left:23px;}
|
||||||
a.postTypeGrey {color:#888888;}
|
a.postTypeGrey {color:#888888;}
|
||||||
a.postTypeGrey:hover {color:#269ac9;}
|
a.postTypeGrey:hover {color:#269ac9;}
|
||||||
.homepagePostBrief {width:710px; margin:0px auto; position:relative;}
|
.homepagePostBrief {width:710px; margin:0px auto; position:relative;}
|
||||||
|
|
Loading…
Reference in New Issue