Sha256: d65183055934285d156d0ea6e23f92639cf1c588156be3455ee72438dc9898f1

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

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

      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

3 entries across 3 versions & 1 rubygems

Version Path
amiba-1.0.2 lib/amiba/frontend/views/index.rb
amiba-1.0.1 lib/amiba/frontend/views/index.rb
amiba-1.0.0 lib/amiba/frontend/views/index.rb