Fix bug NST is not shown in Netslice Templates list
[osm/LW-UI.git] / instancehandler / template / instance_operations_list.html
index 7e84658..3f54f1f 100644 (file)
@@ -28,7 +28,7 @@
 {% block breadcrumb_body %}
     {{ block.super }}
     <li><a href="{% url 'instances:list'  type=type %}">Instances</a></li>
-    <li><a href="#">Operations</a></li>
+    <li><a href="#">History of Operations</a></li>
 {% endblock %}
 
 {% block content_body %}
@@ -40,7 +40,7 @@
 
             <div class="box">
                 <div class="box-header with-border">
-                    <h3 class="box-title">Active operations</h3>
+                    <h3 class="box-title">History of operations</h3>
 
                 </div>
                 <div class="box-body">
                 },
                 {
                     "render": function (data, type, row) {
-                        return row["startTime"];
+                        return moment.unix(row['startTime']).format('YYYY-MM-DD hh:mm:ss a')
                     },
                     "targets": 3
                 },
                 {
                     "render": function (data, type, row) {
-                        return row["statusEnteredTime"];
+                        return moment.unix(row['statusEnteredTime']).format('YYYY-MM-DD hh:mm:ss a')
                     },
                     "targets": 4
                 },
                     "render": function (data, type, row) {
                         return '<div class="btn-group">\n' +
                             '     <button type="button" class="btn btn-default"\n' +
-                            '             onclick="javascript:showOperationDetails(\''+row["nsInstanceId"]+'\', \''+row["_id"]+'\')"\n' +
+                            '             onclick="javascript:showOperationDetails(\''+instance_type+'\', \''+instance_id+'\', \''+row["_id"]+'\')"\n' +
                             '             data-toggle="tooltip" data-placement="top" data-container="body" title="Show Info">\n' +
                             '         <i class="fa fa-info"></i>\n' +
                             '     </button>\n' +
                             ' </div>';
                     },
-                    "targets": 5
+                    "targets": 5,
+                    "orderable": false
                 }
-                ]
+                ],
+                "order": [[ 3, "asc" ]]
             });
 
 
 
 {% block footer %}
     {% include "footer.html" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}