Add button to add a new repository from sidebar.

It's currently not obvious where to click to add a new repository,
and if anything, we should make it easier for people to set up
new repositories.
This commit is contained in:
Mathias Meyer 2014-05-06 14:46:52 +02:00
parent 21cbd7c0c3
commit 781a99edd8
3 changed files with 17 additions and 1 deletions

View File

@ -10,4 +10,8 @@
<li id="tab_search" {{bind-attr class="view.classSearch"}}>
<h5><a {{action "activate" "search" target="view"}}>Search</a></h5>
</li>
<li id="tab_new" {{bind-attr class="view.classNew"}}>
<h5>{{#link-to "profile.index" title="Add New Repository"}}+{{/link-to}}</h5>
</li>
</ul>

View File

@ -47,3 +47,7 @@
classSearch: (->
'active' if @get('tab') == 'search'
).property('tab')
classNew: (->
'display-inline' if @get('currentUser')
).property('currentUser')

View File

@ -44,8 +44,16 @@
display: none
#tab_owned.display
display: inline-block
#tab_new
display: none
height: 25px
width: 26px
h5
line-height: 25px
#tab_new.display
display: inline-block
#main
.tabs