Sha256: ba9b224a862c85197e799de742731aa3f89c28d7e4096ee95a54fddc2d33bafa
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
#admin_buttons -case params[:action] -when 'index' //new =link_to image_tag('icons/new.png', :alt=>'[new]'), send("new_#{params[:controller].singularize}_path"), :class => 'admin_new', :title => 'New' -when 'new', 'create' //index =link_to image_tag('icons/list_all.png', :alt=>"[List All #{params[:controller].titleize}]"), send("#{params[:controller]}_path"), :class => 'admin_list', :title => "All #{params[:controller].titleize}" -when 'show' //edit, index =link_to image_tag('icons/list_all.png', :alt=>"[List All #{params[:controller].titleize}]"), send("#{params[:controller]}_path"), :class => 'admin_list', :title => "List All #{params[:controller].titleize}" =link_to image_tag('icons/edit.png', :alt=>"[Edit]"), send("edit_#{params[:controller].singularize}_path"), :class => 'admin_edit', :title => 'Edit' -when 'edit', 'update' /show, index =link_to image_tag('icons/list_all.png', :alt=>"[List All #{params[:controller].titleize}]"), send("#{params[:controller]}_path"), :class => 'admin_list', :title => "List All #{params[:controller].titleize}" =link_to image_tag('icons/show.png', :alt=>'[show]'), send("#{params[:controller].singularize}_path", @resource), :class => 'admin_show', :title => 'Show'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pixelearth-3.2.4 | app/views/pixelearth_base/admin/_admin_buttons.html.haml |