You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/04/05 14:35:53 UTC

[airavata-django-portal] 02/03: AIRAVATA-2614 Add View link

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit a2ba6a0af0b76a1083d66b26ef933cd948dba434
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Thu Apr 5 10:09:31 2018 -0400

    AIRAVATA-2614 Add View link
---
 .../js/containers/ExperimentListContainer.vue                    | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/containers/ExperimentListContainer.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/containers/ExperimentListContainer.vue
index 8879781..efaa360 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/containers/ExperimentListContainer.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/containers/ExperimentListContainer.vue
@@ -20,10 +20,12 @@
                             </thead>
                             <tbody>
                                 <tr v-for="experiment in experiments" :key="experiment.experimentId">
-                                    <td><a :href="'/workspace/experiments/' + encodeURIComponent(experiment.experimentId) + '/'">{{experiment.name}}</a></td>
+                                    <td>{{experiment.name}}</td>
                                     <td><span :title="experiment.creationTime">{{ fromNow(experiment.creationTime) }}</span></td>
                                     <td><experiment-status-badge :statusName="experiment.experimentStatus" /></td>
-                                    <td></td>
+                                    <td>
+                                        <a :href="viewLink(experiment)">View <i class="fa fa-bar-chart" aria-hidden="true"></i></a>
+                                    </td>
                                 </tr>
                             </tbody>
                         </table>
@@ -66,6 +68,9 @@ export default {
         },
         fromNow: function(date) {
             return moment(date).fromNow();
+        },
+        viewLink: function(experiment) {
+            return '/workspace/experiments/' + encodeURIComponent(experiment.experimentId) + '/';
         }
     },
     computed: {

-- 
To stop receiving notification emails like this one, please contact
machristie@apache.org.