编辑贴吧tag的权限问题

This commit is contained in:
lizanle 2015-09-19 10:27:39 +08:00
parent fa41c03a82
commit ba240c72b7
1 changed files with 2 additions and 0 deletions

View File

@ -101,7 +101,9 @@
<div id="forum_tag_list"> <div id="forum_tag_list">
<%= render :partial=>'forums/forum_tag_list',:locals=>{:forum=>@forum}%> <%= render :partial=>'forums/forum_tag_list',:locals=>{:forum=>@forum}%>
</div> </div>
<% if(@forum.creator.id == User.current.id)%>
<a href="javascript:void(0)" class="yellowBtn f_l" onclick="$('#add_tag01').slideToggle();">+ 添加标签</a> <a href="javascript:void(0)" class="yellowBtn f_l" onclick="$('#add_tag01').slideToggle();">+ 添加标签</a>
<% end %>
<span id="add_tag01" style="display:none; vertical-align: middle;" class="ml10 f_l"> <span id="add_tag01" style="display:none; vertical-align: middle;" class="ml10 f_l">
<input type="text" name="addTag" size="20" class="isTxt w90 f_l" maxlength="100" /> <input type="text" name="addTag" size="20" class="isTxt w90 f_l" maxlength="100" />
<input type="button" class="submit f_l" onclick="addTag();" /> <input type="button" class="submit f_l" onclick="addTag();" />