|
|
@ -39,7 +39,7 @@
|
|
|
|
<%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>
|
|
|
|
<%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="talkmain_tit fl fb"> <%= h(topic.subject) %></p>
|
|
|
|
<p class="talkmain_tit fl fb"> <%= h(topic.subject) %></p>
|
|
|
|
<% if topic.editable_by?(User.current) %>
|
|
|
|
<% if topic.course_editable_by?(User.current) %>
|
|
|
|
<a href="javascript:void(0)" onclick="show_newtalk1('#about_newtalk<%= topic.id%>');" style="color: #426e9a;float: left;
|
|
|
|
<a href="javascript:void(0)" onclick="show_newtalk1('#about_newtalk<%= topic.id%>');" style="color: #426e9a;float: left;
|
|
|
|
margin-left: 20px;"><%= l(:button_edit) %></a>
|
|
|
|
margin-left: 20px;"><%= l(:button_edit) %></a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
@ -75,7 +75,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div><!--讨论主类容 end-->
|
|
|
|
</div><!--讨论主类容 end-->
|
|
|
|
<div class="talk_new ml15 mb10" id="about_newtalk<%=topic.id%>" style="display:<%= !@flag.nil? && @flag=='true' ? 'block' : 'none' %>;">
|
|
|
|
<div class="talk_new ml15 mb10" id="about_newtalk<%=topic.id%>" style="display: none">
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
<%= render :partial => 'edit',locals: {:topic => topic} %>
|
|
|
|
<%= render :partial => 'edit',locals: {:topic => topic} %>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|