[minor] fixed TypeError: 'NoneType' object has no attribute '__getitem__'

This commit is contained in:
mbauskar
2017-10-13 19:44:27 +05:30
parent d6e5702361
commit a73099154f

View File

@@ -34,8 +34,8 @@
{% macro show_member(s) %}
<div class='col-sm-4' style='height: 130px; padding-bottom: 30px'>
<p>
<a class='bold' href="/{{ s.route }}">{{ s.title[:25] }}</a><br>
{{ s.introduction[:100] }}
<a class='bold' href="/{{ s.route }}">{{ s.title and s.title[:25] }}</a><br>
{{ s.introduction and s.introduction[:100] }}
</p>
</div>
{% endmacro %}