fixes #945
This commit is contained in:
@@ -11,7 +11,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h3>Body</h3>
|
<h3>Body</h3>
|
||||||
<%= format_text(@dmail.body) %>
|
<div class="prose">
|
||||||
|
<%= format_text(@dmail.body) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<%= link_to "Respond", new_dmail_path(:respond_to_id => @dmail) %>
|
<%= link_to "Respond", new_dmail_path(:respond_to_id => @dmail) %>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<li><%= link_to "Reply", new_forum_post_path(:topic_id => @forum_topic.id) %></li>
|
<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) %>
|
<% if !@forum_topic.new_record? && @forum_topic.editable_by?(CurrentUser.user) %>
|
||||||
<li><%= link_to "Edit", edit_forum_topic_path(@forum_topic) %></li>
|
<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>
|
<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 %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -6,3 +6,5 @@ ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
|||||||
Tag.find_each do |tag|
|
Tag.find_each do |tag|
|
||||||
tag.fix_post_count
|
tag.fix_post_count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
ActiveRecord::Base.connection.execute("update comments set updater_id = creator_id where updater_id <> creator_id")
|
||||||
|
|||||||
Reference in New Issue
Block a user