diff --git a/rootfs/standard/var/www/mynode/marketplace.py b/rootfs/standard/var/www/mynode/marketplace.py index 28312cc7..8990f231 100644 --- a/rootfs/standard/var/www/mynode/marketplace.py +++ b/rootfs/standard/var/www/mynode/marketplace.py @@ -39,6 +39,19 @@ def marketplace_page(): } return render_template('marketplace.html', **templateData) +@mynode_marketplace.route("/marketplace/add_app") +def marketplace_add_app_page(): + check_logged_in() + + # Load page + templateData = { + "title": "myNode - Add Community Application", + "ui_settings": read_ui_settings(), + "product_key_skipped": skipped_product_key() + } + return render_template('/marketplace_add_app.html', **templateData) + + @mynode_marketplace.route("/marketplace/") def marketplace_app_page(app_name): check_logged_in() diff --git a/rootfs/standard/var/www/mynode/static/images/add_app.png b/rootfs/standard/var/www/mynode/static/images/add_app.png new file mode 100644 index 00000000..5509a4cf Binary files /dev/null and b/rootfs/standard/var/www/mynode/static/images/add_app.png differ diff --git a/rootfs/standard/var/www/mynode/templates/marketplace.html b/rootfs/standard/var/www/mynode/templates/marketplace.html index 628356bb..5b5eed0c 100644 --- a/rootfs/standard/var/www/mynode/templates/marketplace.html +++ b/rootfs/standard/var/www/mynode/templates/marketplace.html @@ -9,7 +9,9 @@ $(document).ready(function() { $(".marketplace_app_tile").on("click", function() { shortname = $(this).data("shortname"); - window.location = "/marketplace/" + shortname; + if (shortname != undefined) { + window.location = "/marketplace/" + shortname; + } }); }); @@ -68,6 +70,25 @@ {% endif %} {% endfor %} + +
Community Apps
+ +
+
+
+ +
+
+
Add Application
+
Add Community App to Device
+ + {% if product_key_skipped %} +
Premium Feature
+ {% endif %} +
+
+
+