非班级成员邀请码显示为*****
This commit is contained in:
parent
0564ddb6ea
commit
812481d5fa
|
@ -28,7 +28,15 @@
|
||||||
<%= image_tag(url_to_avatar(@course), :width => "110", :height => "110", :alt => "班级logo") %>
|
<%= image_tag(url_to_avatar(@course), :width => "110", :height => "110", :alt => "班级logo") %>
|
||||||
</div>
|
</div>
|
||||||
<div class="sy_class_id fl">
|
<div class="sy_class_id fl">
|
||||||
<p>邀请码<br /><span class="sy_corange"><%=@course.generate_invite_code %></span></p>
|
<p>邀请码<br />
|
||||||
|
<span class="sy_corange">
|
||||||
|
<% if User.current.admin? || User.current.member_of_course?(@course) %>
|
||||||
|
<%=@course.generate_invite_code %>
|
||||||
|
<% else %>
|
||||||
|
*****
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="sy_class_info fl ml15">
|
<div class="sy_class_info fl ml15">
|
||||||
<div class="sy_class_titbox">
|
<div class="sy_class_titbox">
|
||||||
|
|
Loading…
Reference in New Issue