rustream/templates/
logout.rs1pub fn get_content() -> String {
11 r###"<!DOCTYPE html>
12<html lang="en">
13<head>
14 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
15 <title>RuStream - Self-hosted Streaming Engine - v{{ version }}</title>
16 <meta property="og:type" content="MediaStreaming">
17 <meta name="keywords" content="Python, streaming, fastapi, JavaScript, HTML, CSS">
18 <meta name="author" content="Vignesh Rao">
19 <meta content="width=device-width, initial-scale=1" name="viewport">
20 <!-- Favicon.ico and Apple Touch Icon -->
21 <link rel="icon" href="https://thevickypedia.github.io/open-source/images/logo/actix.ico">
22 <link rel="apple-touch-icon" href="https://thevickypedia.github.io/open-source/images/logo/actix.png">
23 <style>
24 /* Google fonts with a backup alternative */
25 @import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
26 * {
27 font-family: 'Ubuntu', 'PT Serif', sans-serif;
28 }
29 img {
30 display: block;
31 margin-left: auto;
32 margin-right: auto;
33 }
34
35 :is(h1, h2, h3, h4, h5, h6) {
36 text-align: center;
37 color: #F0F0F0;
38 }
39
40 button {
41 width: 100px;
42 margin: 0 auto;
43 display: block;
44 }
45
46 body {
47 background-color: #151515;
48 }
49 </style>
50 <noscript>
51 <style>
52 body {
53 width: 100%;
54 height: 100%;
55 overflow: hidden;
56 }
57 </style>
58 <div style="position: fixed; text-align:center; height: 100%; width: 100%; background-color: #151515;">
59 <h2 style="margin-top:5%">This page requires JavaScript
60 to be enabled.
61 <br><br>
62 Please refer <a href="https://www.enable-javascript.com/">enable-javascript</a> for how to.
63 </h2>
64 <form>
65 <button type="submit" onClick="<meta httpEquiv='refresh' content='0'>">RETRY</button>
66 </form>
67 </div>
68 </noscript>
69</head>
70<body>
71<h2 style="margin-top:5%">LOGOUT</h2>
72<h3>{{ detail }}</h3>
73<p>
74 <img src="https://thevickypedia.github.io/open-source/images/gif/blended_fusion.gif"
75 onerror="this.src='https://vigneshrao.com/open-source/images/gif/blended_fusion.gif'"
76 width="200" height="200" alt="Image" class="center">
77</p>
78{% if show_login %}
79 <button style="text-align:center" onClick="window.location.href = '/';">LOGIN</button>
80{% else %}
81 <h3>Please close the session window</h3>
82{% endif %}
83<h4>Click <a href="https://vigneshrao.com/contact">ME</a> to reach out.</h4>
84</body>
85<!-- control the behavior of the browser's navigation without triggering a full page reload -->
86<script>
87 document.addEventListener('DOMContentLoaded', function() {
88 history.pushState(null, document.title, location.href);
89 window.addEventListener('popstate', function (event) {
90 history.pushState(null, document.title, location.href);
91 });
92 });
93</script>
94</html>
95"###.to_string()
96}