tracks/app/views/sidebar/sidebar.html.erb
Marcus Ilgner fd3f69d927 Changed code to support basic i18n.
Added RubyMine configuration and rvm setup to .gitignore.
2010-11-09 16:31:26 +08:00

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>