2014-12-02 16:21:36 +08:00
|
|
|
|
<%# reply_allow = JournalsForMessage.create_by_user? User.current %>
|
2014-11-08 14:03:02 +08:00
|
|
|
|
<script type="text/javascript" language="javascript">
|
2014-12-01 11:15:03 +08:00
|
|
|
|
function g(o){return document.getElementById(o);}
|
|
|
|
|
function HoverLi(n){
|
|
|
|
|
for(var i=3;i<=5;i++){g('ping_tb_'+i).className='ping_normaltab';g('tbc_0'+i).className='ping_undis';}g('tbc_0'+n).className='ping_dis';g('ping_tb_'+n).className='ping_hovertab';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function ChoseStars(num)
|
|
|
|
|
{
|
|
|
|
|
for (var i = num + 1; i <= 5; i++) {$("#star0" + i).css("background-position","-2px 0");}
|
|
|
|
|
for (var i = num; i >= 0; i--) {$("#star0" + i).css("background-position","-24px 0px");}
|
|
|
|
|
$("#stars_value").val(num);
|
|
|
|
|
}
|
2015-05-07 16:27:26 +08:00
|
|
|
|
|
2015-05-14 17:40:33 +08:00
|
|
|
|
// function ChoseZero()
|
|
|
|
|
// {
|
|
|
|
|
// if(confirm('是否确定评分为0分?'))
|
|
|
|
|
// {
|
|
|
|
|
// ChoseStars(0);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
2014-11-08 14:03:02 +08:00
|
|
|
|
</script>
|
|
|
|
|
<div id="popbox">
|
|
|
|
|
<div class="ping_con">
|
|
|
|
|
<h2><%= @homework.name %></h2>
|
|
|
|
|
<ul>
|
|
|
|
|
<li><%= l(:label_create_person) %>:
|
|
|
|
|
<span class="c_grey">
|
2014-12-04 18:01:53 +08:00
|
|
|
|
<% if @is_anonymous_comments %>
|
2014-11-08 14:03:02 +08:00
|
|
|
|
<%= l(:label_anonymous) %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to @homework.user, user_path(@homework.user)%>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
2014-11-26 15:24:41 +08:00
|
|
|
|
<li style=" margin-left:130px;">
|
|
|
|
|
<%= l(:label_activity_time) %>:
|
|
|
|
|
<span class="c_grey" >
|
|
|
|
|
<%=format_time @homework.created_at %>
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
2014-11-08 14:03:02 +08:00
|
|
|
|
</ul>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% if @homework.users.count > 0 %>
|
2014-11-26 15:24:41 +08:00
|
|
|
|
<div>
|
|
|
|
|
<%= l(:label_participation_person) %>:
|
2014-12-04 18:01:53 +08:00
|
|
|
|
<% if @is_anonymous_comments %>
|
2014-11-08 14:03:02 +08:00
|
|
|
|
<%= l(:label_anonymous) %>
|
|
|
|
|
<%else%>
|
|
|
|
|
<% @homework.users.each do |homework_user| %>
|
2014-11-26 15:24:41 +08:00
|
|
|
|
<span class="c_grey">
|
|
|
|
|
<%= link_to homework_user, user_path(homework_user)%>
|
|
|
|
|
</span>
|
2014-11-08 14:03:02 +08:00
|
|
|
|
<% if @homework.users.count > 1 && homework_user != @homework.users.last %>
|
|
|
|
|
、
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<p>
|
|
|
|
|
<% if @homework.description != nil && @homework.description != "" %>
|
|
|
|
|
<%= @homework.description %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div style="font-size: 15px;color: #15BCCC;vertical-align:middle;padding-top: 10px;padding-left: 10px ">
|
2014-11-26 15:24:41 +08:00
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_homework_without_description) %>
|
|
|
|
|
</strong>
|
2014-11-08 14:03:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</p>
|
2014-11-26 15:33:36 +08:00
|
|
|
|
<p style=" border-bottom:none; color:#333; margin-top:8px;">
|
|
|
|
|
<strong>
|
|
|
|
|
<%= l(:label_attachment) %>:
|
2014-11-08 14:03:02 +08:00
|
|
|
|
</strong>
|
|
|
|
|
<span>
|
2014-11-26 15:33:36 +08:00
|
|
|
|
<% if @homework.attachments.empty?%>
|
|
|
|
|
<span style="color: #999999">尚未提交附件</span>
|
|
|
|
|
<% else%>
|
|
|
|
|
<% options = {:author => true } %>
|
|
|
|
|
<%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
|
|
|
|
|
<% end%>
|
2014-11-08 14:03:02 +08:00
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<div id="add_jour">
|
2014-12-04 18:01:53 +08:00
|
|
|
|
<%= render :partial => 'addjour', :locals => {:homework_attach => @homework,
|
2014-12-02 16:21:36 +08:00
|
|
|
|
:m_score => @m_score,
|
|
|
|
|
:cur_page => @cur_page,
|
|
|
|
|
:cur_type => @cur_type,
|
|
|
|
|
:is_teacher => @is_teacher} %>
|
2014-11-08 14:03:02 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!---ping_con end--->
|
|
|
|
|
|
|
|
|
|
<%= render :partial => 'histoey_new' %>
|
|
|
|
|
</div>
|
2014-11-12 17:02:35 +08:00
|
|
|
|
</div>
|