+path = require 'path'
+
 _ = require 'underscore-plus'
+fs = require 'fs-plus'
 {$$, EditorView, View} = require 'atom'
 
 ErrorView = require './error-view'

          @div outlet: 'featuredContainer', class: 'container package-container'

  initialize: (@packageManager) ->
    @results.hide()
    @emptyMessage.hide()


      @div class: 'section packages', =>
        @div class: 'section-heading theme-heading icon icon-cloud-download', 'Install Packages'

        @div class: 'text padded', =>
          @span class: 'icon icon-question'
          @span 'Packages are hosted on  '
          @a class: 'link', outlet: "openAtomIo", "atom.io"
          @span " and are installed to #{path.join(fs.getHomeDirectory(), '.atom', 'packages')}"

        @div outlet: 'errors'

        @div class: 'editor-container padded', =>
          @subview 'searchEditorView', new EditorView(mini: true)

        @div outlet: 'results', =>
          @div outlet: 'searchMessage', class: 'icon icon-search text'
