2007-03-30 04:36:52 +00:00
|
|
|
<div id="sidebar">
|
2008-02-13 13:24:22 +00:00
|
|
|
<% # show active items before hidden / completed items -%>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
|
|
|
|
<%= render :partial => "sidebar/project_list",
|
|
|
|
|
:locals => { :list_name => 'Active Projects',
|
|
|
|
|
:projects => @projects.select{|p| p.active? } } -%>
|
|
|
|
|
|
2008-02-13 13:24:22 +00:00
|
|
|
<%= render :partial => "sidebar/context_list",
|
|
|
|
|
:locals => { :list_name => 'Active Contexts',
|
|
|
|
|
:contexts => @contexts.reject{|c| c.hide? } } -%>
|
|
|
|
|
|
2007-07-30 05:29:18 +00:00
|
|
|
<% if prefs.show_hidden_projects_in_sidebar -%>
|
2008-02-13 13:24:22 +00:00
|
|
|
<%= render :partial => "sidebar/project_list",
|
|
|
|
|
:locals => { :list_name => 'Hidden Projects',
|
2007-03-30 04:36:52 +00:00
|
|
|
:projects => @projects.select{|p| p.hidden? } } -%>
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
2007-07-30 05:29:18 +00:00
|
|
|
<% if prefs.show_completed_projects_in_sidebar -%>
|
2008-02-13 13:24:22 +00:00
|
|
|
<%= render :partial => "sidebar/project_list",
|
|
|
|
|
:locals => { :list_name => 'Completed Projects',
|
2007-03-30 04:36:52 +00:00
|
|
|
:projects => @projects.select{|p| p.completed? } } -%>
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
2007-07-30 05:29:18 +00:00
|
|
|
<% if prefs.show_hidden_contexts_in_sidebar -%>
|
2007-03-30 04:36:52 +00:00
|
|
|
<%= render :partial => "sidebar/context_list",
|
|
|
|
|
:locals => { :list_name => 'Hidden Contexts',
|
|
|
|
|
:contexts => @contexts.select{|c| c.hide? } } -%>
|
|
|
|
|
<% end -%>
|
2007-10-14 05:33:00 +00:00
|
|
|
|
2007-12-05 06:53:49 +00:00
|
|
|
<div class="integrations-link"><ul>
|
|
|
|
|
<li><%= link_to 'Integrate Tracks', integrations_path %></li>
|
|
|
|
|
<li><%= link_to 'REST API Docs', url_for(:controller => 'integrations', :action => 'rest_api') %></li>
|
|
|
|
|
</ul></div>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
|
|
|
|
</div>
|