I have the following code:
<div class="other_left_array" >
{% if followeds.followeds_posts_counts[key] > 0 %}
<a id="2" href="javascript:void(0);" class="left_array_trigger">
la
</a>
{% else %}
<a id="2" style="display: none" href="javascript:void(0);" class="left_array_trigger">
la
</a>
{% endif %}
</div>
I feel there is another more optimal way to write such a code, especially that the only difference between the two statements is : style="display: none"
. Your help is highly appreciated.