Sha256: ef8b5671725644d86bbc8e81f699ca22a5246bac81602ebea48d0df9724405f7

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

module Protozoa
  module Views
    class Index < Layout
      attr_reader :entries, :ref

      def title
        "All pages for #{Amiba::Configuration.site_name}"
      end

      def has_entries
        !@entries.empty?
      end
      
      def no_entries 
        @entries.empty?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amiba-0.0.9 lib/amiba/frontend/views/index.rb