소스 검색

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>