Sha256: 5cbcf7eb50026c11562765160161b590cc0cbd0a238b1322d2293e786c8416a0

Contents?: true

Size: 519 Bytes

Versions: 15

Compression:

Stored size: 519 Bytes

Contents

# -*- encoding: utf-8 -*-

module WatchTower
  module Server
    module Presenters
      class ProjectPresenter < ApplicationPresenter

        # Return a file tree representation of a bunch of files
        #
        # @return [String] HTML representation of a file tree
        def file_tree(files)
          # Create a FileTree
          file_tree = FileTree.new(files.first.project.path, files)
          # Parse and return the tree
          parse_file_tree(file_tree, true)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
watch_tower-0.0.3 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.2 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta12 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta11 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta10 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta9 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta8 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta7 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta6 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta5 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta4 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta3 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta2 lib/watch_tower/server/presenters/project_presenter.rb
watch_tower-0.0.1.beta1 lib/watch_tower/server/presenters/project_presenter.rb