Commit a8ee8373 authored by Konrad Borowski's avatar Konrad Borowski

Add source code link

parent 70ab802f
Pipeline #99044277 passed with stages
in 24 minutes and 42 seconds
export default function addOptionsLink() {
const ul = document.createElement('ul')
const li = document.createElement('li')
const a = document.createElement('a')
a.textContent = 'Config'
a.href = '/config'
li.append(a)
ul.append(li)
document.getElementById('menu-buttons').append(ul)
document.querySelector('#menu-buttons ul').append(li)
}
......@@ -33,6 +33,11 @@ body {
}
#header li {
display: inline;
border-left: 1px solid #440;
padding: 0 0.5em;
}
#header li:first-child {
border: none;
}
#article {
margin: 0 auto;
......
......@@ -13,7 +13,7 @@
<a href="/">
<h1>pastebin<small>.run</small></h1>
</a>
<nav id="menu-buttons"></nav>
<nav id="menu-buttons"><ul><li><a href="https://gitlab.com/pastebin.run/server">Source code</a></li></ul></nav>
</div>
</header>
<article id=article>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment