summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/pages/details.ejs9
-rw-r--r--views/pages/message.ejs2
-rw-r--r--views/partials/comments.ejs16
-rw-r--r--views/partials/files.ejs2
-rw-r--r--views/partials/gallery.ejs2
-rw-r--r--views/partials/header.ejs2
-rw-r--r--views/partials/hootbox.ejs9
-rw-r--r--views/partials/scripts.ejs1
-rw-r--r--views/partials/threads.ejs21
9 files changed, 44 insertions, 20 deletions
diff --git a/views/pages/details.ejs b/views/pages/details.ejs
index 769db9d..b508560 100644
--- a/views/pages/details.ejs
+++ b/views/pages/details.ejs
@@ -3,6 +3,15 @@
<hr>
<div id="details_rapper">
+ <script type="text/html" class="metadata_template">
+ Posted by {{ username }}
+ on {{ date }} {{ time }}
+ &middot;
+ Last active {{ active }}
+ &middot;
+ {{ views }}
+ </script>
+
<table id="details">
<tr>
<td class="left">
diff --git a/views/pages/message.ejs b/views/pages/message.ejs
index 333908d..bd71a0a 100644
--- a/views/pages/message.ejs
+++ b/views/pages/message.ejs
@@ -4,7 +4,7 @@
<div class="bluebox" id="message">
<script class="template" type="text/html">
- <a href="/profile/{{sender}}" class="av"><img src="//www.carbonpictures.com/bucky/data/profile/.thumb/al.{{sender}}.jpg"></a>
+ <a href="/profile/{{sender}}" class="av"><img src="/data/profile/.thumb/al.{{sender}}.jpg"></a>
<span class="subject">{{subject}}</span>
<span class="sender">
sent by
diff --git a/views/partials/comments.ejs b/views/partials/comments.ejs
index 97d4cea..6226a61 100644
--- a/views/partials/comments.ejs
+++ b/views/partials/comments.ejs
@@ -1,8 +1,8 @@
-<table id="comments" width="450">
+<table id="comments">
<script class="template" type="text/html">
<tr>
<td class="user">
- <a href="/profile/{{username}}"><img src="//www.carbonpictures.com/bucky/data/profile/.thumb/al.{{username}}.jpg"></a><br>
+ <a href="/profile/{{username}}"><div class="avatar" style="background-image:url(/data/profile/{{username}}.jpg)"></div></a>
<a href="/profile/{{username}}">{{username}}</a>
</td>
<td colspan="2" class="comment">
@@ -20,4 +20,16 @@
</td>
</tr>
</script>
+</table>
+
+<table id="comment_form">
+ <tr>
+ <td>
+ <form>
+ <textarea name="comment"></textarea><br>
+ <input type="file" multiple>
+ <input type="submit" value="POST" />
+ </form>
+ </td>
+ </tr>
</table> \ No newline at end of file
diff --git a/views/partials/files.ejs b/views/partials/files.ejs
index d72dcdc..34d476a 100644
--- a/views/partials/files.ejs
+++ b/views/partials/files.ejs
@@ -1,7 +1,7 @@
<div id="audio"></div>
<table id="files">
<script class="template" type="text/html">
- <tr class="row">
+ <tr class="file">
<td>
<a href="{{link}}" class="file">{{filename}}</a>
</td>
diff --git a/views/partials/gallery.ejs b/views/partials/gallery.ejs
index 8fac271..7115d4d 100644
--- a/views/partials/gallery.ejs
+++ b/views/partials/gallery.ejs
@@ -1,7 +1,7 @@
<div id="gallery">
<script class="template" type="text/html">
<div>
- <a href="{{link}}"><img src="{{thumb}}"></a>
+ <a href="{{link}}"><img class="thumb" src="{{thumb}}"></a>
<br>(<a href="/profile/{{username}}">{{username}}</a>, {{age}})
</div>
</script>
diff --git a/views/partials/header.ejs b/views/partials/header.ejs
index 6cd7b2e..f5b21dc 100644
--- a/views/partials/header.ejs
+++ b/views/partials/header.ejs
@@ -8,7 +8,7 @@
<body>
<h1><%= title %></h1>
-
+<span class="metadata"></span>
<hr>
<% if (show_header) { %>
diff --git a/views/partials/hootbox.ejs b/views/partials/hootbox.ejs
index 872ca68..d32ff8f 100644
--- a/views/partials/hootbox.ejs
+++ b/views/partials/hootbox.ejs
@@ -1,16 +1,17 @@
<div class="bluebox" id="hootbox">
- <form>
- <input type="text" name="comment">
+ <form autocomplete="off">
+ <input type="text" name="comment" autocomplete="off">
<button><%= hoot_text %></button>
+ <div class="errors"></div>
</form>
<table id="hoots">
<script class="template" type="text/html">
<tr>
- <td style="background-image:url(//www.carbonpictures.com/bucky/data/profile/.thumb/am.{{username}}.jpg)"><a href="/profile/{{username}}"><div></div></a></td>
+ <td style="background-image:url(/data/profile/{{username}}.jpg)"><a href="/profile/{{username}}"><div></div></a></td>
<td>
{{comment}}
</td>
</tr>
</script>
</table>
-</div> \ No newline at end of file
+</div>
diff --git a/views/partials/scripts.ejs b/views/partials/scripts.ejs
index 0a5c4d6..8dc99a1 100644
--- a/views/partials/scripts.ejs
+++ b/views/partials/scripts.ejs
@@ -24,6 +24,7 @@
<script src="/assets/js/lib/views/details/comments.js"></script>
<script src="/assets/js/lib/views/details/files.js"></script>
<script src="/assets/js/lib/views/details/gallery.js"></script>
+<script src="/assets/js/lib/views/details/commentform.js"></script>
<script src="/assets/js/lib/views/mail/mailbox.js"></script>
<script src="/assets/js/lib/views/mail/message.js"></script>
diff --git a/views/partials/threads.ejs b/views/partials/threads.ejs
index b809be8..b3a6e75 100644
--- a/views/partials/threads.ejs
+++ b/views/partials/threads.ejs
@@ -1,21 +1,21 @@
<table class="ledger" id="threads">
+
<script class="keywordTemplate" type="text/html">
- <tr>
- <th>
- <b>{{keyword}}</b>
- &middot;
- </th>
- <th>
+ <tr class='keyword'>
+ <td>
+ <b>{{keyword}}</b>&nbsp;&middot;
+ </td>
+ <td>
<a href="/post/{{keyword}}">post</a>
- </th>
+ </td>
</tr>
</script>
+
<script class="template" type="text/html">
- <tr>
+ <tr class='row'>
<td>
- <a href="/profile/{{username}}">{{username}}</a>
- {{privacy_dot}}
+ <a href="/profile/{{username}}">{{username}}</a>&nbsp;{{privacy_dot}}
</td>
<td class="{{color}}">
<a href="/details/{{id}}">{{title}}</a>
@@ -38,4 +38,5 @@
</td>
</tr>
</script>
+
</table>