Procházet zdrojové kódy

Dont show None if bio is missing

Colin Powell před 2 roky
rodič
revize
c84a3072be
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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>