Quellcode durchsuchen

Dont show None if bio is missing

Colin Powell vor 2 Jahren
Ursprung
Commit
c84a3072be
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      vrobbler/templates/music/artist_detail.html

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

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