69 lines
2.1 KiB
HTML
69 lines
2.1 KiB
HTML
{{ define "top" }}
|
|
<div class="manager-top">
|
|
<div class="logging-buttom">
|
|
<a href="/logout">
|
|
<h1>{{ .UserName }} <Logout></h1>
|
|
</a>
|
|
</div>
|
|
<div class="site-button">
|
|
<a href="{{ .SiteURL }}">
|
|
<h1><Site></h1>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link rel="icon" type="/image/png" href="/static/img/favicon.png"/>
|
|
<link rel="stylesheet" href="/static/css/publish.css">
|
|
<link rel="stylesheet" href="/static/css/manager.css">
|
|
<link rel="stylesheet" href="/static/css/base.css">
|
|
<link rel="stylesheet" href="/static/css/top.css">
|
|
<title>{{ .Title }}</title>
|
|
</head>
|
|
<body>
|
|
{{ template "top" . }}
|
|
|
|
<div class="manager-publish">
|
|
<form enctype="multipart/form-data" action="/publish" method="post">
|
|
<label for="title"><Title></label>
|
|
<input type="text" class="title" name="title" onkeypress="return event.keyCode != 13;">
|
|
<input type="file" name="image" style="display:none;" id="browse" accept=".jpg, .jpeg, .png">
|
|
<label type="submit" class="browse fake-button" for="browse" class="fake-button"><Browse></label>
|
|
<input type="submit" style="display:none;" id="publish">
|
|
<label type="submit" class="publish fake-button" for="publish"><Publish></label>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="manager-list">
|
|
<table>
|
|
<tr>
|
|
<th scope="col"><Title></th>
|
|
<th scope="col"><Date></th>
|
|
<th scope="col"><Image></th>
|
|
<th scope="col"><Actions></th>
|
|
</tr>
|
|
{{ if .Comics }}
|
|
{{ range $comic := .Comics }}
|
|
<tr>
|
|
<td>{{ $comic.Title }}</td>
|
|
<td>{{ $comic.Date }}</td>
|
|
<td>
|
|
<a href="/media/{{ $comic.Image }}">
|
|
{{ $comic.Image }}
|
|
</a>
|
|
</td>
|
|
<td class="actions">
|
|
<a href="/edit/{{ $comic.No }}"><Edit></a>
|
|
<a href="/remove/{{ $comic.No }}"><Remove></a>
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ end }}
|
|
</table>
|
|
</div>
|
|
</body>
|
|
</html> |