Browse Source

[jobsub] Show paths in workflow info as hdfs links

bc Wong 13 years ago
parent
commit
b2697322ac
1 changed files with 9 additions and 2 deletions
  1. 9 2
      apps/jobsub/src/jobsub/templates/workflow.mako

+ 9 - 2
apps/jobsub/src/jobsub/templates/workflow.mako

@@ -59,7 +59,14 @@ ${layout.menubar(section='history')}
               % for name, value in sorted(configs.items()):
               % for name, value in sorted(configs.items()):
                 <tr>
                 <tr>
                   <td>${name}</td>
                   <td>${name}</td>
-                  <td>${value}</td>
+                  <td>
+                    ## Try to detect paths
+                    %if name.endswith('dir') or name.endswith('path'):
+                      ${hdfs_link(value)}
+                    %else:
+                      ${value}
+                    %endif
+                  </td>
                 </tr>
                 </tr>
               % endfor
               % endfor
             </tbody>
             </tbody>
@@ -163,7 +170,7 @@ ${layout.menubar(section='history')}
               </tr>
               </tr>
               <tr>
               <tr>
                 <td>External Id</td>
                 <td>External Id</td>
-                <td>${workflow.externalId or None}</td>
+                <td>${workflow.externalId or "-"}</td>
               </tr>
               </tr>
               <tr>
               <tr>
                 <td>Start Time</td>
                 <td>Start Time</td>