Commits

Anonymous committed df11597 Draft

display twitter profile only if it exists

  • Participants
  • Parent commits 623dc78

Comments (0)

Files changed (1)

File delajozate/dz/templates/poslanec.html

 		{% endfor %}
 		<br />
 		<span class="org">{{ clanstvo.0.stranka|default_if_none:"Nepovezan poslanec" }}</span>
+		{% if oseba.twitter %}
 		<p>Twitter: <a href="https://twitter.com/{{oseba.twitter}}">{{oseba.twitter}}</a></p>
+		{% endif %}
 		<p>Email: {{oseba.email}}</p>
 	</li>
 	{% endwith %}