This commit is contained in:
albert
2013-03-18 17:12:44 -07:00
parent bd6c8a5e90
commit f5240d06fe
3 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,9 @@
</ul>
<h3>Body</h3>
<%= format_text(@dmail.body) %>
<div class="prose">
<%= format_text(@dmail.body) %>
</div>
<p>
<%= link_to "Respond", new_dmail_path(:respond_to_id => @dmail) %>

View File

@@ -10,7 +10,7 @@
<li><%= link_to "Reply", new_forum_post_path(:topic_id => @forum_topic.id) %></li>
<% if !@forum_topic.new_record? && @forum_topic.editable_by?(CurrentUser.user) %>
<li><%= link_to "Edit", edit_forum_topic_path(@forum_topic) %></li>
<% if CurrentUser.is_moderator? %>
<% if CurrentUser.is_janitor? %>
<li><%= link_to "Delete", forum_topic_path(@forum_topic), :remote => true, :method => :delete, :confirm => "Do you want to delete this forum topic?" %></li>
<% end %>
<% end %>

View File

@@ -6,3 +6,5 @@ ActiveRecord::Base.connection.execute("set statement_timeout = 0")
Tag.find_each do |tag|
tag.fix_post_count
end
ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id where updater_id <> creator_id")