Mercurial > zeropaste
comparison app/helpers/pastes_helper.rb @ 181:500c09718fd7
Added fresh paste marker.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Fri, 01 Feb 2013 22:58:53 +0700 |
parents | dd5a154c17c7 |
children | 7c7b7906ebd9 |
comparison
equal
deleted
inserted
replaced
180:dd5a154c17c7 | 181:500c09718fd7 |
---|---|
1 module PastesHelper | 1 module PastesHelper |
2 def print_txt_create_result | 2 def print_txt_create_result |
3 unless @paste.errors.any? | 3 unless @paste.errors.any? |
4 url = paste_path @paste, :only_path => false | 4 url = paste_path @paste, :only_path => false |
5 "#{url} (key: #{@paste.key})" | 5 if @fresh |
6 "#{url} (key: #{@paste.key})" | |
7 else | |
8 url | |
9 end | |
6 else | 10 else |
7 'Failed' | 11 'Failed' |
8 end | 12 end |
9 end | 13 end |
10 end | 14 end |