mailr/app/views/links/index.html.haml
Wojciech Todryk a5b6df393c fixes
2012-04-15 19:51:58 +02:00

36 lines
1.4 KiB
Plaintext
Executable file

= content_for :sidebar do
= render :partial => "sidebar/sidebar"
= content_for :title do
\-
= t(:links,:scope=>:link)
= render :partial => 'common/main_navigation', :locals => { :links => :active }
%form{:class=>"form-horizontal top-pix18",:action=>url_for(@link),:method=>"post"}
- if @links.size.zero?
.alert
= t(:no_entries,:scope=>:link)
%p{:class=>"bottom-pix18"}
= render :partial => "common/anchor", :locals => {:caption=>t('create_new',:scope=>'link'),
:icon=>'icon-plus icon-white',
:href=>new_link_path}
- else
.well{:style=>"padding: 5px 3pt;"}
%h5
= t(:total_entries,:scope=>:link)
\:
= @links.total_entries
%p{:class=>"bottom-pix18"}
= render :partial => "common/anchor", :locals => {:caption=>t('create_new',:scope=>'link'),
:icon=>'icon-plus icon-white',
:href=>new_link_path}
= render :partial => "common/button", :locals => {:name=>'delete_selected',
:caption=>t('delete_selected',:scope=>'link'),
:icon=>'icon-minus icon-white'}
= render :partial => 'list'
= render :partial => 'common/import_export',:locals=>{:im_ex_path => links_import_export_path,
:im_ex_label => t(:select_file,:scope=>:link),
:im_ex_size => @links.total_entries }