pushhub
Version:
A github inspired interface to browse your Git repositories, built on top of expressjs and pushover
36 lines (34 loc) • 1.27 kB
text/jade
.quick-nav.margin-bottom
.container
a.toggle
span.label Switch Branches/Tags
.options
ul.options-inner
li.option-title --- Branches ---
each branch in branches
if ref == branch
li.current
span= branch
span.pictogram.ok.
else:
li
a(href='/' + repo +'/tree/' + branch + '/')= branch
if tags.length
li.option-title --- Tags ---
each tag in tags
if ref == tag
li.current
span= tag
span.pictogram.ok.
else
li
a(href='/' + repo +'/tree/' + tag + '/')= tag
nav.tabs
if view == 'tree' || view == 'blob'
li.selected: a(href='/' + repo + '/') Files
else
li: a(href='/' + repo + '/') Files
if view == 'history'
li.selected: a(href='/' + repo + '/commits/' + ref) Commits
else
li: a(href='/' + repo + '/commits/' + ref) Commits