mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-01 09:34:21 +00:00
Initial commit
This commit is contained in:
commit
5e4da01c3a
43 changed files with 3429 additions and 0 deletions
6
templates/error.tmpl
Normal file
6
templates/error.tmpl
Normal file
|
@ -0,0 +1,6 @@
|
|||
{{template "header.tmpl"}}
|
||||
<h1> Error </h1>
|
||||
<div> {{.}} </div>
|
||||
<a href="/timeline"> Home </a>
|
||||
{{template "footer.tmpl"}}
|
||||
|
2
templates/footer.tmpl
Normal file
2
templates/footer.tmpl
Normal file
|
@ -0,0 +1,2 @@
|
|||
</body>
|
||||
</html>
|
10
templates/header.tmpl
Normal file
10
templates/header.tmpl
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<meta content='width=device-width, initial-scale=1' name='viewport'>
|
||||
<title> Web </title>
|
||||
<link rel="stylesheet" href="/static/main.css" />
|
||||
<link rel="stylesheet" href="/static/fonts/fonts.css">
|
||||
</head>
|
||||
<body>
|
4
templates/homepage.tmpl
Normal file
4
templates/homepage.tmpl
Normal file
|
@ -0,0 +1,4 @@
|
|||
{{template "header.tmpl"}}
|
||||
<h1> HOME </h1>
|
||||
<a href="/signin"> Signin </a>
|
||||
{{template "footer.tmpl"}}
|
9
templates/signin.tmpl
Normal file
9
templates/signin.tmpl
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{template "header.tmpl"}}
|
||||
<h3> Signin </h3>
|
||||
<a href="/"> Home </a>
|
||||
<form action="/signin" method="post">
|
||||
<input type="text" name="instance" placeholder="instance">
|
||||
<br>
|
||||
<button type="submit"> Submit </button>
|
||||
</form>
|
||||
{{template "footer.tmpl"}}
|
43
templates/status.tmpl
Normal file
43
templates/status.tmpl
Normal file
|
@ -0,0 +1,43 @@
|
|||
<div class="status-container">
|
||||
<div>
|
||||
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
|
||||
</div>
|
||||
<div class="status">
|
||||
<div class="status-name">
|
||||
<span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span>
|
||||
<span class="status-uname"> {{.Account.Acct}} </span>
|
||||
</div>
|
||||
<div class="status-content"> {{WithEmojis .Content .Emojis}} </div>
|
||||
<div class="status-action">
|
||||
<a class="status-you" href="/thread/{{.ID}}?reply=true" title="reply">
|
||||
<span class="icon dripicons-reply"></span>
|
||||
<span> {{DisplayInteractionCount .RepliesCount}} </span>
|
||||
</a>
|
||||
{{if .Reblogged}}
|
||||
<a class="status-retweet" href="/unretweet/{{.ID}}" title="undo repost">
|
||||
<span class="icon dripicons-retweet retweeted"></span>
|
||||
<span> {{DisplayInteractionCount .ReblogsCount}} </span>
|
||||
</a>
|
||||
{{else}}
|
||||
<a class="status-retweet" href="/retweet/{{.ID}}" title="repost">
|
||||
<span class="icon dripicons-retweet"></span>
|
||||
<span> {{DisplayInteractionCount .ReblogsCount}} </span>
|
||||
</a>
|
||||
{{end}}
|
||||
{{if .Favourited}}
|
||||
<a class="status-like" href="/unlike/{{.ID}}" title="unlike">
|
||||
<span class="icon dripicons-star liked"></span>
|
||||
<span> {{DisplayInteractionCount .FavouritesCount}} </span>
|
||||
</a>
|
||||
{{else}}
|
||||
<a class="status-like" href="/like/{{.ID}}" title="like">
|
||||
<span class="icon dripicons-star"></span>
|
||||
<span> {{DisplayInteractionCount .FavouritesCount}} </span>
|
||||
</a>
|
||||
{{end}}
|
||||
<a class="status-time" href="/thread/{{.ID}}">
|
||||
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{.CreatedAt}}"> {{TimeSince .CreatedAt}} </time>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
24
templates/thread.tmpl
Normal file
24
templates/thread.tmpl
Normal file
|
@ -0,0 +1,24 @@
|
|||
{{template "header.tmpl"}}
|
||||
<h1> THREAD </h1>
|
||||
|
||||
{{range .Context.Ancestors}}
|
||||
{{template "status.tmpl" .}}
|
||||
{{end}}
|
||||
|
||||
{{template "status.tmpl" .Status}}
|
||||
{{if .PostReply}}
|
||||
<form class="timeline-post-form" action="/post" method="POST">
|
||||
<input type="hidden" name="reply_to_id" value="{{.ReplyToID}}" />
|
||||
<label for="post-content"> Reply to {{.Status.Account.DisplayName}} </label>
|
||||
<br/>
|
||||
<textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea>
|
||||
<br/>
|
||||
<button type="submit"> Post </button>
|
||||
</form>
|
||||
{{end}}
|
||||
|
||||
{{range .Context.Descendants}}
|
||||
{{template "status.tmpl" .}}
|
||||
{{end}}
|
||||
|
||||
{{template "footer.tmpl"}}
|
22
templates/timeline.tmpl
Normal file
22
templates/timeline.tmpl
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{template "header.tmpl"}}
|
||||
<h1> TIMELINE </h1>
|
||||
|
||||
<form class="timeline-post-form" action="/post" method="POST">
|
||||
<label for="post-content"> New Post </label>
|
||||
<br/>
|
||||
<textarea id="post-content" name="content" class="post-content" cols="50" rows="5"></textarea>
|
||||
<br/>
|
||||
<button type="submit"> Post </button>
|
||||
</form>
|
||||
|
||||
{{range .Statuses}}
|
||||
{{template "status.tmpl" .}}
|
||||
{{end}}
|
||||
|
||||
{{if .HasNext}}
|
||||
<a href="{{.NextLink}}"> next </a>
|
||||
{{end}}
|
||||
{{if .HasPrev}}
|
||||
<a href="{{.PrevLink}}"> next </a>
|
||||
{{end}}
|
||||
{{template "footer.tmpl"}}
|
Loading…
Add table
Add a link
Reference in a new issue