project-dropdown.ejs 886 B

123456789101112131415161718
  1. <% links.forEach(link => { %>
  2. <% if(link.dropdown) { %>
  3. <div class="dropdown" style="display: inline;">
  4. <button class="btn btn-outline-secondary dropdown-toggle <%- link.disabled %>" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  5. <%= link.name %>
  6. </button>
  7. <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
  8. <% link.links.forEach(sublink => { %>
  9. <a class="dropdown-item <%- link.disabled %>" href="<%= sublink.url %>"><%= sublink.name %></a>
  10. <% }); %>
  11. </div>
  12. </div>
  13. <% } else { %>
  14. <a role="button" class="btn btn-outline-secondary <%- link.disabled %>" href="<%- link.url %>">
  15. <%= link.name %>
  16. </a>
  17. <% } %>
  18. <% }); %>