1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00
0bin/zerobin/views/base.tpl

181 lines
5.7 KiB
Smarty
Raw Normal View History

2012-04-24 14:22:59 +04:00
<!DOCTYPE html>
<html lang="en">
2020-08-11 12:55:29 +03:00
<head>
<meta charset="utf-8">
<title>0bin - encrypted pastebin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="0bin is a client-side-encrypted
pastebin featuring burn after reading, history, and
2012-04-28 21:57:18 +04:00
a clipboard">
2012-04-24 14:22:59 +04:00
2020-08-11 12:55:29 +03:00
<link rel="shortcut icon" href="/favicon.ico">
2012-05-17 13:13:40 +04:00
2020-08-11 12:55:29 +03:00
%if settings.COMPRESSED_STATIC_FILES:
2020-08-11 17:37:03 +03:00
<link href="/static/css/style.min.css?{{ VERSION }}" rel="stylesheet" />
2020-08-11 12:55:29 +03:00
%else:
<link href="/static/css/prettify.css" rel="stylesheet" />
<link href="/static/css/bootstrap.css" rel="stylesheet">
2020-08-11 17:37:03 +03:00
<link href="/static/css/style.css?{{ VERSION }}" rel="stylesheet">
2020-08-11 12:55:29 +03:00
%end
2012-04-24 14:22:59 +04:00
2020-08-11 12:55:29 +03:00
<!-- Le HTML5 shim, for IE7-8 support of HTML5 elements -->
<!--[if lt IE 9]>
2012-04-24 14:22:59 +04:00
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
2020-08-11 12:55:29 +03:00
</head>
<body>
<div class="navbar navbar-fixed-top" id="menu-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/"><span>ø</span>bin<em>.net</em></a>
<div class="nav-collapse">
<ul class="nav">
%for i, entry in enumerate(settings.MENU):
<li>
%if "mailto:" in entry[1]:
<a :href="formatEmail('{{ entry[1].replace('mailto:', '').replace('@', '__AT__') }}')" class="email-link">
{{ entry[0] }}
</a>
%else:
<a href="{{ entry[1] }}">{{ entry[0] }}</a>
%end
2020-08-11 12:55:29 +03:00
</li>
%end
</ul>
<p class="about pull-right">
"A client side encrypted PasteBin"<br>
<span>All pastes are AES256 encrypted, we cannot know what you paste...</span>
</p>
2012-04-24 14:22:59 +04:00
</div>
2020-08-11 12:55:29 +03:00
<!--/.nav-collapse -->
2012-04-24 14:22:59 +04:00
</div>
</div>
2020-08-11 12:55:29 +03:00
</div>
<noscript class="noscript">
<div class="container jumbotron">
<h1 class="display-4">This site requires Javascript</h1>
<p class="lead">This pastebin uses client-side encryption, and therefore, it needs JavaScript to work.</p>
<p>It seems like your browser doesn't have JavaScript enabled.</p>
<p>Please enable JavaScript for this website or use a JavaScript-capable web browser.</p>
</div>
</noscript>
<div class="container app" id="wrap-content" v-cloak>
<div class="row">
<div class="span2">
<div class="well sidebar-nav">
<ul class="nav nav-list previous-pastes">
<li class="nav-header">Previous pastes</li>
<li class="item local-storage" v-if="previousPastes.length === 0">
<em class="grey">
Your previous pastes will be saved in your browser using
<a href="http://www.w3.org/TR/webstorage/">localStorage</a>.
</em>
</li>
<li class="item no-local-storage">
<em class="grey">
Sorry your browser does not support
<a href="http://www.w3.org/TR/webstorage/">LocalStorage</a>,
We cannot display your previous pastes.
</em>
</li>
<li :class="{item: true, active: paste.isCurrent}" v-for="paste in previousPastes">
<a :href="paste.link" @click="forceLoadPaste(paste.link)">
{% paste.prefix %}{% paste.displayDate %}
</a>
</li>
</ul>
</div>
<!--/.well -->
</div>
<!--/span-->
<div id='main' class="span10">
<p :class="'alert alert-' + msg.type" v-for="msg in messages">
2020-08-11 17:37:03 +03:00
<a class="close" data-dismiss="alert" href="#" @click.prevent="$event.target.parentNode.remove()">×</a>
2020-08-11 12:55:29 +03:00
<strong class="title" v-if="msg.title" v-html="msg.title"></strong>
<span class="message" v-html="msg.content"></span>
<a v-if="msg.action.message" href="#"
@click.once.prevent="msg.action.callback($event)">{% msg.action.message %}</a>
</p>
{{!base}}
2012-04-24 14:22:59 +04:00
2020-08-11 12:55:29 +03:00
</div>
<!--/span-->
</div>
<!--/row-->
<hr>
<footer>
<blockquote>
<p>“Few persons can be made to believe that it is not quite an easy thing to invent a method of secret writing
which shall baffle investigation. Yet it may be roundly asserted that human ingenuity cannot concoct a cipher
which human ingenuity cannot resolve...”</p>
2012-04-24 18:58:01 +04:00
<small>Edgar Allan Poe</small>
</blockquote>
2012-04-29 19:36:26 +04:00
2012-05-21 19:14:01 +04:00
%if settings.DISPLAY_COUNTER:
2020-08-11 12:55:29 +03:00
<h4 id="pixels-total">
<p>ø</p>
<strong>{{ pastes_count }}</strong> <br />pastes øbinned
</h4>
2012-05-21 19:14:01 +04:00
%end
2012-04-29 19:36:26 +04:00
2020-08-11 12:55:29 +03:00
<br>
<p class="greetings span12">
Based on an original idea from
<a href="http://sebsauvage.net/paste/">sebsauvage.net</a><br>
<a href="http://sametmax.com">Sam &amp; Max</a>
</p>
</footer>
</div>
<!--/wrap-content-->
<script src="/static/js/vue.js"></script>
%if settings.COMPRESSED_STATIC_FILES:
2020-08-11 17:37:03 +03:00
<script src="/static/js/main.min.js?{{ VERSION }}"></script>
2020-08-11 12:55:29 +03:00
%else:
<script src="/static/js/sjcl.js"></script>
2020-08-11 17:37:03 +03:00
<script src="/static/js/behavior.js?{{ VERSION }}"></script>
2020-08-11 12:55:29 +03:00
%end
<script type="text/javascript">
zerobin.max_size = {{ settings.MAX_SIZE }};
</script>
%if settings.COMPRESSED_STATIC_FILES:
2020-08-11 17:37:03 +03:00
<script src="/static/js/additional.min.js?{{ VERSION }}"></script>
2020-08-11 12:55:29 +03:00
%else:
2012-04-24 22:15:38 +04:00
2020-08-11 12:55:29 +03:00
<script src="/static/js/lzw.js"></script>
<script src="/static/js/prettify.min.js"></script>
%end
2012-04-30 00:15:11 +04:00
2020-08-11 12:55:29 +03:00
</body>
2012-04-30 00:15:11 +04:00
2012-04-24 14:22:59 +04:00
</html>