Skip to contentSkip to conversation

toaster: Link to image recipes

PATCH In review Belen Barros Pena 2 participants 3 messages Oct 15, 2015 – Nov 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: Link to image recipes

From: Belen Barros Pena <[email protected]>

The project created notifications and the 'Choose a recipe to build' link in the project page are linking to the software recipes table.

Change them to link to the image recipes table instead, which is bound to be more useful.

---
 bitbake/lib/toaster/toastergui/templates/project.html       | 2 +-
 bitbake/lib/toaster/toastergui/templates/projecttopbar.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/project.html +1 -1
index 2f978bc..5968c61 100644
@@ -67,7 +67,7 @@
 
       <div class="alert alert-info" style="display:none" id="no-most-built">
         <span class="lead">You haven't built any recipes yet</span>
-        <p style="margin-top: 10px;"><a href="{% url 'projectsoftwarerecipes' project.id %}">Choose a recipe to build</a></p>
+        <p style="margin-top: 10px;"><a href="{% url 'projectimagerecipes' project.id %}">Choose a recipe to build</a></p>
       </div>
 
       <ul class="unstyled configuration-list" id="freq-build-list">
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +1 -1
index ee86b54..7a6bfef 100644
@@ -1,6 +1,6 @@
 <div class="alert alert-success lead" id="project-created-notification" style="margin-top:15px; display:none">
   <button type="button" class="close" data-dismiss="alert">×</button>
-  Your project <strong>{{project.name}}</strong> has been created. You can now <a href="{% url 'projectmachines' project.id %}">select your target machine</a> and <a href="{% url 'projectsoftwarerecipes' project.id %}">choose image recipes</a> to build.
+  Your project <strong>{{project.name}}</strong> has been created. You can now <a href="{% url 'projectmachines' project.id %}">select your target machine</a> and <a href="{% url 'projectimagerecipes' project.id %}">choose image recipes</a> to build.
 </div>
 
 <!-- project name -->
Signature · 1 line
2.3.8 (Apple Git-58)
#1 lore raw

Thanks upstreamed and pushed to toaster-next with additions to make commit message more descriptive.

Quoted 42 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

The project created notifications and the 'Choose a recipe to build' link in the project page are linking to the software recipes table.

Change them to link to the image recipes table instead, which is bound to be more useful.

---
  bitbake/lib/toaster/toastergui/templates/project.html       | 2 +-
  bitbake/lib/toaster/toastergui/templates/projecttopbar.html | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/project.html +1 -1
index 2f978bc..5968c61 100644
@@ -67,7 +67,7 @@
 
        <div class="alert alert-info" style="display:none" id="no-most-built">
          <span class="lead">You haven't built any recipes yet</span>
-        <p style="margin-top: 10px;"><a href="{% url 'projectsoftwarerecipes' project.id %}">Choose a recipe to build</a></p>
+        <p style="margin-top: 10px;"><a href="{% url 'projectimagerecipes' project.id %}">Choose a recipe to build</a></p>
        </div>
 
        <ul class="unstyled configuration-list" id="freq-build-list">
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +1 -1
index ee86b54..7a6bfef 100644
@@ -1,6 +1,6 @@
  <div class="alert alert-success lead" id="project-created-notification" style="margin-top:15px; display:none">
    <button type="button" class="close" data-dismiss="alert">×</button>
-  Your project <strong>{{project.name}}</strong> has been created. You can now <a href="{% url 'projectmachines' project.id %}">select your target machine</a> and <a href="{% url 'projectsoftwarerecipes' project.id %}">choose image recipes</a> to build.
+  Your project <strong>{{project.name}}</strong> has been created. You can now <a href="{% url 'projectmachines' project.id %}">select your target machine</a> and <a href="{% url 'projectimagerecipes' project.id %}">choose image recipes</a> to build.
  </div>
 
  <!-- project name -->
#2 lore raw
In reply to Belen Barros Pena

Thanks sent upstream and toaster-next with some additional detail in the commit message

Quoted 42 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

The project created notifications and the 'Choose a recipe to build' link in the project page are linking to the software recipes table.

Change them to link to the image recipes table instead, which is bound to be more useful.

---
  bitbake/lib/toaster/toastergui/templates/project.html       | 2 +-
  bitbake/lib/toaster/toastergui/templates/projecttopbar.html | 2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/toaster/toastergui/templates/project.html +1 -1
index 2f978bc..5968c61 100644
@@ -67,7 +67,7 @@
 
        <div class="alert alert-info" style="display:none" id="no-most-built">
          <span class="lead">You haven't built any recipes yet</span>
-        <p style="margin-top: 10px;"><a href="{% url 'projectsoftwarerecipes' project.id %}">Choose a recipe to build</a></p>
+        <p style="margin-top: 10px;"><a href="{% url 'projectimagerecipes' project.id %}">Choose a recipe to build</a></p>
        </div>
 
        <ul class="unstyled configuration-list" id="freq-build-list">
bitbake/lib/toaster/toastergui/templates/projecttopbar.html +1 -1
index ee86b54..7a6bfef 100644
@@ -1,6 +1,6 @@
  <div class="alert alert-success lead" id="project-created-notification" style="margin-top:15px; display:none">
    <button type="button" class="close" data-dismiss="alert">×</button>
-  Your project <strong>{{project.name}}</strong> has been created. You can now <a href="{% url 'projectmachines' project.id %}">select your target machine</a> and <a href="{% url 'projectsoftwarerecipes' project.id %}">choose image recipes</a> to build.
+  Your project <strong>{{project.name}}</strong> has been created. You can now <a href="{% url 'projectmachines' project.id %}">select your target machine</a> and <a href="{% url 'projectimagerecipes' project.id %}">choose image recipes</a> to build.
  </div>
 
  <!-- project name -->