<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Changes</title>
    <link rel="stylesheet" href="/css/default.css">
  </head>
  <body>
		{{> menu}}
		<div id="content">
			<div id="changes">
				<h1>Changes</h1>

				{{#filter}}
				<form id="filter" action="/changes">
					<strong>Filter</strong><br>
					<input type="checkbox" id="minor" name="minor" {{#minor}}checked{{/minor}}>
					<label for="minor">include minor changes</label><br>
					<input type="checkbox" id="all" name="all" {{#all}}checked{{/all}}>
					<label for="all">list all changes (not just the last one)</label><br>
					<label for="id" class="wide">by page name </label>
					<input type="text" class="wide" id="name" name="id" value="{{id}}"><br>
					<label for="author" class="wide">by author name </label>
					<input type="text" class="wide" id="author" name="author" value="{{author}}"><br>
					<label>limit to <input type="number" class="narrow" name="n" value="{{n}}"> items</label><br>
					<input type="submit" value="OK">
				</form>
				{{/filter}}

				{{#changes}}
				{{#first}}<h2>{{date}}</h2><ul id="items">{{/first}}
				{{#day}}</ul><h2>{{date}}</h2><ul id="items">{{/day}}
				<li>
					{{time}}
					(<a href="/history/{{id}}">history</a>)
					{{#revision}}(<a href="/diff/{{id}}/{{to}}">diff</a>){{/revision}}
					<a href="/view/{{id}}/{{to}}">{{id}}</a> …
					{{#author}}<a href="/view/{{author}}">{{author}}</a>{{/author}}
					{{^author}}<span class="ip-code">{{#code}}<span class="c{{c}}">{{c}}</span>{{/code}}</span>{{/author}}
					{{#summary}}
					– {{summary}}
					{{/summary}}
					{{#minor}}(minor){{/minor}}
				</li>
				{{#last}}</ul>{{/last}}
				{{/changes}}
				{{#empty}}
				<p><strong>There are no changes.</strong></p>
				{{/empty}}
			</div>
    </div>

    <div id="footer">
      <hr/>
      <p>
				<a href="/">Home</a>
      </p>
    </div>

  </body>
</html>
