Initial Commit
This commit is contained in:
commit
ef1c188807
16 files changed
+570
No files matched your search
@@ -0,0 +1,8 @@
|
||||
<%- include('head') %>
|
||||
<h1>MTG Leagues</h1>
|
||||
<ul><% leagues.forEach(l => { %><li><a href="/league/<%= l.id %>"><%= l.name %></a> (best <%= l.best_n %> sessions count)</li><% }) %></ul>
|
||||
<% if (admin) { %>
|
||||
<h2>New league</h2>
|
||||
<form method="post" action="/admin/league"><input name="name" placeholder="Name" required>
|
||||
<input name="best_n" type="number" min="1" value="6"> best sessions count <button>Create</button></form>
|
||||
<% } %>
|
||||
Reference in new issue
Block a user