Some bug fixes
This commit is contained in:
@@ -9,8 +9,12 @@ class Artist < ActiveRecord::Base
|
||||
def status_str
|
||||
%w(loading ok fail)[self.status]
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def prepare_description
|
||||
self.desc.gsub! /[\[<].*?[\]>]/, '' unless self.desc.nil?
|
||||
self.desc.gsub!(/[\[<].*?[\]>]/, '') unless self.desc.nil?
|
||||
rescue
|
||||
# WTF?!
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
= image_tag @artist.pic_url unless @artist.pic_url.nil?
|
||||
.span7.columns.desc
|
||||
%h2= @artist.name
|
||||
= @artist.desc unless @artist.desc.nil?
|
||||
= @artist.desc.html_safe unless @artist.desc.nil?
|
||||
- unless @artist.artist_links.empty?
|
||||
.service-icons
|
||||
- @artist.artist_links.each do |service|
|
||||
|
||||
Reference in New Issue
Block a user