Add fallback icon
This commit is contained in:
+6
-1
@@ -119,6 +119,10 @@ gulp.task('css', [], function () {
|
||||
.pipe(gulp.dest('setup/splash/website'));
|
||||
});
|
||||
|
||||
gulp.task('images', function () {
|
||||
return gulp.src('webadmin/src/img/**')
|
||||
.pipe(gulp.dest('webadmin/dist/img'));
|
||||
});
|
||||
|
||||
// --------------
|
||||
// Utilities
|
||||
@@ -126,6 +130,7 @@ gulp.task('css', [], function () {
|
||||
|
||||
gulp.task('develop', ['default'], function () {
|
||||
gulp.watch(['webadmin/src/theme.scss'], ['css']);
|
||||
gulp.watch(['webadmin/src/img/*'], ['images']);
|
||||
gulp.watch(['webadmin/src/**/*.html'], ['html']);
|
||||
gulp.watch(['webadmin/src/*.ejs'], ['html-templates']);
|
||||
gulp.watch(['webadmin/src/views/*.html'], ['html-views']);
|
||||
@@ -141,5 +146,5 @@ gulp.task('clean', function (callback) {
|
||||
});
|
||||
|
||||
gulp.task('default', ['clean'], function () {
|
||||
gulp.start('html', 'js', '3rdparty', 'css');
|
||||
gulp.start('html', 'js', '3rdparty', 'css', 'images');
|
||||
});
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
Vendored
+1
-3
@@ -99,9 +99,7 @@
|
||||
<div class="grid-item-top">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-center">
|
||||
<img ng-show="app.icon" width="48" height="48" ng-src="{{app.icon}}"/>
|
||||
<span ng-show="!app.icon" class="fa fa-space-shuttle fa-4x"></span>
|
||||
|
||||
<img ng-src="{{app.iconUrl}}" onerror="this.onerror=null;this.src='img/appicon_fallback.png'" width="48" height="48"/>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
Vendored
+1
-2
@@ -65,8 +65,7 @@
|
||||
<div class="grid-item-top">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-center">
|
||||
<img ng-show="app.icon" width="48" height="48" ng-src="{{app.icon}}"/>
|
||||
<span ng-show="!app.icon" class="fa fa-space-shuttle fa-4x"></span>
|
||||
<img ng-src="{{app.iconUrl}}" onerror="this.onerror=null;this.src='img/appicon_fallback.png'" width="48" height="48"/>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
@@ -99,9 +99,7 @@
|
||||
<div class="grid-item-top">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-center">
|
||||
<img ng-show="app.icon" width="48" height="48" ng-src="{{app.icon}}"/>
|
||||
<span ng-show="!app.icon" class="fa fa-space-shuttle fa-4x"></span>
|
||||
|
||||
<img ng-src="{{app.iconUrl}}" onerror="this.onerror=null;this.src='img/appicon_fallback.png'" width="48" height="48"/>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
@@ -65,8 +65,7 @@
|
||||
<div class="grid-item-top">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-center">
|
||||
<img ng-show="app.icon" width="48" height="48" ng-src="{{app.icon}}"/>
|
||||
<span ng-show="!app.icon" class="fa fa-space-shuttle fa-4x"></span>
|
||||
<img ng-src="{{app.iconUrl}}" onerror="this.onerror=null;this.src='img/appicon_fallback.png'" width="48" height="48"/>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
|
||||
Reference in New Issue
Block a user