Sha256: aebdef615e93672bc59ee2d4bc79a063e45dfd97669872738a7b9e127b5749a6
Contents?: true
Size: 1 KB
Versions: 6
Compression:
Stored size: 1 KB
Contents
module ActiveAdmin module Views module Pages #Custom footer #\lib\active_admin\views\pages\base.rb class Base < Arbre::HTML::Document private def build_footer div :id => "footer" do para "#{CONFIG[:application][:name]} #{Rails.env} #{CONFIG[:application][:version]}, <%= Time.now.year %>.".html_safe para style_image_tag "logo.png" end end end end #Avoid xml and json from download #\lib\active_admin\views\components\paginated_collection.rb #class PaginatedCollection # def build_download_format_links(formats = [:csv]) # links = formats.collect do |format| # link_to format.to_s.upcase, { :format => format}.merge(request.query_parameters.except(:commit, :format)) # end # div :class => "download_links" do # text_node [I18n.t('active_admin.download'), links].flatten.join(" ").html_safe # end # end #end end end
Version data entries
6 entries across 6 versions & 1 rubygems