diff options
Diffstat (limited to 'static/ejs/pages/me.ejs')
| -rw-r--r-- | static/ejs/pages/me.ejs | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/static/ejs/pages/me.ejs b/static/ejs/pages/me.ejs deleted file mode 100644 index 0c69ef5..0000000 --- a/static/ejs/pages/me.ejs +++ /dev/null @@ -1,88 +0,0 @@ -<!-- - Copyright 2022 NotDankEnough (ilotterytea) - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> - -<!DOCTYPE html> -<html> - <head> - <title><%= user.name %> - Image Hoster</title> - <%- include("../partials/meta") %> - </head> - <body> - <div class="container"> - <div class="wrapper"> - <section class="infoblock"> - <a href="/" class="button">Go back...</a> - </section> - <section class="infoblock"> - <div class="user_summary"> - <div class="pfp"> - <img src="<%= user.pic %>"> - </div> - <div class="summary"> - <h2 id="name"><%= user.name%> (<%= user.alias_id %>)</h2> - <p id="desc"><%= user.desc %></p> - </div> - </div> - <div class="action_buttons"> - - </div> - </section> - <section class="infoblock" id="authk"> - <h2 id="name"> - <span class="fa-solid fa-key"></span> Authentication Key - </h2> - <p>An authentication key is required if you want to upload images under your account <soontm>and be able to delete them.</soontm></p> - <div class="action_buttons"> - <button value="<%= authKey %>" id="authkey" class="button" onclick="copyAuthkey()">Copy to Clipboard</button> - </div> - </section> - <section class="infoblock"> - <h2 id="name"> - Files (<%= images.length %>) - </h2> - <div class="items"> - <% images.forEach((image, index) => { %> - <div class="item"> - <div id="info"> - <div id="numeration"> - <p><%= index + 1 %></p> - </div> - <div id="thumbnail"> - <img src="../images/<%= image.storage_id %>"> - </div> - <div id="summary"> - <!--<p id="desc"><% if (!image.description) {%> No description provided. <% } else { %> <%= image.description %> <%}%></p>--> - <p id="timestamp" title="Timestamp"><span class="fa-solid fa-stamp"></span> <%= image.timestamp %></p> - </div> - <div id="actions"> - <a href="/<%= image.id %>" class="button">View</a> - </div> - </div> - </div> - <%})%> - </div> - </section> - </div> - </div> - </body> - <script> - function copyAuthkey() { - var text = document.getElementById("authkey"); - navigator.clipboard.writeText(text.value); - alert("Copied the authentication key!"); - } - </script> -</html>
\ No newline at end of file |
