move local repo list out of control menu
This commit is contained in:
parent
4c0fb330eb
commit
09cbbaf537
8 changed files with 36 additions and 28 deletions
14
templates/control/repositoryswitcher.hamlet
Normal file
14
templates/control/repositoryswitcher.hamlet
Normal 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}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue