Merge branch 'Homework' of http://repository.trustie.net/xianbo/trustie2 into Homework

This commit is contained in:
sw 2014-11-02 13:18:35 +08:00
commit 27aca11715
6 changed files with 23 additions and 21 deletions

View File

@ -1,4 +1,4 @@
<div>评分:
<%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %>
<!-- <span style="font-size: 11px">(您可以对作业进行多次评价,以最后一次评价为最终结果)</span>-->
<span style="font-size: 11px">(您可以对作业进行多次评价,以最后一次评价为最终结果)</span>
</div>

View File

@ -39,11 +39,11 @@
:remote => true,:method => 'post', :title => l(:button_quote))%>
<% end %>
</span>
<span class="font_lighter" style="float: right">
<span class="font_lighter" style="float: right">
<%= l(:label_bids_published) %>&nbsp;
<%= time_tag(journal.created_on).html_safe %>&nbsp;
<%= l(:label_bids_published_ago) %>
</span>
</span>
</div>
<div style="clear: both;"></div>
<% ids = 'project_respond_form_'+ journal.id.to_s%>

View File

@ -8,6 +8,7 @@
//如果要做成点击后再转到请将<li>中的onmouseover 改成 onclick;
//]]>
</script>
<%= javascript_include_tag 'seems_rateable/jRating', 'seems_rateable/rateable'%>
<div id="popbox">
<div class="ping_con">
<h2><%= @homework.name %></h2>
@ -48,7 +49,7 @@
</p>
<div class="ping_star">
评分:
<%= l(:label_work_rating) %>
<%= rating_for @homework, dimension: :quality, class: 'rateable div_inline' %>
</div>
<div class="cl"></div>

View File

@ -1,6 +1,6 @@
<% id = "journal_reply_ul_" + journal.id.to_s%>
<div class="messages-for-user-reply" id = '<%= id %>' >
<div id = '<%= id %>' >
<% fetch_user_leaveWord_reply(journal).each do |reply|%>
<%= render :partial => "words/journal_reply_items", :locals => {:reply => reply, :journal => journal, :m_reply_id => reply} %>
<% end %>

View File

@ -1,16 +1,15 @@
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
<% ids_r = 'reply_respond_form_'+ reply.id.to_s %>
<div id='word_li_<%=reply.id.to_s%>' onmouseover="$('#<%= ids_r %>').show()" onmouseout="$('#<%= ids_r %>').hide()">
<span class="portrait">
<%= image_tag url_to_avatar(reply.user), :class => "avatar-3" %>
</span>
<div class="message-body">
<div class="recall" id='word_li_<%=reply.id.to_s%>' onmouseover="$('#<%= ids_r %>').show()" onmouseout="$('#<%= ids_r %>').hide()">
<div class="recall_head">
<%= image_tag url_to_avatar(reply.user) %>
</div>
<div class="recall_con">
<% id = 'project_respond_form_'+ reply.id.to_s %>
<p>
<span>
<%= link_to reply.user.name, user_path(reply.user) %>
:&nbsp;
</span>
<%= link_to reply.user.name, user_path(reply.user) %>
回复
<%= link_to reply.at_user.name,user_path(reply.at_user) %>
<p>
<span class="message-notes">
<%= reply.notes %>
</span>
@ -19,15 +18,15 @@
<span class="time">
<%= format_time reply.created_on %>
</span>
<span style="display: none; margin-left: 4px;" id='<%=ids_r%>' >
<% if reply_allow %>
<%= link_to l(:label_projects_feedback_respond),'',
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{id}'), $('##{id} textarea'), '#{l(:label_reply_plural)} #{m_reply_id.user.name}: '); return false;"} %>
<% end %>
<span class="ping_disfoot" style="display: none; margin-left: 4px;" id='<%=ids_r%>' >
<% if @user == User.current || User.current.admin? || reply.user.id == User.current.id %>
<%= link_to(l(:label_newfeedback_delete), {:controller => 'words', :action => 'destroy', :object_id => reply, :user_id => reply.user},
:remote => true, :confirm => l(:text_are_you_sure), :method => 'delete', :class => "delete", :title => l(:button_delete)) %>
<% end %>
<% if reply_allow %>
<%= link_to l(:label_projects_feedback_respond),'',
{:focus => 'project_respond', :onclick => "toggleAndSettingWordsVal($('##{id}'), $('##{id} textarea'), '#{l(:label_reply_plural)} #{m_reply_id.user.name}: '); return false;"} %>
<% end %>
</span>
</p>
</div>

View File

@ -88,8 +88,10 @@ a:hover.ping_sub{ background:#14a8b9;}
.recall{ border-top:1px solid #CCC; padding:5px 0;}
.recall_head{ float:left;}
.recall_head a{ display:block; width:30px; height:30px; border:1px solid #CCC; padding:1px;}
.recall_head img{ height:30px; width:30px;}
.recall_head a:hover{border:1px solid #15bccf;}
.recall_con{ float:left;color:#777777; width:335px; margin-left:10px; }
.recall_head img:hover{border:1px solid #15bccf;}
.recall_con{ float:left;color:#777777; width:90%; margin-left:10px; }
.recall_con a{ color:#15bccf; }
.ping_list{ margin-top:15px;}