123456789101112131415161718 |
- <% 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="<%= sublink.url %>"><%= sublink.name %></a>
- <% }); %>
- </div>
- </div>
- <% } else { %>
- <a role="button" class="btn btn-outline-secondary <%- link.disabled %>" href="<%- link.url %>">
- <%= link.name %>
- </a>
- <% } %>
- <% }); %>
|