2007-03-30 04:36:52 +00:00
|
|
|
<div id="sidebar">
|
2009-03-27 17:03:18 +01:00
|
|
|
<% # show active items before hidden / completed items -%>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2009-03-27 17:03:18 +01:00
|
|
|
<%= render :partial => "sidebar/project_list",
|
2010-10-31 21:27:13 +08:00
|
|
|
:locals => { :list_name => t('sidebar.list_name_active_projects'),
|
2009-03-27 17:03:18 +01:00
|
|
|
:projects => @active_projects } -%>
|
2008-02-13 13:24:22 +00:00
|
|
|
|
2009-03-27 17:03:18 +01:00
|
|
|
<%= render :partial => "sidebar/context_list",
|
2010-10-31 21:27:13 +08:00
|
|
|
:locals => { :list_name => t('sidebar.list_name_active_contexts'),
|
2009-03-27 17:03:18 +01:00
|
|
|
:contexts => @active_contexts } -%>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2009-03-27 17:03:18 +01:00
|
|
|
<% if prefs.show_hidden_projects_in_sidebar -%>
|
|
|
|
|
<%= render :partial => "sidebar/project_list",
|
2010-10-31 21:27:13 +08:00
|
|
|
:locals => { :list_name => t('sidebar.list_name_hidden_projects'),
|
2009-03-27 17:03:18 +01:00
|
|
|
:projects => @hidden_projects } -%>
|
|
|
|
|
<% end -%>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
2009-03-27 17:03:18 +01:00
|
|
|
<% if prefs.show_completed_projects_in_sidebar -%>
|
|
|
|
|
<%= render :partial => "sidebar/project_list",
|
2010-10-31 21:27:13 +08:00
|
|
|
:locals => { :list_name => t('sidebar.list_name_completed_projects'),
|
2009-03-27 17:03:18 +01:00
|
|
|
:projects => @completed_projects } -%>
|
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
|
|
<% if prefs.show_hidden_contexts_in_sidebar -%>
|
|
|
|
|
<%= render :partial => "sidebar/context_list",
|
2010-10-31 21:27:13 +08:00
|
|
|
:locals => { :list_name => t('sidebar.list_name_hidden_contexts'),
|
2009-03-27 17:03:18 +01:00
|
|
|
:contexts => @hidden_contexts } -%>
|
|
|
|
|
<% end -%>
|
2007-03-30 04:36:52 +00:00
|
|
|
|
|
|
|
|
</div>
|