2022-08-24 05:55:19 +00:00
|
|
|
{{define "title"}}Forums{{end}}
|
|
|
|
{{define "content"}}
|
|
|
|
<div class="block">
|
2024-08-21 02:31:56 +00:00
|
|
|
<section class="hero is-info is-bold">
|
2022-08-24 05:55:19 +00:00
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="title">
|
2024-08-21 02:31:56 +00:00
|
|
|
<span class="icon mr-4"><i class="fa fa-book"></i></span>
|
2022-08-24 05:55:19 +00:00
|
|
|
<span>Forum Administration</span>
|
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{$Root := .}}
|
|
|
|
|
|
|
|
<div class="block p-2">
|
|
|
|
<a href="/forum/admin/edit" class="button is-success">
|
|
|
|
<span class="icon"><i class="fa fa-plus"></i></span>
|
|
|
|
<span>Create New Forum</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2024-08-21 02:31:56 +00:00
|
|
|
<div class="block p-2">
|
|
|
|
<form action="{{.Request.URL.Path}}" method="GET">
|
|
|
|
|
|
|
|
<div class="card nonshy-collapsible-mobile">
|
|
|
|
<header class="card-header has-background-link-light">
|
|
|
|
<p class="card-header-title has-text-dark">
|
|
|
|
Search Filters
|
|
|
|
</p>
|
|
|
|
<button class="card-header-icon" type="button">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="fa fa-angle-up"></i>
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</header>
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="columns">
|
|
|
|
|
|
|
|
<div class="column pr-1">
|
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="q">Search terms:</label>
|
|
|
|
<input type="text" class="input"
|
|
|
|
name="q" id="q"
|
|
|
|
autocomplete="off"
|
|
|
|
value="{{.SearchTerm}}">
|
|
|
|
<p class="help">
|
|
|
|
Tip: you can <span class="has-text-success">"quote exact phrases"</span> and
|
|
|
|
<span class="has-text-success">-exclude</span> words (or
|
|
|
|
<span class="has-text-success">-"exclude phrases"</span>) from your search.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column px-1">
|
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="sort">Sort by:</label>
|
|
|
|
<div class="select is-fullwidth">
|
|
|
|
<select id="sort" name="sort">
|
|
|
|
<option value="updated_at desc"{{if eq .Sort "updated_at desc"}} selected{{end}}>Last updated</option>
|
|
|
|
<option value="created_at desc"{{if eq .Sort "created_at desc"}} selected{{end}}>Newest created</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column is-narrow pl-1 has-text-right">
|
|
|
|
<label class="label"> </label>
|
|
|
|
<a href="{{.Request.URL.Path}}" class="button">Reset</a>
|
|
|
|
<button type="submit" class="button is-success">
|
|
|
|
<span>Search</span>
|
|
|
|
<span class="icon"><i class="fa fa-search"></i></span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2022-08-24 05:55:19 +00:00
|
|
|
<p class="block p-2">
|
|
|
|
Found <strong>{{.Pager.Total}}</strong> forum{{Pluralize64 .Pager.Total}} you can manage
|
|
|
|
(page {{.Pager.Page}} of {{.Pager.Pages}}).
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="block p-2">
|
2023-06-22 03:46:27 +00:00
|
|
|
{{SimplePager .Pager}}
|
2022-08-24 05:55:19 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="block p-2">
|
|
|
|
{{range .Forums}}
|
|
|
|
<div class="box">
|
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
|
|
|
<h1 class="title">{{.Title}}</h1>
|
|
|
|
<h2 class="subtitle">
|
2024-08-22 05:25:59 +00:00
|
|
|
<a href="/f/{{.Fragment}}">/f/{{.Fragment}}</a>
|
2022-08-24 05:55:19 +00:00
|
|
|
{{if .Category}}<span class="ml-4">{{.Category}}</span>{{end}}
|
|
|
|
<span class="ml-4">
|
|
|
|
by <strong><a href="/u/{{.Owner.Username}}">{{.Owner.Username}}</a></strong>
|
2023-08-30 07:08:20 +00:00
|
|
|
{{if .Owner.IsAdmin}}<i class="fa fa-peace has-text-danger ml-1"></i>{{end}}
|
2022-08-24 05:55:19 +00:00
|
|
|
</span>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
{{if eq .Description ""}}
|
|
|
|
<p><em>No description</em></p>
|
|
|
|
{{else}}
|
|
|
|
{{ToMarkdown .Description}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{{if .Explicit}}
|
|
|
|
<div class="tag is-danger is-light">
|
|
|
|
<span class="icon"><i class="fa fa-fire"></i></span>
|
|
|
|
Explicit
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .Privileged}}
|
|
|
|
<div class="tag is-warning is-light">
|
2023-08-30 07:08:20 +00:00
|
|
|
<span class="icon"><i class="fa fa-peace"></i></span>
|
2022-08-24 05:55:19 +00:00
|
|
|
Privileged
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .PermitPhotos}}
|
|
|
|
<div class="tag is-info is-light">
|
|
|
|
<span class="icon"><i class="fa fa-camera"></i></span>
|
|
|
|
PermitPhotos
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2024-05-11 19:23:06 +00:00
|
|
|
{{if .PermitPhotos}}
|
|
|
|
<div class="tag is-private is-light">
|
|
|
|
<span class="icon"><i class="fa fa-lock"></i></span>
|
|
|
|
Private
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<div class="tag">
|
2022-08-24 05:55:19 +00:00
|
|
|
Created {{.CreatedAt.Format "2006-01-02 15:04:05"}}
|
|
|
|
</div>
|
2024-05-11 19:23:06 +00:00
|
|
|
<div class="tag">
|
2022-08-24 05:55:19 +00:00
|
|
|
Updated {{.UpdatedAt.Format "2006-01-02 15:04:05"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="column is-narrow">
|
|
|
|
<a href="/forum/admin/edit?id={{.ID}}" class="button has-text-success">
|
|
|
|
<span class="icon"><i class="fa fa-edit"></i></span>
|
|
|
|
<span>Edit</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
2023-06-22 03:46:27 +00:00
|
|
|
{{end}}
|