Goit

Simple and lightweight Git web server
git clone http://git.omkov.net/Goit
Log | Tree | Refs | README | Download

Goit/res/user/sessions.html (32 lines, 610 B) -rw-r--r-- blame download

012345678910111213141516171819202122232425262728293031
<!DOCTYPE html>
<html lang="en">
	<head>{{template "base/head" .}}</head>
	<body>
		<header>{{template "user/header" .}}</header><hr>
		<main>
			<table>
				<thead>
					<tr>
						<td><b>IP</b></td>
						<td><b>Seen</b></td>
						<td><b>Expiry</b></td>
						<td></td>
						<td></td>
					</tr>
				</thead>
				<tbody>
				{{range .Sessions}}
					<tr>
						<td>{{.Ip}}</a></td>
						<td>{{.Seen}}</td>
						<td>{{.Expiry}}</td>
						<td><a href="/user/sessions?revoke={{.Index}}">revoke</a></td>
						<td>{{.Current}}</td>
					</tr>
				{{end}}
				</tbody>
			</table>
		</main>
	</body>
</html>