Handle the org view columns better when the user cannot see the tabs

This commit is contained in:
Joseph Schorr 2015-04-08 15:39:17 -04:00
parent 19e25ac340
commit 6173868360

View file

@ -10,7 +10,16 @@
</span>
</div>
<div class="cor-tab-panel">
<div class="co-main-content-panel" ng-if="user.anonymous || !isMember">
<div class="repo-list-grid"
repositories-resource="repositoriesResource"
starred="false"
namespace="namespace"
hide-title="true">
</div>
</div>
<div class="cor-tab-panel" ng-if="!user.anonymous && isMember">
<div class="cor-tabs" quay-show="isMember">
<span class="cor-tab" tab-active="true" tab-title="Repositories" tab-target="#repos">
<i class="fa fa-hdd-o"></i>
@ -60,17 +69,23 @@
<!-- Teams -->
<div id="teams" class="tab-pane">
<div class="teams-manager" organization="organization"></div>
<div ng-if="!user.anonymous">
<div class="teams-manager" organization="organization"></div>
</div>
</div>
<!-- Robot Accounts -->
<div id="robots" class="tab-pane">
<div class="robots-manager" organization="organization"></div>
<div ng-if="isAdmin">
<div class="robots-manager" organization="organization"></div>
</div>
</div>
<!-- Default Permissions -->
<div id="default" class="tab-pane">
<div class="prototype-manager" organization="organization"></div>
<div ng-if="isAdmin">
<div class="prototype-manager" organization="organization"></div>
</div>
</div>
<!-- Usage Logs -->
@ -87,7 +102,9 @@
<!-- Plan and Usage -->
<div id="usage" class="tab-pane" quay-require="['BILLING']">
<h3>Plan Usage and Billing</h3>
<div class="plan-manager" organization="organization.name"></div>
<div ng-if="isAdmin">
<div class="plan-manager" organization="organization.name"></div>
</div>
</div>
<!-- Billing Invoices -->
@ -99,23 +116,23 @@
<!-- Settings -->
<div id="settings" class="tab-pane">
<h3>Organization Settings</h3>
<div ng-if="isAdmin">
<h3>Organization Settings</h3>
<div class="panel" ng-show="!orgScope.changingOrganization">
<div class="panel-title">Organization's e-mail address</div>
<div class="panel-content" style="padding-left: 20px; margin-top: 10px;">
<form class="form-change" id="changeEmailForm" name="changeEmailForm" ng-submit="changeEmail()">
<input type="email" class="form-control" style="max-width: 500px;"
ng-model="orgScope.organizationEmail" required>
<button class="btn btn-primary" type="submit"
ng-disabled="changeEmailForm.$invalid || orgScope.organizationEmail == organization.email">
Save
</button>
</form>
<div class="panel" ng-show="!orgScope.changingOrganization">
<div class="panel-title">Organization's e-mail address</div>
<div class="panel-content" style="padding-left: 20px; margin-top: 10px;">
<form class="form-change" id="changeEmailForm" name="changeEmailForm" ng-submit="changeEmail()">
<input type="email" class="form-control" style="max-width: 500px;"
ng-model="orgScope.organizationEmail" required>
<button class="btn btn-primary" type="submit"
ng-disabled="changeEmailForm.$invalid || orgScope.organizationEmail == organization.email">
Save
</button>
</form>
</div>
</div>
</div>
</div>
</div> <!-- /cor-tab-content -->
</div>