lots of fixes and more EJS
This commit is contained in:
14
views/forms/delete_account.ejs
Normal file
14
views/forms/delete_account.ejs
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<%= config.language %>
|
||||
<head>
|
||||
<%- include("../partials/head") %>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/submit_delete_account" method="POST">
|
||||
<input placeholder="username" required name="username"><br/>
|
||||
<input placeholder="password" type="password" required id="password" name="password"><br/>
|
||||
<label><%- config.string.delete_account_confirmation %>: </label><input type="checkbox" name="agreement" required><br/>
|
||||
<input type="submit" value="Submit"><br/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
19
views/forms/edit_post.ejs
Normal file
19
views/forms/edit_post.ejs
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<%= config.language %>">
|
||||
<head>
|
||||
<%- include("../partials/head") %>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/submit_edit" method="POST" onsubmit="sha512password()">
|
||||
<input name="userID" type="hidden" value="<%= post['userID'] %>">
|
||||
<input name="postID" type="hidden" value="<%= post_id %>">
|
||||
<input placeholder="<%= user['prettyname'] %>'s password" type="password" required id="password" name="password"><br/>
|
||||
<input placeholder="title" value=" <%=post['title'] %>" required name="title"><br/>
|
||||
<textarea placeholder="content" required name="content"><%= post['content'] %></textarea><br/>
|
||||
<input placeholder="tags (comma seperated)" value="<%= post['tags'] %>" name="tags"><br/>
|
||||
<label>Delete forever (no undo): </label><input name="delete" type="checkbox"><br/>
|
||||
<input type="submit" value="Submit"><br/>
|
||||
<small>* Markdown supported</small>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
16
views/forms/new_post.ejs
Normal file
16
views/forms/new_post.ejs
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
</html>
|
||||
<head>
|
||||
<%- include('../partials/head.ejs') %>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/submit_post" method="POST">
|
||||
<input placeholder="username" required name="username"><br/>
|
||||
<input placeholder="password" type="password" required id="password" name="password"><br/>
|
||||
<input placeholder="title" required name="title"><br/>
|
||||
<textarea placeholder="post content*" required name="content"></textarea><br/>
|
||||
<input placeholder="Tags (comma seperated)" name="tags"><br/>
|
||||
<input type="submit" value="Submit"><br/>
|
||||
<small>* Markdown supported</small>
|
||||
</body>
|
||||
</form></html>
|
16
views/forms/signup.ejs
Normal file
16
views/forms/signup.ejs
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
</html lang="<%= config.language %>">
|
||||
<head>
|
||||
<%- include("../partials/head") %>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/submit_signup" method="POST">
|
||||
<input placeholder="username" required name="username"><br/>
|
||||
<input placeholder="prettyname" required name="prettyname"><br/>
|
||||
<input placeholder="password" type="password" required id="password" name="password"><br/>
|
||||
<textarea placeholder="description (social links, what you do etc), supports markdown" id="description" name="description"></textarea><br/>
|
||||
<label><%- config.string.signup_agreement %>: </label><input type="checkbox" name="agreement" required><br/>
|
||||
<input type="submit" value="Submit"><br/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
@@ -5,6 +5,7 @@
|
||||
<%- config.site_description %>
|
||||
</h2>
|
||||
<a href="<%= config.rss_url %>">RSS Feed</a><br/>
|
||||
<a href="<%= config.new_post_url %>">New post</a><br/>
|
||||
<a href="<%= config.signup_url %>">Sign Up</a><br/>
|
||||
<a href="<%= config.delete_account_url %>">Delete Account</a><br/>
|
||||
<% if (config.enable_hitcount == true) { %>
|
||||
|
@@ -1,2 +1,2 @@
|
||||
<b><%= comment.name %></b> <%= format(fromUnixTime(comment.pubdate), config.date_format) %> <i>No. <%= comment.id %></i>:<br/>
|
||||
<b><%= comment.name %></b> <%= func.unix_time_to_date_format(comment.pubdate) %> <i>No. <%= comment.id %></i>:<br/>
|
||||
<%= comment.content %>
|
||||
|
@@ -1,2 +1,2 @@
|
||||
Site is ran by deadvey<br/>
|
||||
<%- config.attribution %>
|
||||
<%- config.string.attribution %>
|
||||
|
@@ -5,4 +5,4 @@
|
||||
|
||||
</style>
|
||||
|
||||
<link rel="stylesheet" href="custom.css">
|
||||
<link rel="stylesheet" href="/custom.css">
|
||||
|
10
views/partials/message.ejs
Normal file
10
views/partials/message.ejs
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<%=config.language%>
|
||||
<head>
|
||||
<%- include('head') %>
|
||||
</head>
|
||||
<body>
|
||||
<%- message %>
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -6,10 +6,10 @@
|
||||
By <a href="/user/<%= user.username %>"><%= user.username %></a><br/>
|
||||
</i>
|
||||
<br/>
|
||||
<%- hyperlink_tags(post.tags) %><br/>
|
||||
<%- func.hyperlink_tags(post.tags) %><br/>
|
||||
<a href="<%= config.edit_post_base_url %>/<%= postID %>">Edit</a><br/>
|
||||
<i>Published: <%= format(fromUnixTime(post.pubdate), config.date_format) %></i><br/>
|
||||
<i>Last Modified: <%= format(fromUnixTime(post.editdate), config.date_format) %></i><br/>
|
||||
<i>Published: <%= func.unix_time_to_date_format(post.pubdate) %></i><br/>
|
||||
<i>Last Modified: <%= func.unix_time_to_date_format(post.pubdate) %></i><br/>
|
||||
|
||||
<%- config.seperator %>
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
</h3>
|
||||
<%= post.content %><br/>
|
||||
<a href="/post/<%- postID %>">Permalink</a><br/>
|
||||
<%- hyperlink_tags(post.tags) %>
|
||||
<%- func.hyperlink_tags(post.tags) %>
|
||||
|
||||
<!-- Comment form -->
|
||||
<form method="POST" action="/submit_comment">
|
||||
|
Reference in New Issue
Block a user