- <% if (screens.length > 1) { %>
- <div class="dropdown project-screen-switcher">
- <button type="button" id="project-screen-switcher" class="btn btn-sm btn-outline-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><%= screen.name %></button>
- <div class="dropdown-menu dropdown-menu-right" aria-labelledby="project-screen-switcher">
- <% for (const item of screens) { %>
- <a class="dropdown-item<%= String(item.id) === String(screen.id) ? ' active' : '' %>" href="/projectscreen/<%= encodeURIComponent(item.id) %>"<% if (String(item.id) === String(screen.id)) { %> aria-current="page"<% } %>><%= item.name %></a>
- <% } %>
- </div>
- </div>
- <% } %>
|