Skip to content

Commit

Permalink
fix: Remove Sugar version in the activity view (#47)
Browse files Browse the repository at this point in the history
Fixes #45
has icons (a child icon with a 3) that serve no purpose for the target audience; they aren't expected to know the version of Sugar or the version of Python on their computer.
  • Loading branch information
srevinsaju authored Sep 18, 2020
1 parent 74932f1 commit fc69d77
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions aslo4-static/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,6 @@ function addActivityCard(item) {
url_container = '';
}
const bundle_path = `bundles/${item['bundle_name']}`;
if (item['exec_type'] == 'web') {
var exec_type = `<a data-toggle="tooltip" title="Based on WebKit. Works on most platforms"><img src="img/sugarweb-1.svg" alt="Works with Webkit" height=38px>`;
} else if (item['exec_type'] == 'python2') {
var exec_type = `<a data-toggle="tooltip" title="Powered by Python2. Supported by older sugar."><img src="img/sugar2-1.svg" alt="Powered by Python2.x" height=38px>`;
} else if (item['exec_type'] == 'python3') {
var exec_type = `<a data-toggle="tooltip" title="Powered by Python3. Supported by Sugar 0.116+"><img src="img/sugar3-1.svg" alt="Powered by Python3.x" height=38px ></a>`;
} else {
var exec_type = '';
}
if (item['v']) {
var version = `<span class="badge badge-secondary">${item['v']}</span>`;
} else {
Expand Down Expand Up @@ -98,7 +89,6 @@ function addActivityCard(item) {
<p class="card-text">${summary}</p>\
<a type="application/zip" href="${bundle_path}" class="btn btn-primary"><i class="fa fa-download"></i></a>\
${url_container}
${exec_type}
</div>\
</div>`,
);
Expand Down

0 comments on commit fc69d77

Please sign in to comment.