]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: Enable Image Customisation feature
authorMichael Wood <michael.g.wood@intel.com>
Mon, 8 Feb 2016 17:41:24 +0000 (17:41 +0000)
committerbrian avery <avery.brian@gmail.com>
Mon, 8 Feb 2016 20:48:15 +0000 (12:48 -0800)
Remove environment variable to toggle Image customisation feature

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
lib/toaster/toastergui/templates/baseprojectpage.html
lib/toaster/toastergui/templates/projecttopbar.html
lib/toaster/toastergui/views.py
lib/toaster/toastermain/settings.py

index b143b78833e4c1694292064a7e89ef4f7b11aaf1..8778305f3f5a3c8955f92275ee6341a686450be3 100644 (file)
@@ -27,9 +27,7 @@
     <ul class="nav nav-list well">
       <li><a class="nav-parent" href="{% url 'project' project.id %}">Configuration</a></li>
       <li class="nav-header">Compatible metadata</li>
-      {% if CUSTOM_IMAGE %}
       <li><a href="{% url 'projectcustomimages' project.id %}">Custom images</a></li>
-      {% endif %}
       <li><a href="{% url 'projectimagerecipes' project.id %}">Image recipes</a></li>
       <li><a href="{% url 'projectsoftwarerecipes' project.id %}">Software recipes</a></li>
       <li><a href="{% url 'projectmachines' project.id %}">Machines</a></li>
index c1cd6a83a2c7ad56a7bb07d41a7cf68bda13eeb8..5bc1ac4ad2b8436b9487451dfe31ed812ffa163f 100644 (file)
           Import layer
         </a>
       </li>
-      {% if CUSTOM_IMAGE %}
       <li>
         <a href="{% url 'newcustomimage' project.id %}">
           New custom image
         </a>
       </li>
-      {% endif %}
       <li class="pull-right">
         <form class="form-inline" style="margin-bottom:0px;">
           <i class="icon-question-sign get-help heading-help" data-placement="left" title="" data-original-title="Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a semicolon and a task name to the recipe name, like so: <code>busybox:clean</code>"></i>
index 30ec39c24ffb500e7c75100c020af89856e402f1..dfa256e8eafb829ed5fb5af0184f9c34b9168050 100755 (executable)
@@ -1845,7 +1845,6 @@ def managedcontextprocessor(request):
         "projects": projects,
         "non_cli_projects": projects.exclude(is_default=True),
         "DEBUG" : toastermain.settings.DEBUG,
-        "CUSTOM_IMAGE" : toastermain.settings.CUSTOM_IMAGE,
         "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH,
         "TOASTER_REVISION" : toastermain.settings.TOASTER_REVISION,
     }
index c4f3d6bfff32cbf75a5cecca9232cb51fd2b61b9..74ab60462bb40501a549b6ce5cc07be0a57bb183 100644 (file)
 
 import os, re
 
-# Temporary toggle for Image customisation
-CUSTOM_IMAGE = False
-if os.environ.get("CUSTOM_IMAGE", None) is not None:
-    CUSTOM_IMAGE = True
-
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG