<div class="btn-group pull-left space-right" id="branchList">
    <button class="btn dropdown-toggle" data-toggle="dropdown">browsing: <strong>{{ branch }}</strong> <span class="caret"></span></button>

    <div class="dropdown-menu">
        <div class="search">
            <input class="search" placeholder="Filter branch/tags" autofocus>
        </div>
    <ul class="unstyled list">
    <li class="dropdown-header">Branches</li>
    {% for item in branches %}
        <li><a href="{{ path('branch', {repo: repo, branch: item}) }}"><span class="item">{{ item }}</span></a></li>
    {% endfor %}
    {% if tags %}
    <li class="dropdown-header">Tags</li>
    {% for item in tags %}
        <li><a href="{{ path('branch', {repo: repo, branch: item}) }}"><span class="item">{{ item }}</span></a></li>
    {% endfor %}
    {% endif %}
    </ul>
    </div>
</div>