aboutsummaryrefslogtreecommitdiff
path: root/templates_old
diff options
context:
space:
mode:
authorFuwn <[email protected]>2020-12-04 21:53:08 -0800
committerFuwn <[email protected]>2020-12-04 21:53:08 -0800
commit299ef187bb83345ca12796e56a7b5ed8d2e04c67 (patch)
tree44768f0b39ac20755b213c72918cf98f614ff122 /templates_old
parentchore: update log (diff)
downloadchan-test_actix-yarte.tar.xz
chan-test_actix-yarte.zip
not working loltest_actix-yarte
Diffstat (limited to 'templates_old')
-rw-r--r--templates_old/404.html.hbs24
-rw-r--r--templates_old/boards.html.hbs18
-rw-r--r--templates_old/header.html.hbs16
-rw-r--r--templates_old/index.html.hbs33
-rw-r--r--templates_old/layout.html.hbs28
-rw-r--r--templates_old/threads.html.hbs57
6 files changed, 176 insertions, 0 deletions
diff --git a/templates_old/404.html.hbs b/templates_old/404.html.hbs
new file mode 100644
index 0000000..5940d43
--- /dev/null
+++ b/templates_old/404.html.hbs
@@ -0,0 +1,24 @@
+<title>chan - 404</title>
+
+{{> header }}
+
+<h1>Error 404: Resource not found...</h1>
+
+<pre>
+⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂
+⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕
+⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂
+⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂
+⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔
+⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿
+⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿
+⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃
+⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈
+⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈
+⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈
+⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈
+⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈
+⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈
+</pre>
+
+<a href="/">Return home.</a>
diff --git a/templates_old/boards.html.hbs b/templates_old/boards.html.hbs
new file mode 100644
index 0000000..d86ba2b
--- /dev/null
+++ b/templates_old/boards.html.hbs
@@ -0,0 +1,18 @@
+<title>chan - Boards</title>
+
+{{> header }}
+
+<h1>Boards</h1>
+
+<div class="col"></div>
+<div class="col">
+ <ul>
+ <p><ul>Unorganized Boards</ul></p>
+ {{ #each this }}
+ <li>
+ <a href="/board/{{ this.tag }}">{{ this.name }} <span class="badge badge-primary">New!</span> {{ #if this.nsfw }} <span class="badge badge-danger">NSFW!</span> {{ /if }}</p>
+ </li>
+ {{ /each }}
+ </ul>
+</div>
+<div class="col"></div>
diff --git a/templates_old/header.html.hbs b/templates_old/header.html.hbs
new file mode 100644
index 0000000..28786e4
--- /dev/null
+++ b/templates_old/header.html.hbs
@@ -0,0 +1,16 @@
+{{> layout }}
+
+<ul class="nav justify-content-center">
+ <li class="nav-item">
+ <a class="nav-link" href="/">
+ Home
+ </a>
+ </li>
+
+ <li class="nav-item">
+ <a class="nav-link" href="/boards">
+ Boards
+ </a>
+ </li>
+</ul>
+<br>
diff --git a/templates_old/index.html.hbs b/templates_old/index.html.hbs
new file mode 100644
index 0000000..ef756d0
--- /dev/null
+++ b/templates_old/index.html.hbs
@@ -0,0 +1,33 @@
+<title>chan - Home</title>
+
+{{> header }}
+
+<h1>chan</h1>
+
+<pre>
+⣿⣿⣷⡁⢆⠈⠕⢕⢂⢕⢂⢕⢂⢔⢂⢕⢄⠂⣂⠂⠆⢂⢕⢂⢕⢂⢕⢂⢕⢂
+⣿⣿⣿⡷⠊⡢⡹⣦⡑⢂⢕⢂⢕⢂⢕⢂⠕⠔⠌⠝⠛⠶⠶⢶⣦⣄⢂⢕⢂⢕
+⣿⣿⠏⣠⣾⣦⡐⢌⢿⣷⣦⣅⡑⠕⠡⠐⢿⠿⣛⠟⠛⠛⠛⠛⠡⢷⡈⢂⢕⢂
+⠟⣡⣾⣿⣿⣿⣿⣦⣑⠝⢿⣿⣿⣿⣿⣿⡵⢁⣤⣶⣶⣿⢿⢿⢿⡟⢻⣤⢑⢂
+⣾⣿⣿⡿⢟⣛⣻⣿⣿⣿⣦⣬⣙⣻⣿⣿⣷⣿⣿⢟⢝⢕⢕⢕⢕⢽⣿⣿⣷⣔
+⣿⣿⠵⠚⠉⢀⣀⣀⣈⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⢕⢕⢕⢕⢕⢕⣽⣿⣿⣿⣿
+⢷⣂⣠⣴⣾⡿⡿⡻⡻⣿⣿⣴⣿⣿⣿⣿⣿⣿⣷⣵⣵⣵⣷⣿⣿⣿⣿⣿⣿⡿
+⢌⠻⣿⡿⡫⡪⡪⡪⡪⣺⣿⣿⣿⣿⣿⠿⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃
+⠣⡁⠹⡪⡪⡪⡪⣪⣾⣿⣿⣿⣿⠋⠐⢉⢍⢄⢌⠻⣿⣿⣿⣿⣿⣿⣿⣿⠏⠈
+⡣⡘⢄⠙⣾⣾⣾⣿⣿⣿⣿⣿⣿⡀⢐⢕⢕⢕⢕⢕⡘⣿⣿⣿⣿⣿⣿⠏⠠⠈
+⠌⢊⢂⢣⠹⣿⣿⣿⣿⣿⣿⣿⣿⣧⢐⢕⢕⢕⢕⢕⢅⣿⣿⣿⣿⡿⢋⢜⠠⠈
+⠄⠁⠕⢝⡢⠈⠻⣿⣿⣿⣿⣿⣿⣿⣷⣕⣑⣑⣑⣵⣿⣿⣿⡿⢋⢔⢕⣿⠠⠈
+⠨⡂⡀⢑⢕⡅⠂⠄⠉⠛⠻⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⢔⢕⢕⣿⣿⠠⠈
+⠄⠪⣂⠁⢕⠆⠄⠂⠄⠁⡀⠂⡀⠄⢈⠉⢍⢛⢛⢛⢋⢔⢕⢕⢕⣽⣿⣿⠠⠈
+</pre>
+
+<div class="footer">
+ <p>
+ Copyleft - <a href="/">chan</a> |
+ Made by <a href="https://github.com/fuwn">Fuwn</a>
+ </p>
+
+ <p>
+ Fork me on <a href="https://github.com/fuwn/chan">GitHub</a>!
+ </p>
+</div>
diff --git a/templates_old/layout.html.hbs b/templates_old/layout.html.hbs
new file mode 100644
index 0000000..a9c0dcc
--- /dev/null
+++ b/templates_old/layout.html.hbs
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <meta name="description" content="A simple `chan'-like board written in Rust.">
+ <meta name="author" content="Fuwn">
+
+ <!-- External -->
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
+ </head>
+
+ <body>
+ <style>
+ * {
+ font-family: Arial, Helvetica, sans-serif
+ }
+
+ .footer {
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ width: 100%;
+ text-align: center;
+ }
+ </style>
+
+ <div class="container">
diff --git a/templates_old/threads.html.hbs b/templates_old/threads.html.hbs
new file mode 100644
index 0000000..f9f1b85
--- /dev/null
+++ b/templates_old/threads.html.hbs
@@ -0,0 +1,57 @@
+<title>chan - /{{ this.0.board }}/</title>
+
+{{> header }}
+
+<form action="/api/v1/post" method="post">
+ <div class="form-group">
+ <label for="name">Name <span class="badge badge-info">Optional</span></label>
+ <input class="form-control" name="name" type="text"
+ placeholder="Anonymous">
+ </div>
+
+ <div class="form-group">
+ <label for="comment">Comment <span class="badge badge-warning">Required</span></label>
+ <textarea class="form-control" name="comment" cols="48" rows="4"
+ wrap="soft" placeholder="comment" required></textarea>
+ </div>
+
+ <div class="form-group form-check">
+ <input class="form-check-input" type="checkbox" disabled>
+ <label class="form-check-label">I'm not a robot. <span class="badge badge-warning">Required</span> <span class="badge badge-danger">Disabled</span></label>
+ </div>
+
+ <div class="form-group">
+ <label class="form-check-label">Image <span class="badge badge-info">Optional</span> <span class="badge badge-danger">Disabled</span></label>
+ <input class="form-control-file" type="file" disabled>
+ </div>
+
+ <input type="hidden" name="board" value="{{ this.0.board }}">
+
+ <button type="submit" class="btn btn-primary">Post</button>
+</form>
+<br>
+
+<hr>
+
+{{ #if this }}
+ {{ #each this }}
+ <!-- <div class="post" style="width: 420px">
+ <h2>{{ this.name }}</h4>
+ <p>{{ this.comment }}</p>
+ </div> -->
+
+ <div class="card">
+ <div class="card-body">
+ <h2>{{ this.name }}</h4>
+ <p>{{ this.comment }}</p>
+
+ <button class="btn btn-primary" disabled>View thread</button>
+ </div>
+ </div>
+ <br>
+ {{ /each }}
+{{ else }}
+ <div class="alert alert-primary" role="alert">
+ No posts have been made today!
+ </div>
+{{ /if }}