move local repo list out of control menu

This commit is contained in:
Joey Hess 2013-01-03 16:34:57 -04:00
parent 4c0fb330eb
commit 09cbbaf537
8 changed files with 36 additions and 28 deletions

View file

@ -0,0 +1,14 @@
<div .span9 .hero-unit>
<h2>
Switch repository
<p>
$if null repolist
There are no other local repositories. Want to #
<a href="@{NewRepositoryR}">add one</a>?
$else
You can switch to any of these other local repositories:
<ul>
$forall (name, path) <- repolist
<li>
<a href="@{SwitchToRepositoryR path}">
#{name}

View file

@ -1,12 +1,8 @@
<ul .dropdown-menu>
$forall (name, path) <- repolist
<li>
<a href="@{SwitchToRepositoryR path}">
<i .icon-folder-close></i> #{name}
$if not (null repolist)
<li .divider></li>
<li>
<a href="@{NewRepositoryR}">
<i .icon-plus-sign></i> Add another repository
<i .icon-plus-sign></i> Add another local repository
<a href="@{RepositorySwitcherR}">
<i .icon-folder-close></i> Switch repository
<a href="@{ShutdownR}">
<i .icon-off></i> Shut down