// Code generated by go generate; DO NOT EDIT.

package handler

var TplCommonMap = map[string]string{
	"flash": `{{ define "flash" }}
{{ if . }}
<p class="flash">{{ . }}</p>
{{ end }}
{{ end }}`,
	"layout": `{{ define "layout" }}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ template "title" . }}Status Cafe</title>
    <meta name="description" content="your friends' updates">
    <link rel="stylesheet" href="/assets/style.css"/>
    {{ if .face }}
    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>{{ .face }}</text></svg>">
    {{ else }}
    <link rel="icon" href="/assets/favicon.ico">
    {{ end }}
    {{ template "head" . }}
</head>
<body>
    <header>
        <nav>
            <a href="/">status.cafe</a> <a href="https://forum.status.cafe">forum</a>
            {{ if .logged }}
            <a href="/settings">settings</a> <a href="/users/{{ .logged }}">{{ .logged }}</a> (<a href="/logout">logout</a>)
            {{ else }}
            <a href="/register">register</a> <a href="/login">login</a>
            {{ end }}</nav>
    </header>
    <main>
    {{ template "content" . }}
    </main>
    <footer>
    </footer>
</div>

</body>
</html>
{{ end }}
{{ define "head" }}{{ end }}
{{ define "title" }}{{ end }}`,
	"status": `{{ define "status" }}
<div class="status-username"><a href="/users/{{ .User }}">{{ .User }}</a> {{ .Face }} {{ .TimeAgo }}</div>
<p class="status-content">{{ .ContentHtml }}</p>
{{ end }}`,
	"status_form": `{{ define "status_form" }}
<div class="faces">
    {{ range $i, $v := faces }}
    <div class="radio">
        <input
                type="radio"
                id="face{{ $i }}"
                name="face"
                value="{{ $v }}"
                {{ if eq $i 0 }}
                {{ if or (eq $.Face $v) (eq $.Face "") }}checked{{ end }}
                {{ else }}
                {{ if eq $.Face $v }}checked{{ end }}
                {{ end }}>
        <label for="face{{ $i }}">{{ $v }}</label>
    </div>
    {{ end }}
</div>
<div class="number">
What's your current word count? 
<input type="number" name="number"        value="{{ .Number }}" min="1" max="1000000000" required>
<br><div class="field">
    <textarea class="edit-status" name="content" maxlength="140" placeholder="What project are you working on?" required autofocus>{{ .Content }}</textarea>
</div>
<input type="submit" value="Submit">
{{ end }}
`,
}
