Now that we have a backend link between hosts and profiles, it makes
some sense to list the current value of the property in the View Host
tab.

Signed-off-by: Nishanth Aravamudan <[email protected]>

---
 .../client/src/autotest/afe/HostDetailView.java    |    5 +++--
 frontend/client/src/autotest/public/AfeClient.html |    4 +++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/frontend/client/src/autotest/afe/HostDetailView.java 
b/frontend/client/src/autotest/afe/HostDetailView.java
index 8e8f5f6..3de504b 100644
--- a/frontend/client/src/autotest/afe/HostDetailView.java
+++ b/frontend/client/src/autotest/afe/HostDetailView.java
@@ -37,8 +37,8 @@ public class HostDetailView extends DetailView
                             implements DataCallback, TableActionsListener, 
SelectableRowFilter {
     private static final String[][] HOST_JOBS_COLUMNS = {
             {DataTable.WIDGET_COLUMN, ""}, {"type", "Type"}, {"job__id", "Job 
ID"},
-            {"job_owner", "Job Owner"}, {"job_name", "Job Name"}, 
{"started_on", "Time started"},
-            {"status", "Status"}
+            {"job_owner", "Job Owner"}, {"job_name", "Job Name"}, {"profile", 
"Profile"},
+            {"started_on", "Time started"}, {"status", "Status"}
     };
     public static final int JOBS_PER_PAGE = 20;
 
@@ -222,6 +222,7 @@ public class HostDetailView extends DetailView
         showField(currentHostObject, HostDataSource.OTHER_LABELS, 
"view_host_labels");
         showText(lockedText, "view_host_locked");
         showField(currentHostObject, "protection", "view_host_protection");
+        showField(currentHostObject, "current_profile", 
"view_host_current_profile");
         String pageTitle = "Host " + hostname;
         updateLockButton();
         displayObjectData(pageTitle);
diff --git a/frontend/client/src/autotest/public/AfeClient.html 
b/frontend/client/src/autotest/public/AfeClient.html
index 933fb8d..9ef8122 100644
--- a/frontend/client/src/autotest/public/AfeClient.html
+++ b/frontend/client/src/autotest/public/AfeClient.html
@@ -184,7 +184,9 @@
           <span id="view_host_locked"></span>
           <span id="view_host_lock_button"></span><br>
           <span class="field-name">Protection level:</span>
-          <span id="view_host_protection"></span>
+          <span id="view_host_protection"></span><br>
+          <span class="field-name">Current profile:</span>
+          <span id="view_host_current_profile"></span>
           <br><br>
           <span class="field-name">Jobs for this host:</span>
           <div id="view_host_jobs_table"></div>
-- 
1.7.7.6

-- 
Nishanth Aravamudan <[email protected]>
IBM Linux Technology Center

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to