瀏覽代碼

Dont show None if bio is missing

Colin Powell 2 年之前
父節點
當前提交
c84a3072be
共有 1 個文件被更改,包括 2 次插入0 次删除
  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>