Initial commit: AI platform app (server, views, lib, data, deploy docs)
Made-with: Cursor
This commit is contained in:
8
views/partials/admin-button.ejs
Normal file
8
views/partials/admin-button.ejs
Normal file
@@ -0,0 +1,8 @@
|
||||
<%
|
||||
const label = typeof buttonLabel !== 'undefined' && buttonLabel ? buttonLabel : '관리자';
|
||||
%>
|
||||
<% if (typeof adminMode !== 'undefined' && adminMode) { %>
|
||||
<a href="/admin" class="top-action-link"><%= label %></a>
|
||||
<% } else { %>
|
||||
<button type="button" class="top-action-link" onclick="openAdminTokenModal()"><%= label %></button>
|
||||
<% } %>
|
||||
Reference in New Issue
Block a user