|  |  | @ -53,90 +53,65 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         /*border-radius: 10px;*/ |  |  |  |         /*border-radius: 10px;*/ | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  | </style> |  |  |  | </style> | 
			
		
	
		
		
			
				
					
					|  |  |  | <div class="lz"> |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   <!-- 在这里添加赞和踩--> |  |  |  | <div class="project_r_h"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   <span id="praise_tread" style="float: right"> |  |  |  |   <h2 class="project_h2"><%= l(:label_board) %></h2> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     <%= render :partial => "/praise_tread/praise_tread",:locals => {:obj => @topic,:show_flag => true,:user_id =>User.current.id,:horizontal => true}%> |  |  |  | </div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   </span> |  |  |  | <div class="problem_main"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   <div class="contextual"> |  |  |  |   <div class="ping_dispic"><%= link_to image_tag(url_to_avatar(@topic.author),:width => '46',:height => '46'), user_path(@topic.author) %></div> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   <div class="talk_txt fl"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     <p class="problem_tit fl fb" ><%= link_to @topic.subject, course_boards_path(@topic.course),title: @topic.subject.to_s %></p> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     <br/> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     <p>由<%= link_to_user_header @topic.author,false,:class=> 'problem_name' %> 添加于<%= format_time(@topic.created_on) %></p> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   <!-- <a class="talk_edit fr">删除</a><a class="talk_edit fr">编辑</a><a class="talk_edit fr">置顶</a> --> | 
			
		
	
		
		
			
				
					
					|  |  |  |   <%= watcher_link(@topic, User.current) %> |  |  |  |   <%= watcher_link(@topic, User.current) %> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <%= link_to( |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 l(:button_quote), |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 {:action => 'quote', :id => @topic}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :remote => true, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :method => 'get', |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :class => 'icon icon-comment', |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %> |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   <%= link_to( |  |  |  |   <%= link_to( | 
			
		
	
		
		
			
				
					
					|  |  |  |               l(:button_edit), |  |  |  |               l(:button_edit), | 
			
		
	
		
		
			
				
					
					|  |  |  |               {:action => 'edit', :id => @topic}, |  |  |  |               {:action => 'edit', :id => @topic}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :class => 'icon icon-edit' |  |  |  |               :class => 'talk_edit fr' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       ) if @message.course_editable_by?(User.current) %> |  |  |  |       ) if @message.course_editable_by?(User.current) %> | 
			
		
	
		
		
			
				
					
					|  |  |  |   <%= link_to( |  |  |  |   <%= link_to( | 
			
		
	
		
		
			
				
					
					|  |  |  |               l(:button_delete), |  |  |  |               l(:button_delete), | 
			
		
	
		
		
			
				
					
					|  |  |  |               {:action => 'destroy', :id => @topic}, |  |  |  |               {:action => 'destroy', :id => @topic}, | 
			
		
	
		
		
			
				
					
					|  |  |  |               :method => :post, |  |  |  |               :method => :post, | 
			
		
	
		
		
			
				
					
					|  |  |  |               :data => {:confirm => l(:text_are_you_sure)}, |  |  |  |               :data => {:confirm => l(:text_are_you_sure)}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :class => 'icon icon-del' |  |  |  |               :class => 'talk_edit fr' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       ) if @message.course_destroyable_by?(User.current) %> |  |  |  |       ) if @message.course_destroyable_by?(User.current) %> | 
			
		
	
		
		
			
				
					
					|  |  |  |   </div> |  |  |  |   <div class="cl"></div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |   <div class="talk_info mb10"><%= textilizable(@topic, :content) %></div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   <div class="lz-left"> |  |  |  |   <div class="talk_info mb10"><%= link_to_attachments @topic, :author => false %></div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     <div class=""> |  |  |  |   <!-- <a href="#" class=" link_file ml60">附件:爱覅俄方if.zip(27.5kB)</a>--> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       <%= link_to image_tag(url_to_avatar(@topic.author), :class => "avatar"), user_path(@topic.author) %> |  |  |  |   <div class="cl"></div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <p class=""> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <%= link_to @topic.author, user_path(@topic.author) %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </p> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   </div> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   <div class="memo-section"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <div class="memo-title <%= @topic.sticky? ? 'sticky' : '' %> <%= @topic.locked? ? 'locked' : '' %>" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% if @project %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <%= label_tag l(:field_subject) %>: <%= link_to @topic.subject, project_boards_path(@topic.project),title: @topic.subject.to_s %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% elsif @course %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <%= label_tag l(:field_subject) %>: <%= link_to @topic.subject, course_boards_path(@topic.course),title: @topic.subject.to_s %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% end %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <div class="memo-content"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <%= textilizable(@topic, :content) %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <%= link_to_attachments @topic, :author => false %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <div class="memo-timestamp"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <div style="float: left"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <%= authoring @topic.created_on, @topic.author %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       </div> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <div style="float: right"> |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   <% if User.current.logged? %> |  |  |  |   <% if User.current.logged? %> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %> |  |  |  |       <%= toggle_link l(:button_reply), "reply", :focus => 'message_content',:class => 'talk_edit fr' %> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   <% else %> |  |  |  |   <% else %> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <%= link_to l(:button_reply), signin_path %> |  |  |  |       <%= link_to l(:button_reply), signin_path,:class => 'talk_edit fr' %> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   <% end %> |  |  |  |   <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       </div> |  |  |  |   <%= link_to( | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |               l(:button_quote), | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   </div> |  |  |  |               {:action => 'quote', :id => @topic}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   <br /> |  |  |  |               :remote => true, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | </div> |  |  |  |               :method => 'get', | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |               :class => 'talk_edit fr', | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               :remote => true) if !@topic.locked? && authorize_for('messages', 'reply') %> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   <div class="cl"></div> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | </div><!--讨论主类容 end--> | 
			
		
	
		
		
			
				
					
					|  |  |  | <% unless @replies.empty? %> |  |  |  | <% unless @replies.empty? %> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <br /> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <br /> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <br /> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <br /> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <h3 class="comments"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <%= l(:label_reply_plural) %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       (<%= @reply_count %>) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </h3> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     <% reply_count = 0 %> |  |  |  |     <% reply_count = 0 %> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <% @replies.each do |message| %> |  |  |  |     <% @replies.each do |message| %> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <div class="message reply" id="<%= "message-#{message.id}" %>"> |  |  |  |         <div class="ping_C mb10" id="<%= "message-#{message.id}" %>"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |           <div class="ping_dispic"><%= link_to image_tag(url_to_avatar(message.author), :width => '46',:height => '46'), user_path(message.author) %></div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           <table class="borad-text-list"> |  |  |  |           <div class="ping_discon"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             <tr> |  |  |  |             <div class="ping_distop"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <td rowspan="3" valign="top" width="60px"> |  |  |  |               <%= link_to_user_header message.author,false,:class => 'c_blue fb fl mb10 ' %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 <%= link_to image_tag(url_to_avatar(message.author), :class => "avatar"), user_path(message.author) %> |  |  |  |               <span class="c_grey fr"><%= format_time(message.created_on) %></span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               </td> |  |  |  |               <div class="cl"></div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               <td> |  |  |  |               <%= textilizable message,:content,:attachments => message.attachments %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 <div class="contextual-borad"> |  |  |  |               <%= link_to_attachments message, :author => false %> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <div class="ping_disfoot"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <%= link_to( |  |  |  |               <%= link_to( | 
			
		
	
		
		
			
				
					
					|  |  |  |                           l(:button_quote), |  |  |  |                           l(:button_quote), | 
			
		
	
		
		
			
				
					
					|  |  |  |                           {:action => 'quote', :id => message}, |  |  |  |                           {:action => 'quote', :id => message}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -157,35 +132,18 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                           :data => {:confirm => l(:text_are_you_sure)}, |  |  |  |                           :data => {:confirm => l(:text_are_you_sure)}, | 
			
		
	
		
		
			
				
					
					|  |  |  |                           :title => l(:button_delete) |  |  |  |                           :title => l(:button_delete) | 
			
		
	
		
		
			
				
					
					|  |  |  |                   ) if message.course_destroyable_by?(User.current) %> |  |  |  |                   ) if message.course_destroyable_by?(User.current) %> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 </div></td> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </tr> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <tr> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               <td class="comments"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <div class="wiki" style="width: 100%;word-break: break-all;word-wrap: break-word;"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                   <%= textilizable message,:content,:attachments => message.attachments %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </div> |  |  |  |             </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <%= link_to_attachments message, :author => false %> |  |  |  |             <div class="cl"></div> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               </td> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </tr> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <tr> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               <td class="font_lighter" style="float: left"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <%= authoring message.created_on, message.author %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               </td> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </tr> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           </table> |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           </div> |  |  |  |           </div> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |           <div class="cl"></div> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </div><!---留言内容--> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <% end %> |  |  |  |     <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <div class="pagination"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | <% end %> |  |  |  | <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  | <% if !@topic.locked? && authorize_for_course('messages', 'reply') %> |  |  |  | <% if !@topic.locked? && authorize_for_course('messages', 'reply') %> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <div id="reply" style="display:none;"> |  |  |  |     <div id="reply" style="display:none;"> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %> |  |  |  |       <%= form_for @reply, :as => :reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <%= render :partial => 'form', :locals => {:f => f, :replying => true} %> |  |  |  |           <%= render :partial => 'form_course', :locals => {:f => f, :replying => true} %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           <input type="button" class="enterprise" value="<%=l(:button_submit) %>" onclick="submit_message_replay();" > |  |  |  |           <a href="#" onclick="submit_message_replay();"class="blue_btn fl c_white"><%= l(:button_submit)%></a> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       <% end %> |  |  |  |       <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <div id="preview" class="wiki"></div> |  |  |  |       <div id="preview" class="wiki"></div> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |     </div> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |