 
     render_first_steps: ->
         name = 'first_steps'
+        return if @props.public_view
         return if not @props.library[name]
         return if not (@props.other_settings?.get(name) ? false)
-        return if @props.public_view
         return if @props.current_path isnt '' # only show in $HOME
         return if @props.file_map[name]?.isdir  # don't show if we have it ...
         return if @props.file_search[0] is TERM_MODE_CHAR

#
###############################################################################

{React, ReactDOM, rtypes, rclass, redux, Redux} = require('./app-framework')
{Col, Row, ButtonToolbar, ButtonGroup, MenuItem, Button, Well, FormControl, FormGroup, Radio,
ButtonToolbar, Popover, OverlayTrigger, SplitButton, MenuItem, Alert, Checkbox, Breadcrumb, Navbar} =  require('react-bootstrap')
misc = require('smc-util/misc')
{ActivityDisplay, DirectoryInput, Icon, ProjectState, COLORS,
SearchInput, TimeAgo, ErrorDisplay, Space, Tip, Loading, LoginLink, Footer, CourseProjectExtraHelp, CopyToClipBoard} = require('./r_misc')
{SMC_Dropwrapper} = require('./smc-dropzone')
{FileTypeSelector, NewFileButton} = require('./project_new')
{SiteName} = require('./customize')

            <TerminalModeDisplay/>

    render : ->
        <Fragment>
            <Col sm={12} style={zIndex:1}>
                {@render_terminal_mode() if not @props.public_view}
                {<ListingHeader
                    active_file_sort = {@props.active_file_sort}
                    sort_by          = {@props.sort_by}
                    check_all        = {false}
                    /> if @props.listing.length > 0}
                {@render_rows()}
                {@render_no_files()}
            </Col>
            <VisibleMDLG>
                {@render_first_steps()}
            </VisibleMDLG>
        </Fragment>

# One segment of the directory links at the top of the files listing.
PathSegmentLink = rclass
