New Sign in

fierj

Public

Tiny personal git forge

← fierj / templates / thread_new.html
{{template "head" .}}
{{define "title"}}new thread - {{.Repo}} - fierj{{end}}
{{template "repo-header" .}}
{{template "repo-tabs" .}}

<div class="thread-new-form">
    <h2>New Thread</h2>
    <form method="POST" action="/{{.Repo}}/threads/new">
        <input type="hidden" name="csrf_token" value="{{.CSRF}}">
        {{if not .User}}
        <div class="form-group">
            <label for="guest_name">Your name (optional)</label>
            <input type="text" id="guest_name" name="guest_name" placeholder="Anonymous" maxlength="60">
        </div>
        {{end}}
        <div class="form-group">
            <label for="title">Title</label>
            <input type="text" id="title" name="title" placeholder="Brief summary" required>
        </div>
        <div class="form-group">
            <label for="body">Description</label>
            <textarea id="body" name="body" rows="8" placeholder="Detailed description (markdown supported)"></textarea>
        </div>
        <button type="submit" class="btn btn-primary">Create thread</button>
    </form>
    {{if not .User}}
    <p class="participate-hint">Posting without an account attributes this thread to "Anonymous" unless you give a
        name above. <a href="/login">Sign in</a> for a verified identity.
        {{if .APEnabled}}You can also open a thread by mentioning <code>@{{.Repo}}@{{.Host}}</code> in a post on
        Mastodon.{{end}}
    </p>
    {{end}}
</div>
{{template "foot" .}}