This commit is contained in:
albert
2013-02-17 23:57:22 -05:00
parent 327af0e93d
commit 11f069577d

View File

@@ -6,7 +6,8 @@ class UploadPresenter < Presenter
def status(template)
case @upload.status
when /duplicate: (\d+)/
template.link_to(@upload.status.gsub(/error: RuntimeError - /, ""), template.__send__(:post_path, $1))
dup_post_id = $1
template.link_to(@upload.status.gsub(/error: RuntimeError - /, ""), template.__send__(:post_path, dup_post_id))
else
@upload.status