{{define "title"}}Acceuil{{end}}
{{define "content"}}
	<h1>Images</h1>
	{{template "imgspage" .}}
	<noscript>
		{{if ne .Data.Page 0}}
			{{if ne .Data.UserImpersonation ""}}
			<a href="/imgs?page={{add .Data.Page -1}}&user={{.UserImpersonation}}">Previous page</a>
			{{else}}
			<a href="/imgs?page={{add .Data.Page -1}}">Previous page</a>
			{{end}}
			{{if lt .Data.End .Data.NbFiles}}
			|
			{{end}}
		{{end}}
		{{if lt .Data.End .Data.NbFiles}}
			{{if ne .Data.UserImpersonation ""}}
			<a href="/imgs?page={{add .Data.Page 1}}&user={{.Data.UserImpersonation}}">Next page</a>
			{{else}}
			<a href="/imgs?page={{add .Data.Page 1}}">Next page</a>
			{{end}}
		{{end}}
	</noscript>
	<br/><span>{{.Data.NbFiles}} images</span>
{{end}}
