* Removed unapprovals, added post flags and post appeals (still need to update tests)
* Restyled text
This commit is contained in:
@@ -33,10 +33,6 @@ module ApplicationHelper
|
||||
end
|
||||
end
|
||||
|
||||
def wait_image(html_id)
|
||||
('<img src="/images/wait.gif" style="display: none;" class="wait" id="' + html_id + '">').html_safe
|
||||
end
|
||||
|
||||
protected
|
||||
def nav_link_match(controller, url)
|
||||
url =~ case controller
|
||||
|
||||
9
app/helpers/post_appeals_helper.rb
Normal file
9
app/helpers/post_appeals_helper.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module PostAppealsHelper
|
||||
def post_appeal_reason(post)
|
||||
post.appeals.map do |appeal|
|
||||
content_tag("span", :class => "flag-and-reason-count") do
|
||||
appeal.reason + " (" + link_to(appeal.creator.name, :controller => "user", :action => "show", :id => appeal.creator_id) + ")"
|
||||
end
|
||||
end.join("; ")
|
||||
end
|
||||
end
|
||||
9
app/helpers/post_flags_helper.rb
Normal file
9
app/helpers/post_flags_helper.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module PostFlagsHelper
|
||||
def post_flag_reason(post)
|
||||
post.flags.map do |flag|
|
||||
content_tag("span", :class => "flag-and-reason-count") do
|
||||
flag.reason + " (" + link_to(flag.creator.name, :controller => "user", :action => "show", :id => flag.creator_id) + ")"
|
||||
end
|
||||
end.join("; ")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user