修改bug<项目--讨论区:不登录状态下讨论区的帖子是不能进行回复等操作的,建议直接跳转到登录窗口或给出相关提示信息>

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-11-01 16:57:20 +08:00
parent 12cf56d201
commit 14ca7bcf9c
2 changed files with 10 additions and 2 deletions

View File

@ -106,7 +106,11 @@
<%= authoring @topic.created_on, @topic.author %>
</div>
<div style="float: right">
<%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %>
<% if User.current.logged? %>
<%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %>
<% else %>
<%= link_to l(:button_reply), signin_path %>
<% end %>
</div>
</div>
</div>

View File

@ -111,7 +111,11 @@
<%= authoring @topic.created_on, @topic.author %>
</div>
<div style="float: right">
<%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %>
<% if User.current.logged? %>
<%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %>
<% else %>
<%= link_to l(:button_reply), signin_path %>
<% end %>
</div>
</div>
</div>