{{define "title"}}Job View {{.Source}}{{end}}

{{define "scripts"}}
<script type="text/javascript">
  var src = {{.Source}};
  var lensArtifacts = {{.LensArtifacts}};
  var lenses = {{.LensNames}};
</script>
<script type="text/javascript" src="/static/spyglass_bundle.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/spyglass/spyglass.css">
{{end}}

{{define "content"}}
{{$source:=.Source}}
{{if .JobHistLink}}
<h4>&nbsp;<a href="{{.JobHistLink}}">Job History</a></h4>
{{end}}
<div id="lens-container">
  {{range .Lenses}}
  <div class="mdl-card mdl-shadow--2dp lens-card">
  <div class="mdl-card__title lens-title"><h3 class="mdl-card__title-text">{{.Title}}</h3></div>
  <div id="{{.Name}}-view-container" class="lens-view-content mdl-card__supporting-text">
    <div class="mdl-spinner mdl-js-spinner is-active lens-card-loading" id="{{.Name}}-loading"></div>
      <iframe class="lens-container" style="visibility: hidden;" id="iframe-{{.Name}}" sandbox="allow-scripts allow-top-navigation" data-lens="{{.Name}}"></iframe>
    </div>
  </div>
  {{end}}
</div>
{{end}}

{{template "page" (settings mobileUnfriendly "spyglass" .)}}

{{define "title"}}Job View {{.Source}}{{end}}

{{define "scripts"}}
<script type="text/javascript">
  var src = {{.Source}};
  var lensArtifacts = {{.LensArtifacts}};
  var lenses = {{.LensNames}};
</script>
<script type="text/javascript" src="/static/spyglass_bundle.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/spyglass/spyglass.css">
{{end}}

{{define "content"}}
{{$source:=.Source}}
{{if .JobHistLink}}
<h4>&nbsp;<a href="{{.JobHistLink}}">Job History</a></h4>
{{end}}
<div id="lens-container">
  {{range .Lenses}}
  <div class="mdl-card mdl-shadow--2dp lens-card">
  <div class="mdl-card__title lens-title"><h3 class="mdl-card__title-text">{{.Title}}</h3></div>
  <div id="{{.Name}}-view-container" class="lens-view-content mdl-card__supporting-text">
    <div class="mdl-spinner mdl-js-spinner is-active lens-card-loading" id="{{.Name}}-loading"></div>
      <iframe class="lens-container" style="visibility: hidden;" id="iframe-{{.Name}}" sandbox="allow-scripts allow-top-navigation allow-popups" data-lens="{{.Name}}"></iframe>
    </div>
  </div>
  {{end}}
</div>
{{end}}

{{template "page" (settings mobileUnfriendly "spyglass" .)}}

Allow lenses to produce popups.
Allow lenses to produce popups.
