mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Merge branch 'v2' of ksamuel-github:/Tygs/0bin into v2
This commit is contained in:
commit
500ca82b69
@ -53,10 +53,11 @@ ADMIN_CREDENTIALS = {
|
|||||||
# Names/links to insert in the menu bar.
|
# Names/links to insert in the menu bar.
|
||||||
# Any link with "mailto:" will be escaped to prevent spam
|
# Any link with "mailto:" will be escaped to prevent spam
|
||||||
MENU = (
|
MENU = (
|
||||||
("Home", "/"), # internal link. First link will be highlited
|
("Create paste", "/"), # internal link. First link will be highlited
|
||||||
("Download 0bin", "https://github.com/sametmax/0bin"), # external link
|
("Github", "https://github.com/Tygs/0bin"), # external link
|
||||||
("Faq", "/faq/"), # faq
|
("Faq", "/faq/"), # faq
|
||||||
("Contact", "mailto:your@email.com"), # email
|
("Contact", "mailto:your@email.com"), # email
|
||||||
|
("Zerobin Pastebin", "https://www.0bin.net/"), # Thanks the authors :)
|
||||||
)
|
)
|
||||||
|
|
||||||
# limit size of pasted text in bytes. Be careful allowing too much size can
|
# limit size of pasted text in bytes. Be careful allowing too much size can
|
||||||
|
@ -63,11 +63,7 @@ ol {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
li {
|
|
||||||
margin-left: -9px;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #2ea1d7;
|
color: #2ea1d7;
|
||||||
}
|
}
|
||||||
@ -111,6 +107,26 @@ blockquote {
|
|||||||
background-color: #424141;
|
background-color: #424141;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer li {
|
||||||
|
list-style-type: none;
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer li span{
|
||||||
|
color: #2ea1d7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer li span:hover{
|
||||||
|
color: #1888bc;
|
||||||
|
text-decoration: underline;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer li:not(:last-child):after {
|
||||||
|
content:' -';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Home */
|
/* Home */
|
||||||
|
|
||||||
.btn-group {
|
.btn-group {
|
||||||
@ -437,12 +453,15 @@ nav ul li a:hover {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submenu ul {
|
.submenu ul {
|
||||||
position: absolute;
|
display: none;
|
||||||
margin: 8px 0 0px 9px;
|
position: absolute;
|
||||||
display: none;
|
margin: 8px 0 0px 9px;
|
||||||
width: -webkit-fill-available;
|
width: -webkit-fill-available;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
border: 1px solid #666;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.submenu li {
|
.submenu li {
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<li class="submenu"><a href="#" @click="openPreviousPastesMenu = !openPreviousPastesMenu">Previous
|
<li class="submenu"><a href="#" @click.prevent="openPreviousPastesMenu = !openPreviousPastesMenu">Previous
|
||||||
pastes +</a>
|
pastes +</a>
|
||||||
<ul class="previous-pastes" id="topmenu" v-if="openPreviousPastesMenu"
|
<ul class="previous-pastes" id="topmenu" v-if="openPreviousPastesMenu"
|
||||||
@mouseleave="openPreviousPastesMenu =false">
|
@mouseleave="openPreviousPastesMenu =false">
|
||||||
@ -62,9 +62,21 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<a href="https://www.0bin.net/">Create a paste</a> - <a href="/faq/">Faq</a> - <a
|
<ul>
|
||||||
href="https://github.com/sametmax/0bin">Github</a>
|
%for i, entry in enumerate(settings.MENU):
|
||||||
<br>
|
<li>
|
||||||
|
%if "mailto:" in entry[1]:
|
||||||
|
<span :title='formatEmail(`{{ entry[1].replace("mailto:", "").replace("@", "__AT__") }}`)'
|
||||||
|
class="email-link" >
|
||||||
|
{{ entry[0] }}
|
||||||
|
</span>
|
||||||
|
%else:
|
||||||
|
<a href="{{ entry[1] }}">{{ entry[0] }}</a>
|
||||||
|
%end
|
||||||
|
</li>
|
||||||
|
%end
|
||||||
|
</ul>
|
||||||
|
|
||||||
%if settings.DISPLAY_COUNTER:
|
%if settings.DISPLAY_COUNTER:
|
||||||
<strong>{{ pastes_count }}</strong> pastes øbinned
|
<strong>{{ pastes_count }}</strong> pastes øbinned
|
||||||
%end
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user