mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-02 23:38:50 +01:00
30 lines
No EOL
1.1 KiB
Text
30 lines
No EOL
1.1 KiB
Text
<div id="sidebar">
|
|
<% # show active items before hidden / completed items -%>
|
|
|
|
<%= render :partial => "sidebar/project_list",
|
|
:locals => { :list_name => t('sidebar.list_name_active_projects'),
|
|
:projects => @active_projects } -%>
|
|
|
|
<%= render :partial => "sidebar/context_list",
|
|
:locals => { :list_name => t('sidebar.list_name_active_contexts'),
|
|
:contexts => @active_contexts } -%>
|
|
|
|
<% if prefs.show_hidden_projects_in_sidebar -%>
|
|
<%= render :partial => "sidebar/project_list",
|
|
:locals => { :list_name => t('sidebar.list_name_hidden_projects'),
|
|
:projects => @hidden_projects } -%>
|
|
<% end -%>
|
|
|
|
<% if prefs.show_completed_projects_in_sidebar -%>
|
|
<%= render :partial => "sidebar/project_list",
|
|
:locals => { :list_name => t('sidebar.list_name_completed_projects'),
|
|
:projects => @completed_projects } -%>
|
|
<% end -%>
|
|
|
|
<% if prefs.show_hidden_contexts_in_sidebar -%>
|
|
<%= render :partial => "sidebar/context_list",
|
|
:locals => { :list_name => t('sidebar.list_name_hidden_contexts'),
|
|
:contexts => @hidden_contexts } -%>
|
|
<% end -%>
|
|
|
|
</div> |