|
|
|
@ -37,7 +37,7 @@
|
|
|
|
|
<% @topics.each do |topic| %>
|
|
|
|
|
<div class="talkmain_box" style="border:none; margin-bottom:0; border-bottom: 1px dashed #d9d9d9;" id="topic<%= topic.id %>" nhname="container_board" mhname="container_board_reply">
|
|
|
|
|
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"42",:height=>"42"), user_path(topic.author),:class =>'talkmain_pic fl' %>
|
|
|
|
|
<div class="talkmain_txt fl mt5 f14">
|
|
|
|
|
<div class="talkmain_txt fl mt5 f12">
|
|
|
|
|
<% author = topic.author.to_s %>
|
|
|
|
|
<div style="max-width:120px;white-space:nowrap;overflow:hidden;float:left;text-overflow:ellipsis;">
|
|
|
|
|
<%= link_to User.current.member_of_course?(@board.course) ? "#{topic.author.show_name}(#{topic.author.login})" : "#{topic.author}" , user_path(topic.author),
|
|
|
|
@ -48,7 +48,7 @@
|
|
|
|
|
|
|
|
|
|
<p class="talkmain_tit fl fb break_word f14" title="<%= h(topic.subject) %>" style="width:auto;float:left;max-width:360px;white-space:nowrap;overflow:hidden;float:left;text-overflow:ellipsis;"> <%= h(topic.subject) %></p>
|
|
|
|
|
<% if topic.course_editable_by?(User.current) %>
|
|
|
|
|
<a href="javascript:void(0)" nhname="showbtn" style="color: #426e9a;float: right;
|
|
|
|
|
<a href="javascript:void(0)" nhname="showbtn" class="linkBlue" style="float: right;
|
|
|
|
|
margin-right: 10px;"><%= l(:button_edit) %></a>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
@ -120,7 +120,7 @@
|
|
|
|
|
<%= l(:label_activity_time)%>: <%= format_time topic.created_on %>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<a href="javascript:void(0)" nhname="showbtn_reply" class="c_dblue fr f14" style="margin-right:10px;"><%= l(:button_reply) %></a>
|
|
|
|
|
<a href="javascript:void(0)" nhname="showbtn_reply" class="linkBlue fr f12" style="margin-right:10px;"><%= l(:button_reply) %></a>
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
@ -171,7 +171,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<input nhname="nh_content_val" value="<%= message.content %>" type="hidden"/>
|
|
|
|
|
<br/><div class="cl"></div>
|
|
|
|
|
<span class=" c_grey fl f14"><%= format_time(message.created_on) %></span>
|
|
|
|
|
<span class=" c_grey fl f12"><%= format_time(message.created_on) %></span>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
|
|
|
|
|
l(:button_delete),
|
|
|
|
@ -179,13 +179,13 @@
|
|
|
|
|
:method => :post,
|
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
|
:title => l(:button_delete),
|
|
|
|
|
:class => ' c_dblue fr f14'
|
|
|
|
|
:class => ' linkBlue fr f12'
|
|
|
|
|
) if message.course_destroyable_by?(User.current) %>
|
|
|
|
|
<%= link_to(
|
|
|
|
|
l(:button_reply),
|
|
|
|
|
'javascript:;',
|
|
|
|
|
:nhname =>'showbtn_child_reply',
|
|
|
|
|
:class => ' c_dblue fr f14',
|
|
|
|
|
:class => ' linkBlue fr f12',
|
|
|
|
|
:style => 'margin-right: 10px;',
|
|
|
|
|
'data-topic-id' =>message.id,
|
|
|
|
|
:title => l(:button_reply)) if !topic.locked? && authorize_for('messages', 'reply') %>
|
|
|
|
|