You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/06/30 22:40:32 UTC

[2/8] airavata-php-gateway git commit: fixing AIRAVATA-1741

fixing AIRAVATA-1741


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/378c475e
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/378c475e
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/378c475e

Branch: refs/heads/master
Commit: 378c475e4c6c0c1ea33911058174bd6d306ebbbd
Parents: 19e3f6a
Author: Supun Nakandala <sc...@apache.org>
Authored: Tue Jun 30 16:56:20 2015 +0530
Committer: Supun Nakandala <sc...@apache.org>
Committed: Tue Jun 30 16:56:20 2015 +0530

----------------------------------------------------------------------
 app/views/project/summary.blade.php | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/378c475e/app/views/project/summary.blade.php
----------------------------------------------------------------------
diff --git a/app/views/project/summary.blade.php b/app/views/project/summary.blade.php
index ab4ebef..a05c59e 100755
--- a/app/views/project/summary.blade.php
+++ b/app/views/project/summary.blade.php
@@ -93,11 +93,19 @@
 
         echo "<td>$applicationInterface->applicationName</td>";
 
-        echo '<td>' . CRUtilities::get_compute_resource($experiment->userConfigurationData
-                ->computationalResourceScheduling->resourceHostId)->hostName . '</td>';
+        echo '<td>';
+        try {
+            $cr = CRUtilities::get_compute_resource($experiment->userConfigurationData
+                ->computationalResourceScheduling->resourceHostId);
+            if (!empty($cr)) {
+                echo $cr->hostName;
+            }
+        } catch (Exception $ex) {
+            //Error while retrieving the CR
+        }
+        echo '</td>';
         echo '<td class="time" unix-time="' . $expValues["experimentTimeOfStateChange"] . '"></td>';
 
-
         echo '<td>'. $expValues["experimentStatusString"] . '</td>';
 
         if ($expValues["jobState"]) echo '