Browse Source

Dont show None if bio is missing

Colin Powell 2 years ago
parent
commit
c84a3072be
1 changed files with 2 additions and 0 deletions
  1. 2 0
      vrobbler/templates/music/artist_detail.html

+ 2 - 0
vrobbler/templates/music/artist_detail.html

@@ -18,8 +18,10 @@
     {% endif %}
     {% endif %}
     {% endif %}
     {% endif %}
     <div style="float:left; width:600px; margin-left:10px; ">
     <div style="float:left; width:600px; margin-left:10px; ">
+        {% if artist.biography %}
         <p>{{artist.biography|safe|linebreaks|truncatewords:160}}</p>
         <p>{{artist.biography|safe|linebreaks|truncatewords:160}}</p>
         <hr/>
         <hr/>
+        {% endif %}
         <p><a href="{{artist.mb_link}}">Musicbrainz</a></p>
         <p><a href="{{artist.mb_link}}">Musicbrainz</a></p>
     </div>
     </div>
 </div>
 </div>