a mini social media app for small communities
at main 1.3 kB view raw
1<!DOCTYPE html> 2<html lang="en"> 3 4<head> 5 <meta charset="utf-8" /> 6 <meta name="viewport" content="width=device-width, initial-scale=1" /> 7 <meta name="description" content="" /> 8 9 <title>@ctx.title</title> 10 11 @include 'assets/style.html' 12 13 @if ctx.is_logged_in() && user.theme != '' 14 <link rel="stylesheet" href="@user.theme"> 15 @else if app.config.instance.default_theme != '' 16 <link rel="stylesheet" href="@app.config.instance.default_theme"> 17 @endif 18 19 <link rel="shortcut icon" href="/static/favicon/favicon.ico" type="image/png" sizes="16x16 32x32"> 20 21 @if ctx.is_logged_in() && user.css != '' 22 <style>@{user.css}</style> 23 @else 24 <style>@{app.config.instance.default_css}</style> 25 @end 26 27 <script src="/static/js/notify.js" defer></script> 28 <script src="/static/js/form.js" defer></script> 29</head> 30 31<body> 32 33 <header> 34 @if ctx.is_logged_in() 35 <a href="/me">@@@user.get_name()</a> 36 - 37 @end 38 39 @if app.config.dev_mode 40 <span><strong>dev mode</strong></span> 41 - 42 @end 43 44 <a href="/">home</a> 45 - 46 47 @if ctx.is_logged_in() 48 <a href="/inbox">inbox@{app.get_notification_count_for_frontend(user.id, 99)}</a> 49 - 50 <a href="/search">search</a> 51 @else 52 <a href="/login">log in</a> 53 <span>or</span> 54 <a href="/register">sign up</a> 55 @end 56 </header> 57 58 <main> 59 <div id="errors"></div>