Move project link in footer
This commit is contained in:
parent
a8de9ae437
commit
bcbf25a6b1
4 changed files with 17 additions and 7 deletions
|
|
@ -146,10 +146,10 @@ function expandVersion (version) {
|
|||
// Auto expand menu to display current version
|
||||
window.setTimeout(expandVersion, 1)
|
||||
|
||||
var version = document.querySelector('.version')
|
||||
var tag = document.querySelector('.version em')
|
||||
var openMenu = document.querySelector('.open-menu')
|
||||
var wrapper = document.querySelector('.wrapper')
|
||||
openMenu.onclick = version.onclick = function (e) {
|
||||
openMenu.onclick = tag.onclick = function (e) {
|
||||
e.preventDefault()
|
||||
wrapper.classList.toggle('show-menu')
|
||||
}
|
||||
|
|
|
|||
|
|
@ -249,9 +249,19 @@ main > div {
|
|||
font-style: normal;
|
||||
padding-left: 0.3em;
|
||||
}
|
||||
.version a {
|
||||
color: #444;
|
||||
font-weight: 700;
|
||||
}
|
||||
.version em {
|
||||
margin-left: 0.3em;
|
||||
}
|
||||
.version em::before {
|
||||
margin-right: 0.3em;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.go-top,
|
||||
.poweredby,
|
||||
.mimetype {
|
||||
.poweredby {
|
||||
float: right;
|
||||
}
|
||||
.poweredby {
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ data = {
|
|||
'project': project,
|
||||
'projects': projects,
|
||||
'ident': ident,
|
||||
'breadcrumb': '<a class="project" href="'+version+'/source">'+project+'</a>'
|
||||
'breadcrumb': '<a class="project" href="'+version+'/source">/</a>'
|
||||
}
|
||||
|
||||
lines = do_query ('versions')
|
||||
|
|
@ -183,7 +183,7 @@ if mode == 'source':
|
|||
links.append ('<a href="'+version+'/source'+p2+'">'+p+'</a>')
|
||||
|
||||
if links:
|
||||
data['breadcrumb'] += ':' + '/'.join (links)
|
||||
data['breadcrumb'] += '/'.join (links)
|
||||
|
||||
data['ident'] = ident
|
||||
data['title'] = project+path+' - Elixir - Free Electrons'
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
{{main}}
|
||||
</div>
|
||||
<footer class="footer">
|
||||
<span class="version">version : <strong>{{tag}}</strong></span>
|
||||
<span class="version"><a href="{{version}}/source">{{project}}</a> <em class="icon-tag">{{tag}}</em></span>
|
||||
<a title="Go to top of the page" class="go-top icon-up screenreader" href="{{version}}/{{url}}#">Top</a>
|
||||
<span class="poweredby">powered by <a target="_blank" href="https://github.com/free-electrons/elixir">Elixir 0.1.2</a></span>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Reference in a new issue