Add fallback icon

This commit is contained in:
Girish Ramakrishnan
2015-02-27 17:48:43 -08:00
parent fc07c5a564
commit a9fa1f37f8
7 changed files with 10 additions and 11 deletions
+6 -1
View File
@@ -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');
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

+1 -3
View File
@@ -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/>
+1 -2
View File
@@ -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

+1 -3
View File
@@ -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/>
+1 -2
View File
@@ -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/>