// 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" . }}Sillywordz!!!</title>
    <meta name="description" content="your friends' updates">
    <link rel="stylesheet" href="/assets/style.css?v=2"/>
    {{ 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="/">home</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>
<div class="status-number">
    I wrote {{ .Number }} words!</div> {{ if .Content}}
<p class="status-content">And I had this to say about it: {{ .ContentHtml }}</p> {{ end }}
{{ 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"
       min="1"
       max="1000000000"
       value="{{ .Number }}"
       required><br>What do you want to say about your project? (Optional)<br><div class="field"> <textarea class="edit-status" name="content" maxlength="140"
          placeholder="What project are you working on?" autofocus>{{ .Content }}</textarea>

</div>
<input type="submit" value="Submit">
{{ end }}
`,
}
