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("&nbsp;").html_safe
    #    end
    #  end
    #end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_leonardo-0.2.3 lib/generators/leolay/templates/config/initializers/activeadmin_leonardo.rb
active_leonardo-0.2.2 lib/generators/leolay/templates/config/initializers/activeadmin_leonardo.rb
active_leonardo-0.2.1 lib/generators/leolay/templates/config/initializers/activeadmin_leonardo.rb
active_leonardo-0.2.0 lib/generators/leolay/templates/config/initializers/activeadmin_leonardo.rb
active_leonardo-0.1.0 lib/generators/leolay/templates/config/initializers/activeadmin_leonardo.rb
active_leonardo-0.0.7 lib/generators/leolay/templates/config/initializers/activeadmin_leonardo.rb