The code below shows all the pages in that channel active. I just want to show the page the users is on. As it is set up now all the items in the menu are .active. What am I doing wrong.
<div class="panel-body">
<ul class="nav nav-stacked">
{exp:channel:entries channel="{segment_1}" dynamic="no"}
<li class="{if segment_1 == "{segment_1}"}active {/if}"><a href="{comment_auto_path}/{url_title}">{title}</a></li>
{/exp:channel:entries}
</ul></div>