diff options
Diffstat (limited to 'views/pages')
| -rw-r--r-- | views/pages/details.ejs | 59 | ||||
| -rw-r--r-- | views/pages/index.ejs | 4 |
2 files changed, 61 insertions, 2 deletions
diff --git a/views/pages/details.ejs b/views/pages/details.ejs new file mode 100644 index 0000000..ea3333c --- /dev/null +++ b/views/pages/details.ejs @@ -0,0 +1,59 @@ +<% include ../partials/header %> + +<hr> + +<div id="details"> + <table id="comments"> + <script class="template" type="text/html"> + <tr> + <td> + <a href="/profile/{{username}}"><img src="//www.carbonpictures.com/bucky/data/profile/.thumb/am.{{username}}.jpg"></a> + <a href="/profile/{{username}}">{{username}}</a> + <td colspan="2"> + {{comment}} + <br><br> + <span class="date"> + {{date}} {{time}} + </span> + <span class="edit-links"> + <a href="/comment/{{id}}/edit">edit</a> · + <a href="/comment/{{id}}/remove">remove</a> · + <a href="/comment/{{id}}/reply">reply</a> + </span> + </td> + </tr> + </script> + </table> + + <table id="files"> + <script class="template" type="text/html"> + <tr> + <td> + <a href="{{link}}">{{filename}}</a> + </td> + <td class="{{date_class}}"> + {{date}} + </td> + <td class="{{date_class}}"> + {{time}} + </td> + <td> + {{size}} + </td> + <td> + <a href="/profile/{{username}}">{{username}}</a> + </td> + </tr> + </script> + <script class="templateTotal" type="text/html"> + <tr> + <td colspan="5"> + total size: <span class="{{size_class}}">{{size}}</span> + </td> + </tr> + </script> + </table> +</div> + + +<% include ../partials/footer %> diff --git a/views/pages/index.ejs b/views/pages/index.ejs index 070d1ff..ceafe74 100644 --- a/views/pages/index.ejs +++ b/views/pages/index.ejs @@ -42,8 +42,8 @@ <td class="{{color}}"> <a href="/details/{{id}}">{{title}}</a> </td> - <td class="{{age_class}}"> - {{age}} + <td class="{{date_class}}"> + {{date}} <small>{{time}}</small> </td> <td class="{{views_class}}"> {{views}} |
