Permalink
Browse files

app icon and description

  • Loading branch information...
squallstar committed Jan 9, 2018
1 parent 44bce55 commit 8a7245269e176b5f985ad792def9cf42770be039
Showing with 8 additions and 3 deletions.
  1. +3 −3 interface.html
  2. +5 −0 js/libs/templates.js
View
@@ -20,9 +20,9 @@
<div class="template-wrapper" v-for="template in organizationTemplates">
<div class="template-icon-wrapper">
<div class="template-icon">
<img src="https://d2fx5g1ro9ok5z.cloudfront.net/apps/4/icon-1500462407549.jpg?_=1500462407">
<img :src="template.app.icon">
</div>
<div type="button" class="template-created-info" data-toggle="tooltip" data-placement="right" title="Created by [fullName] in [appName]"><i class="fa fa-info" aria-hidden="true"></i></div>
<div type="button" class="template-created-info" data-toggle="tooltip" data-placement="right" :title="template.createdDescription"><i class="fa fa-info" aria-hidden="true"></i></div>
</div>
<div class="template-info">
<h4 class="template-title">\{{ template.settings.displayName }}</h4>
@@ -52,7 +52,7 @@ <h4 class="template-title">\{{ template.settings.displayName }}</h4>
<div class="template-icon">
<img src="https://d2fx5g1ro9ok5z.cloudfront.net/apps/4/icon-1500462407549.jpg?_=1500462407">
</div>
<div type="button" class="template-created-info" data-toggle="tooltip" data-placement="right" title="Created by [fullName] in [appName]"><i class="fa fa-info" aria-hidden="true"></i></div>
<div type="button" class="template-created-info" data-toggle="tooltip" data-placement="right" title="Created by Fliplet"><i class="fa fa-info" aria-hidden="true"></i></div>
</div>
<div class="template-info">
<h4 class="template-title">\{{ template.settings.displayName }}</h4>
View
@@ -85,6 +85,11 @@ Fliplet.FormBuilder.templates = function() {
});
return operation.then(function(organizationTemplates) {
organizationTemplates.forEach(function (tpl) {
tpl.app = tpl.pages.length && tpl.pages[0].app || {};
tpl.createdDescription = (tpl.settings.createdBy && tpl.settings.createdBy.fullName) + ' in ' + tpl.app.name;
});
return Promise.resolve({
system: systemTemplates,
organization: organizationTemplates

0 comments on commit 8a72452

Please sign in to comment.