Commit 2d2bf8cb authored by 神楽坂玲奈's avatar 神楽坂玲奈

用户组模型初步

git-svn-id: http://glupx.googlecode.com/svn/trunk/Reliz@82 189f022a-1064-8ae2-3e6f-c4a67275c50b
parent 2704d967
class Role < ActiveRecord::Base
def to_s
"<em>#{name}</em>".html_safe
end
end
......@@ -71,11 +71,11 @@
<label>&nbsp;</label>
<span id="thread_<%= topic.id %>"><%= topic %></span>
<%= link_to(t('topic.control.delete'), control_topic_path(topic, :deleted => 1)) %>
<%= link_to(t('topic.control.digest'), control_topic_path(topic, :digest => 1)) %>
<%= link_to(t('topic.control.displayorder'), control_topic_path(topic, :displayorder => 1)) %>
<%= link_to(t('topic.control.lock'), control_topic_path(topic, :locked => 1)) %>
<%= link_to(t('topic.control.highlight'), control_topic_path(topic, :highlight => 0xFF0000)) %>
<%= link_to(t('topic.control.delete'), control_topic_path(topic, :deleted => 1)) if @corrent_user.role.topic_delete %>
<%= link_to(t('topic.control.digest'), control_topic_path(topic, :digest => 1)) if @corrent_user.role.topic_digest > 0 %>
<%= link_to(t('topic.control.displayorder'), control_topic_path(topic, :displayorder => 1)) if @corrent_user.role.topic_displayorder > 0 %>
<%= link_to(t('topic.control.lock'), control_topic_path(topic, :locked => 1)) if @corrent_user.role.topic_lock %>
<%= link_to(t('topic.control.highlight'), control_topic_path(topic, :highlight => 0xFF0000)) if @corrent_user.role.topic_highlight %>
</th>
<td class="author">
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment