only teacher can know his tag and modify it
This commit is contained in:
parent
08f1453dbd
commit
743ef9856a
|
@ -149,6 +149,8 @@
|
||||||
</div>
|
</div>
|
||||||
<!--Modified by nie-->
|
<!--Modified by nie-->
|
||||||
<!--tags-->
|
<!--tags-->
|
||||||
|
<% if User.current.logged? %>
|
||||||
|
<% if User.current.admin?||User.current.login==@user.login%>
|
||||||
<div class="user_underline"></div>
|
<div class="user_underline"></div>
|
||||||
<!-- <div class="user_fans"> -->
|
<!-- <div class="user_fans"> -->
|
||||||
<!-- added by william -for tag -->
|
<!-- added by william -for tag -->
|
||||||
|
@ -158,6 +160,8 @@
|
||||||
<%= render :partial => 'tags/tag', :locals => {:obj => @user,:object_flag => "1"}%>
|
<%= render :partial => 'tags/tag', :locals => {:obj => @user,:object_flag => "1"}%>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
<!-- </div> -->
|
<!-- </div> -->
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,8 @@
|
||||||
<!-- 1代表是user类型 2代表是project类型 3代表是issue类型 -->
|
<!-- 1代表是user类型 2代表是project类型 3代表是issue类型 -->
|
||||||
<!-- 3 代表的是issue 当是issue是 处理方式与前2个对象不同 -->
|
<!-- 3 代表的是issue 当是issue是 处理方式与前2个对象不同 -->
|
||||||
<% if object_flag == '3' %>
|
<% if object_flag == '3' %>
|
||||||
<span><%= image_tag("/images/sidebar/tags.png") %></span>
|
<span><%= image_tag("/images/sidebTar/tags.png") %></span>
|
||||||
<span class="font_title_tag"><%= l(:label_tag) %>:</span>
|
<span class="font_title_tag"><%= l(:label_tag) %>:</span>
|
||||||
|
|
||||||
<% if User.current.logged? %>
|
<% if User.current.logged? %>
|
||||||
<span> <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form-issue', {:focus => 'name-issue'} %></span>
|
<span> <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form-issue', {:focus => 'name-issue'} %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue