[jb] Add document popup to oozie job browser
@@ -1333,8 +1333,8 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
<!-- ko if: doc_url -->
<li class="nav-header">${ _('Document') }</li>
<li>
- <a data-bind="hueLink: doc_url" href="javascript: void(0);" title="${ _('Open in editor') }">
- <span data-bind="text: name"></span>
+ <a data-bind="documentContextPopover: { uuid: doc_url().split('=')[1], orientation: 'bottom', offset: { top: 5 } }" href="javascript: void(0);" title="${ _('Preview document') }">
+ <span data-bind="text: name"></span> <i class="fa fa-info"></i>
</a>
</li>
<!-- /ko -->
@@ -1544,8 +1544,8 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
<!-- ko if: doc_url -->
<li class="nav-header">${ _('Document') }</li>
<li>
- <a data-bind="hueLink: doc_url" href="javascript: void(0);" title="${ _('Open in editor') }">
- <span data-bind="text: name"></span>
+ <a data-bind="documentContextPopover: { uuid: doc_url().split('=')[1], orientation: 'bottom', offset: { top: 5 } }" href="javascript: void(0);" title="${ _('Preview document') }">
+ <span data-bind="text: name"></span> <i class="fa fa-info"></i>
</a>
</li>
<!-- /ko -->
@@ -1670,8 +1670,8 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
<!-- ko if: doc_url -->
<li class="nav-header">${ _('Document') }</li>
<li>
- <a data-bind="hueLink: doc_url" href="javascript: void(0);" title="${ _('Open in editor') }">
- <span data-bind="text: name"></span>
+ <a data-bind="documentContextPopover: { uuid: doc_url().split('=')[1], orientation: 'bottom', offset: { top: 5 } }" href="javascript: void(0);" title="${ _('Preview document') }">
+ <span data-bind="text: name"></span> <i class="fa fa-info"></i>
</a>
</li>
<!-- /ko -->
