Commit ac058305 authored by Sven Franck's avatar Sven Franck

erp5_officejs_afs_directory: update software publisher profile

parent 4d8e4780
......@@ -228,7 +228,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>953.59439.33358.1211</string> </value>
<value> <string>954.25982.55518.32136</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>1473842873.77</float>
<float>1475682893.37</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -34,20 +34,48 @@
<section class="ui-content-header-plain ui-bar-c">
<h3>Software Spec</h3>
</section>
<ul class="grid-elements">
<li>Publisher: {{publisher}}</li>
<li>Website: <a href="{{website}}">{{website}}</a></li>
<li>Source Code: <a href="{{source_code_download}}">Download</a></li>
<li>Free software Commercial Support:
{{#if commercial_support}}
<a href="{{commercial_support}}"> Yes</a>
{{else}}
No
{{/if}}
<abbr title="{{commercial_support_description}}">(?)</abbr>
</li>
</ul>
<table class="custom-link-table">
<tbody>
<tr>
<td>Publisher Site</td>
<td><a href="{{publisher_website}}">{{publisher}}</a></td>
</tr>
<tr>
<td>Product Site</td>
<td><a href="{{website}}">{{title}}</a></td>
</tr>
<tr>
<td>Source Code</td>
<td>
{{#if source_code_download}}
<a href="{{source_code_download}}">Download</a>
{{else}}
<a class="ui-disabled" href="">Download</a>
{{/if}}
/
{{#if source_code_profile}}
<a href="{{source_code_profile}}">Profile</a>
{{else}}
<a class="ui-disabled" href="">Profile</a>
{{/if}}
</td>
</tr>
<tr>
<td>Free Software Commercial Support</td>
<td>
{{#if commercial_support}}
<a href="{{commercial_support}}"> Yes</a>
{{#if commercial_support_description}}
<abbr title="{{commercial_support_description}}">(?)</abbr>
{{/if}}
{{else}}
No
{{/if}}
</td>
</tr>
</tbody>
</table>
{{#if success_case_list}}
<section class="ui-content-header-plain ui-bar-c">
<h3>Success Stories</h3>
......@@ -56,7 +84,7 @@
{{#each success_case_list}}
<li>
{{#if image}}
<div class="custom-success-story-image-wrapper"><a href="{{url}}"><img src="{{image}}" alt></a></div>
<div class="custom-success-story-image-wrapper {{image_class}}"><a href="{{url}}"><img src="{{image}}" alt></a></div>
{{else}}
<div>&nbsp;</div>
{{/if}}
......
......@@ -232,7 +232,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>953.59439.11473.15155</string> </value>
<value> <string>954.54725.34098.27528</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -250,7 +250,7 @@
</tuple>
<state>
<tuple>
<float>1473842839.22</float>
<float>1477405871.59</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -3,13 +3,28 @@
(function (window, RSVP, rJS, Handlebars) {
"use strict";
var PLACEHOLDER = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAACWCAYAAACb3McZAAANRUlEQVR4Xu2dB1cbOReGBaGEEloCGEglYVPI7v7/37GFEBJS6SmUUG3CnncSnU+fMuMyHln3jl+d42MHezTSe/XkSiPpqufq6urKMFEBKpCqQA8BYcugAtkKEBC2DipQRwECwuZBBQgI2wAVyKcAPUg+3XhVlyhAQLrE0KxmPgUISD7deFWXKEBAusTQrGY+BQhIPt14VZcoQEC6xNCsZj4FCEg+3XhVlyhAQLrE0KxmPgUISD7deFWXKEBASmroz5+/mLOzs+C1m5ycMMPDw8HvE+sGBCSW8oHv++bNO3NwcBj4LsbcvXvbTE1NBr9PrBsQkFjKB74vASlGYAJSjI7iciEgxZiEgBSjo7hcCEgxJiEgxegoLhcCUoxJCEgxOorLhYAUYxICUoyO4nIhIMWYhIAUo6O4XAhIMSYhIMXoKC4XAlKMSQhIMTqKy4WAFGOSUgNyeXlpqtWq6cbQeBsbm+bbt+NiWkmdXDiTHlzi4m4AGPb3D5LX6emZ+f79e3GZM6dUBW7cGDXz83NmaOh6KRUqhQcBGFtbO+bLl6+lNJKGSo2N3TCzs9NmZGREQ3GbLqN6QLBqdWNji96iaZOH/SE8yv37d821a9fC3qhDuasGZHt7x2xv73ZIKt6mWQWGh4fMw4cPSgGJ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zRIHiOsxAIcPStY4hIN0WSC6//v7Yw8XCAuICwoBceYurBdwB+YWkixA8L0di3AMIgsMf5LPHXTbLhQBacJmrXSx3G5WvSdZHIs0IXzgn/gz6O7jXX8MkuY93CdcXT0GsY05a5DuQoHPdgDvzonwUW/g1p4z+3pzIGlexB2wu/MiBOTnIkS/m+XC4I5JfO9hl6D4a7ly2pWXFaBA2hos281yG7//FMv1HGlLUAooWq4sog3S3e6QCwg+uxODWZOFjRYv5lKDFxWiQDPdLPeRrg8HJwp/mqHeOizXW6R5DgJSSFsOkkkWIGmehEtNGpigESTu0yp39pxzIEHadqGZZo1FXFD8z1ysmGKCLEhcOFyPkQUH50IKbd+5M8sah6Qtbc9a8u4/Ls5dmDYvjDoGsWX3B9k+AD4c/vilTQ14eUAFXC+C2/hPptKgkQJHUt4rIf/tpj2JSgPFhcP/HNDOzDqnAvW8SRowkuAQBUiWN8nyFkK4ztlsuu+yLFAsJK4isRYmpllFjAdxC+c3/kb/7r7mprPGfsNv9G8JtRQJSD1Ymv1Ogrgsw/8UyPIKkryFGg9Sr2Gxa6UbO+lA+OqK9yC6mwNLr10BAqLdgix/UAUISFB5mbl2BQiIdguy/EEV+A9Em3PVuGWDlwAAAABJRU5ErkJggg==";
var gadget_klass = rJS(window),
templater = gadget_klass.__template_element,
display_widget_table = Handlebars.compile(
templater.getElementById("display-template").innerHTML
);
function clean(case_list) {
var i,
len,
entry;
for (i = 0, len = case_list.length; i < len; i += 1) {
entry = case_list[i];
if (entry.image === "N/A" || entry.image === "") {
entry.image = PLACEHOLDER;
entry.image_class = "custom-placeholder";
}
}
return case_list;
}
rJS(window)
.ready(function (g) {
g.props = {};
......@@ -23,7 +38,9 @@
.declareAcquiredMethod('jio_get', 'jio_get')
.declareMethod('render', function (options) {
var gadget = this;
var gadget = this,
content;
return new RSVP.Queue()
.push(function () {
return gadget.jio_get(options.jio_key);
......@@ -33,6 +50,10 @@
page_title: software.title,
});
if (software.logo === "N/A" || software.logo === "") {
software.logo = PLACEHOLDER;
}
if (software.commercial_support == "N/A") {
delete software.commercial_support;
}
......@@ -45,9 +66,11 @@
software.success_case_list[0].title === "N/A" ||
software.success_case_list[0].title === "") {
delete software.success_case_list;
} else {
software.success_case_list = clean(software.success_case_list);
}
var content = display_widget_table(software);
content = display_widget_table(software);
gadget.props.element.querySelector(".display-widget")
.innerHTML = content;
});
......
......@@ -228,7 +228,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>953.59514.12451.53691</string> </value>
<value> <string>954.54720.14802.56064</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>1473847337.31</float>
<float>1477405742.66</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment