|
123456789101112131415161718192021222324252627282930313233343536 |
- <%page args="title, splash=False"/>\
- <%!
- from flask import g, request, session, url_for
- from copyvios.background import set_background
- %>\
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>${title | h}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://tools-static.wmflabs.org/cdnjs/ajax/libs/oojs-ui/0.41.3/oojs-ui-core-wikimediaui.min.css" integrity="sha512-xL+tTXAo7a4IAwNrNqBcOGWSqJF6ip0jg4SEda2mapAUxPzfOZQ7inazR4TvSCblHQjwtTOkUDIFtnpaSrg3xg==" crossorigin="anonymous" referrerpolicy="no-referrer"/>
- <link rel="stylesheet" href="https://tools-static.wmflabs.org/cdnjs/ajax/libs/oojs-ui/0.41.3/oojs-ui-images-wikimediaui.min.css" integrity="sha512-A0LSCuOGH1+SyLhOs4eSKGbNgIEGXgIGh4ytb0GRj9GSUsjmmK6LFzB/E0o9ymRUvD+q7bZyv74XpboQt5qFvQ==" crossorigin="anonymous" referrerpolicy="no-referrer"/>
- <link rel="stylesheet" href="${request.script_root}${url_for('static', file='style.min.css')}"/>
- <script src="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script src="${request.script_root}${url_for('static', file='script.min.js')}"></script>
- </head>
- <% selected = g.cookies["CopyviosBackground"].value if "CopyviosBackground" in g.cookies else "list" %>\
- % if selected == "plain":
- <body>
- % else:
- <body onload="update_screen_size()" style="background-image: url('${set_background(selected) | h}');">
- % endif
- <div id="container"${' class="splash"' if splash else ''}>
- <div id="content">
- <header>
- <h1><a href="/">Earwig's <strong>Copyvio Detector</strong></a></h1>
- <% logged_in_user = session.get("username") %>\
- % if logged_in_user:
- <a class="logout-link" href="/logout" title="Log out">${logged_in_user | h}</a>
- % else:
- <a class="login-link" href="/login" title="Log in">Login</a>
- % endif
- <a id="settings-link" href="/settings">Settings</a>
- </header>
- <main>
|