Merge pull request #3015 from evazion/feat-replace-images

Fix #2949: Sample image replacement ability
This commit is contained in:
Albert Yi
2017-05-12 17:11:29 -07:00
committed by GitHub
12 changed files with 295 additions and 26 deletions

View File

@@ -61,6 +61,9 @@ module DelayedJobsHelper
when "Pool#update_category_pseudo_tags_for_posts"
"<strong>update pool category pseudo tags for posts</strong>"
when "Post.delete_files"
"<strong>delete old files</strong>"
else
h(job.name)
end
@@ -122,6 +125,9 @@ module DelayedJobsHelper
when "Pool#update_category_pseudo_tags_for_posts"
%{<a href="/pools/#{job.payload_object.id}">#{h(job.payload_object.name)}</a>}
when "Post.delete_files"
%{<a href="/posts/#{job.payload_object.args.first}">post ##{job.payload_object.args.first}</a>}
else
h(job.handler)
end