mailr/app/views/links/index.html.haml
Wojciech Todryk 77c8d3e7d7 devel
2012-03-30 19:31:23 +02:00

34 lines
1.2 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'