2015-04-07 22:33:43 +00:00
|
|
|
<div class="header-bar-element">
|
|
|
|
<div class="header-bar-content" ng-class="searchVisible ? 'search-visible' : ''">
|
|
|
|
<!-- Quay -->
|
|
|
|
<div class="navbar-header">
|
2015-04-20 18:20:29 +00:00
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
|
2015-04-07 22:33:43 +00:00
|
|
|
≡
|
|
|
|
</button>
|
2015-04-08 19:15:21 +00:00
|
|
|
<a class="navbar-brand" ng-href="{{ user.anonymous ? '/' : '/repository/' }}" target="{{ appLinkTarget() }}">
|
2015-04-07 22:33:43 +00:00
|
|
|
<span id="quay-logo" ng-style="{'background-image': 'url(' + getEnterpriseLogo() + ')'}"></span>
|
|
|
|
</a>
|
2015-04-21 16:21:32 +00:00
|
|
|
<span class="user-tools visible-xs" style="float: right;">
|
|
|
|
<i class="fa fa-search fa-lg user-tool" ng-click="toggleSearch()"
|
2015-05-19 21:52:44 +00:00
|
|
|
data-placement="bottom" data-title="Search" bs-tooltip
|
|
|
|
ng-if="searchingAllowed"></i>
|
2015-04-21 16:21:32 +00:00
|
|
|
</span>
|
2015-04-07 22:33:43 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Collapsable stuff -->
|
|
|
|
<div class="collapse navbar-collapse navbar-ex1-collapse">
|
2015-04-08 19:15:21 +00:00
|
|
|
<!-- Not signed in -->
|
|
|
|
<ul class="nav navbar-nav navbar-links" ng-if="user.anonymous">
|
2015-04-07 22:33:43 +00:00
|
|
|
<li><a ng-href="/tour/" target="{{ appLinkTarget() }}" quay-section="tour">Tour</a></li>
|
|
|
|
<li><a ng-href="/tutorial/" target="{{ appLinkTarget() }}" quay-section="tutorial">Tutorial</a></li>
|
|
|
|
<li quay-require="['BILLING']"><a ng-href="/plans/" target="{{ appLinkTarget() }}" quay-section="plans">Pricing</a></li>
|
2015-04-08 19:15:21 +00:00
|
|
|
<li><a href="http://docs.quay.io/" target="_blank">Docs</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Signed in -->
|
|
|
|
<ul class="nav navbar-nav navbar-links" ng-if="!user.anonymous">
|
|
|
|
<li><a ng-href="/repository/" target="{{ appLinkTarget() }}" quay-section="repository">Repositories</a></li>
|
|
|
|
<li><a ng-href="/tutorial/" target="{{ appLinkTarget() }}" quay-section="tutorial">Tutorial</a></li>
|
|
|
|
<li><a href="http://docs.quay.io/" target="_blank">Docs</a></li>
|
2015-04-07 22:33:43 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Phone -->
|
|
|
|
<ul class="nav navbar-nav navbar-right visible-xs" ng-switch on="user.anonymous">
|
|
|
|
<li ng-switch-when="false">
|
2015-04-21 16:16:32 +00:00
|
|
|
<a href="/user/{{ user.username }}?tab=settings" class="user-view" target="{{ appLinkTarget() }}">
|
2015-04-07 22:33:43 +00:00
|
|
|
<span class="avatar" size="32" data="user.avatar"></span>
|
|
|
|
{{ user.username }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li ng-switch-default>
|
|
|
|
<a class="user-view" href="/signin/" target="{{ appLinkTarget() }}">Sign in</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Normal -->
|
|
|
|
<ul class="nav navbar-nav navbar-right hidden-xs" ng-switch on="user.anonymous">
|
|
|
|
<li>
|
|
|
|
<span class="navbar-left user-tools">
|
|
|
|
<i class="fa fa-search fa-lg user-tool" ng-click="toggleSearch()"
|
2015-05-19 21:52:44 +00:00
|
|
|
data-placement="bottom" data-title="Search - Keyboard Shortcut: /" bs-tooltip
|
|
|
|
ng-if="searchingAllowed"></i>
|
2015-04-07 22:33:43 +00:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span class="navbar-left user-tools with-menu" ng-show="!user.anonymous">
|
|
|
|
<span class="dropdown">
|
|
|
|
<a href="javascript:void(0)" class="dropdown-toggle new-menu" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-plus user-tool"
|
|
|
|
data-placement="bottom" data-title="Create New..." bs-tooltip></i>
|
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu context-dropdown">
|
|
|
|
<li>
|
|
|
|
<a href="/organizations/new">
|
|
|
|
<span class="avatar" size="16" data="{'name': '+', color: '#ccc'}"></span>
|
|
|
|
New Organization
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="/new{{ getNamespace(currentPageContext) ? '?namespace=' + getNamespace(currentPageContext) : '' }}">
|
|
|
|
<i class="fa fa-hdd-o"></i> New Repository
|
|
|
|
</a>
|
|
|
|
</li>
|
2015-04-08 15:54:04 +00:00
|
|
|
<li role="presentation" class="divider" ng-if="getNamespace(currentPageContext) && canAdmin(getNamespace(currentPageContext))"></li>
|
2015-04-07 22:33:43 +00:00
|
|
|
<li role="presentation" class="dropdown-header"
|
2015-04-08 15:54:04 +00:00
|
|
|
ng-if="getNamespace(currentPageContext) && canAdmin(getNamespace(currentPageContext))">
|
2015-04-07 22:33:43 +00:00
|
|
|
Namespace {{ getNamespace(currentPageContext) }}
|
|
|
|
</li>
|
|
|
|
<li ng-if="isOrganization(getNamespace(currentPageContext)) && canAdmin(getNamespace(currentPageContext))">
|
|
|
|
<a href="javascript:void(0)" ng-click="createTeam(currentPageContext)">
|
|
|
|
<i class="fa fa-group"></i> New Team
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li ng-if="canAdmin(getNamespace(currentPageContext))">
|
|
|
|
<a href="javascript:void(0)" ng-click="createRobot(currentPageContext)">
|
2015-04-23 20:41:47 +00:00
|
|
|
<i class="fa ci-robot"></i> New Robot Account
|
2015-04-07 22:33:43 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2015-06-22 16:17:14 +00:00
|
|
|
<li role="presentation" class="divider" ng-if="currentPageContext.repository && currentPageContext.repository.can_write"></li>
|
2015-04-07 22:33:43 +00:00
|
|
|
<li role="presentation" class="dropdown-header"
|
2015-06-22 16:17:14 +00:00
|
|
|
ng-if="currentPageContext.repository && currentPageContext.repository.can_write">
|
2015-04-07 22:33:43 +00:00
|
|
|
Repository {{ currentPageContext.repository.namespace }}/{{ currentPageContext.repository.name }}
|
|
|
|
</li>
|
2015-06-22 16:17:14 +00:00
|
|
|
<li ng-if="currentPageContext.repository && currentPageContext.repository.can_write">
|
2015-04-07 22:38:58 +00:00
|
|
|
<a href="javascript:void(0)" ng-click="startBuild()">
|
2015-04-07 22:33:43 +00:00
|
|
|
<i class="fa fa-tasks"></i> New Dockerfile Build
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<span class="navbar-left user-tools" ng-show="!user.anonymous">
|
|
|
|
<a href="javascript:void(0)" data-template="/static/directives/notification-bar.html"
|
|
|
|
data-container="body" data-animation="am-slide-right" bs-aside>
|
|
|
|
<i class="fa fa-bell user-tool"
|
|
|
|
data-placement="bottom" data-title="Notifications" bs-tooltip></i>
|
2015-04-27 18:09:00 +00:00
|
|
|
<span class="notifications-bubble"></span>
|
2015-04-07 22:33:43 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="dropdown" ng-switch-when="false">
|
|
|
|
<a href="javascript:void(0)" class="dropdown-toggle user-dropdown user-view" data-toggle="dropdown">
|
|
|
|
<span class="avatar" size="32" data="user.avatar"></span>
|
|
|
|
{{ user.username }}
|
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li>
|
2015-04-21 16:16:32 +00:00
|
|
|
<a href="/user/{{ user.username }}?tab=settings" target="{{ appLinkTarget() }}">
|
2015-04-07 22:33:43 +00:00
|
|
|
Account Settings
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li ng-if="user.super_user"><a href="/superuser/"><strong>Super User Admin Panel</strong></a></li>
|
|
|
|
<li><a href="javascript:void(0)" ng-click="signout()">Sign out</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li ng-switch-default>
|
|
|
|
<a class="user-view" href="/signin/" target="{{ appLinkTarget() }}">Sign in</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><!-- /.navbar-collapse -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="search-box" ng-class="getSearchBoxClasses(searchVisible, searchResultState)">
|
|
|
|
<div class="search-label">Search For</div>
|
|
|
|
<div class="search-box-wrapper">
|
2015-04-21 19:13:29 +00:00
|
|
|
<input id="search-box-input" type="search" placeholder="(Enter Search Terms)"
|
2015-04-07 22:33:43 +00:00
|
|
|
ng-model-options="{'debounce': 250}" ng-model="currentSearchQuery"
|
2015-04-08 20:40:22 +00:00
|
|
|
debounce="250"
|
2015-04-07 22:33:43 +00:00
|
|
|
ng-keydown="handleSearchKeyDown($event)">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="search-results"
|
|
|
|
ng-class="searchVisible && searchResultState ? searchResultState.state : ''"
|
|
|
|
ng-class="{'height': (searchResultState.results.length * 40) + 28}">
|
|
|
|
<div class="cor-loader" ng-if="searchResultState.state == 'loading'"></div>
|
|
|
|
<div ng-if="searchResultState.state == 'no-results'">No matching results found</div>
|
|
|
|
<ul ng-if="searchResultState.state == 'results'">
|
|
|
|
<li ng-repeat="result in searchResultState.results" ng-mouseover="setCurrentResult($index)"
|
|
|
|
ng-class="searchResultState.current == $index ? 'current' : ''"
|
|
|
|
ng-click="showResult(result)">
|
|
|
|
<span class="kind">{{ result.kind }}</span>
|
2015-05-04 00:22:37 +00:00
|
|
|
<span class="score" style="display: none">{{ result.score.toString().substr(0, 4) }}</span>
|
2015-04-07 22:33:43 +00:00
|
|
|
<span ng-switch on="result.kind">
|
|
|
|
<!-- Team -->
|
|
|
|
<span ng-switch-when="team">
|
|
|
|
<strong>
|
|
|
|
<span class="avatar" data="result.avatar" size="16"></span>
|
|
|
|
<span class="result-name">{{ result.name }}</span>
|
|
|
|
</strong>
|
|
|
|
<span class="clarification">
|
|
|
|
under organization
|
|
|
|
<span class="avatar" data="result.organization.avatar" size="16"></span>
|
|
|
|
<span class="result-name">{{ result.organization.name }}</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span ng-switch-when="user">
|
|
|
|
<span class="avatar" data="result.avatar" size="16"></span>
|
|
|
|
<span class="result-name">{{ result.name }}</span>
|
|
|
|
</span>
|
|
|
|
<span ng-switch-when="organization">
|
|
|
|
<span class="avatar" data="result.avatar" size="16"></span>
|
|
|
|
<span class="result-name">{{ result.name }}</span>
|
|
|
|
</span>
|
|
|
|
<span href="/user/{{ result.name }}" ng-switch-when="robot">
|
2015-04-23 20:41:47 +00:00
|
|
|
<i class="fa ci-robot"></i>
|
2015-04-07 22:33:43 +00:00
|
|
|
<span class="result-name">{{ result.name }}</span>
|
|
|
|
</span>
|
|
|
|
<span ng-switch-when="repository">
|
|
|
|
<span class="avatar" data="result.namespace.avatar" size="16"></span>
|
|
|
|
<span class="result-name">{{ result.namespace.name }}/{{ result.name }}</span>
|
2015-04-27 18:31:49 +00:00
|
|
|
<div class="result-description" ng-if="result.description">
|
2015-04-13 18:24:52 +00:00
|
|
|
<div class="description markdown-view" content="result.description"
|
|
|
|
first-line-only="true" placeholder-needed="false"></div>
|
2015-04-07 22:33:43 +00:00
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-04-07 22:38:58 +00:00
|
|
|
|
|
|
|
<div class="dockerfile-build-dialog"
|
|
|
|
show-now="showBuildDialogCounter"
|
|
|
|
repository="currentPageContext.repository"
|
|
|
|
build-started="handleBuildStarted(build, currentPageContext)">
|
|
|
|
</div>
|
2015-04-07 22:33:43 +00:00
|
|
|
</div>
|