<div class="jumbotron landing">
  <div class="landing-background" ng-class="user.anonymous ? 'landing': 'signedin'"></div>
  <div class="landing-filter" ng-class="user.anonymous ? 'landing': 'signedin'"></div>
  <div class="landing-content">
    <div class="container">
      <div class="row messages">
        <div class="col-md-7">
          <div ng-show="user.anonymous" style="text-align: center">
            <span style="display: inline-block; background: white; padding: 10px; border-radius: 10px;">
              <img ng-src="{{ getEnterpriseLogo() }}" style="max-height: 100px;">
            </span>
            <h1>Enterprise Registry</h1>
          </div>

          <div ng-show="!user.anonymous">
            <span class="namespace-selector" user="user" namespace="namespace" ng-show="user.organizations"></span>

            <div class="resource-view" resource="my_repositories">
              <!-- Repos -->
              <div ng-show="my_repositories.value.length > 0">
                <h2>Top Repositories</h2>
                <div class="repo-listing" ng-repeat="repository in my_repositories.value">
                  <span class="repo-circle no-background" repo="repository"></span>
                  <a ng-href="/repository/{{ repository.namespace }}/{{ repository.name }}">{{repository.namespace}}/{{repository.name}}</a>
                  <div class="markdown-view description" content="repository.description" first-line-only="true"></div>
                </div>
                <a href="/repository/?namespace={{ namespace }}">See All Repositories</a>
              </div>

              <!-- No Repos -->
              <div ng-show="my_repositories.value.length == 0">
                <div class="sub-message" style="margin-top: 20px">
                  <span ng-show="namespace != user.username">You don't have access to any repositories in this organization yet.</span>
                  <span ng-show="namespace == user.username">You don't have any repositories yet!</span>
                  <div class="options">
                    <a class="btn btn-primary" href="/repository/">Browse all repositories</a>
                    <a class="btn btn-success" href="/new/" ng-show="canCreateRepo(namespace)">Create a new repository</a>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div> <!-- col -->

        <div class="col-md-4 col-md-offset-1">
          <div ng-show="user.anonymous">
            <div class="signup-form"></div>
          </div>
          <div ng-show="!user.anonymous" class="user-welcome">
            <span class="avatar" size="128" hash="user.avatar"></span>
            <div class="sub-message">Welcome <b>{{ user.username }}</b>!</div>
            <a ng-show="my_repositories.value" class="btn btn-primary" href="/repository/">Browse all repositories</a>
            <a class="btn btn-success" href="/new/">Create a new repository</a>
          </div>
        </div> <!-- col -->
      </div> <!-- row -->
    </div> <!-- container -->
  </div>
</div> <!-- jumbotron -->
