travis-web/assets/scripts/app/templates/repos/list/tabs.hbs
Piotr Sarnacki 5f2f4c3852 First stab at fixing weird view errors
This commit starts refactoring of one of the remaining areas where we do weird
tricks to get the desired behaviour. Namely, we were treating "my_repositories"
and "recent" not as individual routes with separate URLs, but only different
states on the repos controller. Such approach leads to various problem with
connecting outlets on rerenders (ie. we don't explicitly connect outlets when
changing from one view to another programatically).

A new cleaner way is to change both tabs into routes.
2014-12-29 18:17:55 +01:00

18 lines
607 B
Handlebars

<ul class="tabs">
<li id="tab_owned" {{bind-attr class="view.classOwned"}}>
<h5>{{#link-to "index.my_repositories"}}My Repositories{{/link-to}}</h5>
</li>
<li id="tab_recent" {{bind-attr class="view.classRecent"}}>
<h5>{{#link-to "index.recent"}}Recent{{/link-to}}</h5>
</li>
<li id="tab_search" {{bind-attr class="view.classSearch"}}>
<h5><a {{action "activate" "search"}}>Search</a></h5>
</li>
<li id="tab_new" {{bind-attr class="view.classNew"}}>
<h5>{{#link-to "profile" trackEvent="add-repository-from-list" title="Add New Repository"}}+{{/link-to}}</h5>
</li>
</ul>