mailr/app/views/folders/_list.html.haml
Wojciech Todryk 0872730d8d view cleanup
2012-03-24 18:09:31 +01:00

17 lines
507 B
Plaintext
Executable file

.well{:style=>"padding: 8px 3pt;"}
- if @folders_shown.nil? or @folders_shown.size.zero?
%p
= t(:no_shown,:scope=>:folder)
= link_to t(:folders,:scope=>:folder), folders_path
- else
%ul{:class=>"nav nav-list"}
%li{:class=>"nav-header"}
=t(:folders,:scope=>:folder)
- @folders_shown.each do |folder|
- if folder == @current_folder
%li{:class=>"active"}
= folder_link(:folder=>folder,:active=>true)
- else
%li
= folder_link(:folder=>folder,:active=>false)