<% links.forEach(link => { %>
    <% if(link.dropdown) { %>
        <div class="dropdown" style="display: inline;">
            <button class="btn btn-outline-secondary dropdown-toggle <%- link.disabled %>" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              <%= link.name %>
            </button>
            <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
                <% link.links.forEach(sublink => { %>
                    <a class="dropdown-item <%- link.disabled %>" href="<%= get_s3_link(sublink, project) %>"><%= sublink.name %></a>      
                <% }); %>
            </div>
        </div> 
    <% } else { %>
        <a role="button" class="btn btn-outline-secondary <%- link.disabled %>" href="<%- link.url %>">
            <%= link.name %>
        </a>
    <% } %>
<% }); %>
