table no foo

This commit is contained in:
lvuch 2017-05-01 12:50:19 -07:00
parent 236f214a3c
commit 84b0ca21b1
14 changed files with 140 additions and 135 deletions

View File

@ -17,23 +17,27 @@
<section>
<p>{{t 'hookPage.receiver.content' appName=settings.appName}}</p>
{{#sortable-table
classNames="grid fixed r-mb0 mt-10 sortable-table"
bulkActions=false
paging=false
search=false
sortBy=sortBy
headers=headers
body=model.receivers
fullRows=true
as |sortable kind row|
}}
{{#if (eq kind "row")}}
{{hook-row model=row}}
{{else if (eq kind "norows")}}
<tr>
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t 'hookPage.receiver.noData'}}</td>
</tr>
{{/if}}
{{/sortable-table}}
</section>
{{#if model.receivers.length}}
{{#sortable-table
classNames="grid fixed r-mb0 mt-10 sortable-table"
bulkActions=false
paging=false
search=false
sortBy=sortBy
headers=headers
body=model.receivers
fullRows=true
as |sortable kind row|
}}
{{#if (eq kind "row")}}
{{hook-row model=row}}
{{else if (eq kind "norows")}}
<tr>
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t 'hookPage.receiver.noData'}}</td>
</tr>
{{/if}}
{{/sortable-table}}
{{else}}
{{empty-table resource="container" newRoute="authenticated.project.api.hooks.new-receiver" newTranslationKey="hookPage.receiver.buttonText"}}
{{/if}}
</section>

View File

@ -22,6 +22,7 @@
<section>
<p>{{t 'hostTemplatesPage.keys.header'}}</p>
{{#if instances.length}}
{{#sortable-table
classNames="grid fixed mt-10 sortable-table"
bulkActions=false
@ -67,5 +68,7 @@
</tr>
{{/if}}
{{/sortable-table}}
</section>
<hr/>
{{else}}
{{empty-table resource="container" showNew=false}}
{{/if}}
</section>

View File

@ -2,4 +2,5 @@ import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['row'],
showNew: true,
});

View File

@ -1,7 +1,9 @@
<div class="col span-6 offset-3 text-center pt-40 pb-40">
<img style="width: 75%;" src="{{app.baseAssets}}assets/images/resources/{{resource}}.svg"/>
<a class="btn bg-link icon-btn mt-50" href="{{href-to newRoute}}">
<i class="icon icon-plus text-small"></i>
<span>{{t newTranslationKey}}</span>
</a>
{{#if showNew}}
<a class="btn bg-link icon-btn mt-50" href="{{href-to newRoute}}">
<i class="icon icon-plus text-small"></i>
<span>{{t newTranslationKey}}</span>
</a>
{{/if}}
</div>

View File

@ -7,23 +7,27 @@
</section>
<section class="instances">
{{#sortable-table
classNames="grid fixed mb-0 sortable-table"
bulkActions=false
paging=false
search=false
sortBy=sortBy
headers=headers
body=model
fullRows=true
as |sortable kind registry|
}}
{{#if (eq kind "row")}}
{{registry-row model=registry}}
{{else if (eq kind "norows")}}
<tr>
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted">{{t 'registriesPage.index.table.body.noData'}}</td>
</tr>
{{/if}}
{{/sortable-table}}
{{#if model.length}}
{{#sortable-table
classNames="grid fixed mb-0 sortable-table"
bulkActions=false
paging=false
search=false
sortBy=sortBy
headers=headers
body=model
fullRows=true
as |sortable kind registry|
}}
{{#if (eq kind "row")}}
{{registry-row model=registry}}
{{else if (eq kind "norows")}}
<tr>
<td colspan="{{sortable.fullColspan}}" class="text-center text-muted">{{t 'registriesPage.index.table.body.noData'}}</td>
</tr>
{{/if}}
{{/sortable-table}}
{{else}}
{{empty-table resource="container" newRoute="registries.new" newTranslationKey="registriesPage.index.linkTo"}}
{{/if}}
</section>

View File

@ -56,8 +56,6 @@
</tr>
{{else if (eq kind "nomatch")}}
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'containersPage.table.noMatch'}}</td></tr>
{{else if (eq kind "norows")}}
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted lacsso pt-20 pb-20">{{t 'containersPage.table.noData'}}</td></tr>
{{/if}}
{{/sortable-table}}
{{else}}

View File

@ -16,24 +16,28 @@
</section>
<section class="instances pt-5 pb-5">
{{#sortable-table
classNames="grid sortable-table"
body=model
sortBy=sortBy
bulkActions=true
headers=headers as |sortable kind row dt|}}
{{#if (eq kind "row")}}
<td data-title="{{dt.state}}">{{badge-state model=row}}</td>
<td data-title="{{dt.name}}">{{row.name}}</td>
<td data-title="{{dt.description}}">{{row.description}}</td>
<td data-title="{{dt.created}}">{{date-from-now row.created}}</td>
<td data-title="{{dt.actions}}" class="actions">
{{action-menu model=row}}
</td>
{{else if (eq kind "nomatch")}}
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t 'secretsPage.index.noMatch'}}</td></tr>
{{else if (eq kind "norows")}}
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t 'secretsPage.index.noData'}}</td></tr>
{{/if}}
{{/sortable-table}}
{{#if model.length}}
{{#sortable-table
classNames="grid sortable-table"
body=model
sortBy=sortBy
bulkActions=true
headers=headers as |sortable kind row dt|}}
{{#if (eq kind "row")}}
<td data-title="{{dt.state}}">{{badge-state model=row}}</td>
<td data-title="{{dt.name}}">{{row.name}}</td>
<td data-title="{{dt.description}}">{{row.description}}</td>
<td data-title="{{dt.created}}">{{date-from-now row.created}}</td>
<td data-title="{{dt.actions}}" class="actions">
{{action-menu model=row}}
</td>
{{else if (eq kind "nomatch")}}
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t 'secretsPage.index.noMatch'}}</td></tr>
{{else if (eq kind "norows")}}
<tr><td colspan="{{sortable.fullColspan}}" class="text-center text-muted pt-20 pb-20">{{t 'secretsPage.index.noData'}}</td></tr>
{{/if}}
{{/sortable-table}}
{{else}}
{{empty-table resource="container" newRoute="secrets.new" newTranslationKey="secretsPage.index.linkTo"}}
{{/if}}
</section>

View File

@ -1,3 +1,11 @@
// Code
$code-color : mix($warning, $error, 20%) !default;
$code-bg : #fcf2e9 !default;
$pre-bg : #f5f5f5 !default;
$pre-color : $dark-grey !default;
$pre-border-color : $light-grey !default;
code {
padding: 2px 4px;
font-size: 90%;

View File

@ -1,3 +1,12 @@
$modal-content-bg : white !default;
$modal-content-border-color : transparent !default;
$modal-content-fallback-border-color : #999 !default;
$modal-overlay : rgba($light-grey, 0.75) !default;
$modal-header-border-color : #e5e5e5 !default;
$modal-footer-border-color : $modal-header-border-color !default;
.modal-overlay {
background-color: $modal-overlay;
min-height: 100%;

View File

@ -1,3 +1,20 @@
// Pagination
$pagination-color : $primary !default;
$pagination-bg : #f5f5f5 !default;
$pagination-border : #ddd !default;
$pagination-hover-color : $link-hover-color !default;
$pagination-hover-bg : $light-grey !default;
$pagination-hover-border : #ddd !default;
$pagination-active-color : $light-grey !default;
$pagination-active-bg : white !default;
$pagination-active-border : #ddd !default;
$pagination-disabled-color : $light-grey !default;
$pagination-disabled-bg : white !default;
$pagination-disabled-border : #ddd !default;
.pagination {
margin: 0px;

View File

@ -1,3 +1,13 @@
// Tabs
$tab-bg : white !default;
$tab-active-bg : white !default;
$tab-hover : $dark-grey !default;
$tab-color : $mid-grey !default;
$tab-accent : $light-grey !default;
$close-color : white !default;
$close-text-shadow : 0 1px 0 white !default;
.tabs {
position: relative;

View File

@ -1,3 +1,11 @@
// Tooltip text color
$tooltip-color : white !default;
// Tooltip background color
$tooltip-bg : rgba(0,0,0,.9) !default;
$tooltip-opacity : .9 !default;
// Tooltip arrow color
$tooltip-arrow-color : $tooltip-bg !default;
@mixin tooltip-triangle {
content : '';
background : transparent;

View File

@ -172,9 +172,6 @@ $pagination-disabled-color : $mid-grey;
$pagination-disabled-bg : white;
$pagination-disabled-border : #ddd;
/*jumbotron*/
$jumbotron-bg : $mid-grey;
/*Form states and alerts Define colors for form feedback states and, by default, alerts.*/
$state-success-text : white;

View File

@ -43,12 +43,6 @@ $accent-three : $dark-grey;
$accent-bg : lighten($accent-one, 1.5%);
$accent-border : rgba(255, 255, 255, .5);
// // Header
// $header : $secondary;
// $header-link : $light-grey;
// $header-link-active : $primary;
// $user-btn : darken($header, 10%);
// $header-text : $secondary;
$footer : $light-grey;
@ -64,25 +58,6 @@ $component-active-color : white;
// Global background color for active items (e.g., navs or dropdowns).
$component-active-bg : $primary;
// Pagination
$pagination-color : $primary;
$pagination-bg : #f5f5f5;
$pagination-border : #ddd;
$pagination-hover-color : $link-hover-color;
$pagination-hover-bg : $light-grey;
$pagination-hover-border : #ddd;
$pagination-active-color : $light-grey;
$pagination-active-bg : white;
$pagination-active-border : #ddd;
$pagination-disabled-color : $light-grey;
$pagination-disabled-bg : white;
$pagination-disabled-border : #ddd;
// Jumbotron
$jumbotron-bg : $light-grey;
// Form states and alerts Define colors for form feedback states and, by default, alerts.
@ -103,48 +78,13 @@ $state-danger-bg : $error;
$state-danger-border : darken(adjust-hue($state-danger-bg, -10), 3%);
// Tooltip text color
$tooltip-color : white;
// Tooltip background color
$tooltip-bg : rgba(0,0,0,.9);
$tooltip-opacity : .9;
// Tooltip arrow color
$tooltip-arrow-color : $tooltip-bg;
// Background color of modal content area
$modal-content-bg : white;
// Modal content border color
$modal-content-border-color : transparent;
// Modal content border color **for IE8**
$modal-content-fallback-border-color : #999;
// Modal backdrop background color
$modal-overlay : rgba($light-grey, 0.75);
// Modal header border color
$modal-header-border-color : #e5e5e5;
// Modal footer border color
$modal-footer-border-color : $modal-header-border-color;
$header-link-text : #afb9c8;
$nav-link-hover-bg : $light-grey;
// Tabs
$tab-bg : white;
$tab-active-bg : white;
$tab-hover : $dark-grey;
$tab-color : $mid-grey;
$tab-accent : $light-grey;
$close-color : white;
$close-text-shadow : 0 1px 0 white;
// Code
$code-color : mix($warning, $error, 20%);
$code-bg : #fcf2e9;
$code-color : mix($warning, $error, 20%) !default;
$code-bg : #fcf2e9 !default;
$pre-bg : #f5f5f5;
$pre-color : $dark-grey;
$pre-border-color : $light-grey;
$pre-bg : #f5f5f5 !default;
$pre-color : $dark-grey !default;
$pre-border-color : $light-grey !default;