<div ng-controller="Wiki.ViewController">

  <script type="text/ng-template" id="fileCellTemplate.html">
    <div class="ngCellText"
         title="{{fileName(row.entity)}} - Last Modified: {{row.entity.lastModified | date:'medium'}}, Size: {{row.entity.length}}">
      <a href="{{childLink(row.entity)}}" class="file-name">
        <span class="file-icon"
              ng-class="fileClass(row.entity)"
              ng-bind-html-unsafe="fileIconHtml(row)">

              </span>{{fileName(row.entity)}}
      </a>
    </div>
  </script>

  <script type="text/ng-template" id="fileColumnTemplate.html">

    <div class="ngHeaderSortColumn {{col.headerClass}}"
         ng-style="{'cursor': col.cursor}"
         ng-class="{ 'ngSorted': !noSortVisible }">

      <div class="ngHeaderText" ng-hide="pageId === '/'">
        <a ng-href="{{parentLink()}}"
           class="wiki-file-list-up"
           title="Open the parent folder">
          <i class="icon-level-up"></i> Up a directory
        </a>
      </div>
    </div>

  </script>

  <ng-include src="'app/wiki/html/viewNavBar.html'"></ng-include>

  <div class="wiki-fixed form-horizontal">

    <div class="row-fluid">
      <div class="span3" ng-hide="!children">
        <div class="gridStyle wiki-grid" ng-grid="gridOptions"></div>
      </div>

      <div ng-class="displayClass()">
        <div ng-hide="!showProfileHeader">
          <div class="row-fluid">
            <div class="span12">
              <div fabric-profile-details version-id="versionId" profile-id="profileId"></div>
              <p></p>
            </div>
          </div>
        </div>

        <div ng-hide="!html" wiki-href-adjuster>
          <div class="row-fluid">
            <div class="span12">
              <div ng-bind-html-unsafe="html"></div>
            </div>
          </div>
        </div>

        <div ng-include="sourceView" class="editor-autoresize"></div>
      </div>
    </div>
  </div>
</div>
