1
0
Fork 0

Minor fixes

This commit is contained in:
magnolia-fan 2011-12-07 09:44:46 +04:00
parent 2a5a6c12a0
commit c050afefed
3 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ class window.Search
, 10000
else if data.status is 'corrected'
_search.loadArtistData data.correct_name
else if data.status == 'not_found'
else if data.status is 'not_found'
_search.hideSpinner()
alert "Not found"
else

View File

@ -13,7 +13,7 @@ class ArtistController < ApplicationController
unless @artist
results = MusicBrainz::Artist.search(artist_name)
if results.empty?
return render json: { status: 'not_found' }, status: 404
return render json: { status: 'not_found' }
end
best_match = results[0][:sort_name]
if best_match != artist_name and similar_names(artist_name, best_match)

View File

@ -6,8 +6,8 @@
= image_tag @data[:pic_url] unless @data[:pic_url].nil?
.span7.columns.desc
%h2
=@data[:name]
%small= " "+@data[:original_name].to_s
= @data[:name]
%small= " "+@data[:original_name] unless @data[:name] == @data[:original_name]
%p= @data[:desc].html_safe unless @data[:desc].nil?
- unless @data[:artist_links].empty?
.service-icons