Adding nothing to show.

Exporting webpack options.
This commit is contained in:
Gunther Brunner
2014-02-19 22:51:40 +09:00
parent 3cdb0c7c1a
commit eae8062252
6 changed files with 39 additions and 5 deletions

View File

@@ -0,0 +1,4 @@
require('./nothing-to-show.css')
module.exports = angular.module('stf/common/nothing-to-show', [])
.directive('nothingToShow', require('./nothing-to-show-directive'))

View File

@@ -0,0 +1,14 @@
module.exports = function () {
return {
restrict: 'EA',
scope: {
icon: '@',
message: '@'
},
template: require('./nothing-to-show.html'),
link: function (scope, element, attrs) {
scope.icon = attrs.icon;
scope.message = attrs.message;
}
}
}

View File

@@ -0,0 +1,9 @@
.nothing-to-show {
color: #b7b7b7;
min-height: 130px;
text-align: center;
}
.nothing-to-show p {
font-size: 20px;
}

View File

@@ -0,0 +1,4 @@
<div class="nothing-to-show vertical-center">
<i class="fa fa-4x" ng-class="icon"></i>
<p ng-bind="message"></p>
</div>