github.com/drone/runner-go@v1.12.0/handler/template/files/index.tmpl (about) 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <meta http-equiv="refresh" content="10"> 6 <title>Dashboard</title> 7 <link rel="stylesheet" type="text/css" href="/static/reset.css"> 8 <link rel="stylesheet" type="text/css" href="/static/style.css"> 9 <link rel="icon" type="image/png" id="favicon" href="/static/favicon.png"> 10 <script src="/static/timeago.js" type="text/javascript"></script> 11 </head> 12 <body> 13 14 <header class="navbar"> 15 <div class="logo"> 16 <svg viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path d="M12.086 5.814l-.257.258 10.514 10.514C20.856 18.906 20 21.757 20 25c0 9.014 6.618 15 15 15 3.132 0 6.018-.836 8.404-2.353l10.568 10.568C48.497 55.447 39.796 60 30 60 13.434 60 0 46.978 0 30 0 19.903 4.751 11.206 12.086 5.814zm5.002-2.97C20.998 1.015 25.378 0 30 0c16.566 0 30 13.022 30 30 0 4.67-1.016 9.04-2.835 12.923l-9.508-9.509C49.144 31.094 50 28.243 50 25c0-9.014-6.618-15-15-15-3.132 0-6.018.836-8.404 2.353l-9.508-9.508zM35 34c-5.03 0-9-3.591-9-9s3.97-9 9-9c5.03 0 9 3.591 9 9s-3.97 9-9 9z" id="a"></path></defs><use fill="#FFF" xlink:href="#a" fill-rule="evenodd"></use></svg> 17 </div> 18 <nav class="inline-nav"> 19 <ul> 20 <li><a href="/" class="active">Dashboard</a></li> 21 <li><a href="/logs">Logging</a></li> 22 </ul> 23 </nav> 24 </header> 25 26 <main> 27 <section> 28 <header> 29 <h1>Dashboard</h1> 30 </header> 31 <article class="cards stages"> 32 {{ if not .Items }} 33 <div class="alert sleeping"> 34 <p>There is no recent activity to display.</p> 35 </div> 36 {{ else if .Idle }} 37 <div class="alert sleeping"> 38 <p>This runner is currently idle.</p> 39 </div> 40 {{ end }} 41 {{ range .Items }} 42 <a href="/view?id={{ .Stage.ID }}" class="card stage"> 43 <h2>{{ .Repo.Slug }}</h2> 44 <img src="{{ .Build.AuthorAvatar }}" /> 45 <span class="connector"></span> 46 <span class="status {{ .Stage.Status }}"></span> 47 <span class="desc">assigned stage <em>{{ .Stage.Name }}</em> for build <em>#{{ .Build.Number }}</em></span> 48 <span class="time" datetime="{{ if .Stage.Started }}{{ timestamp .Stage.Started }}{{ else }}{{ timestamp .Stage.Created }}{{ end }}"></span> 49 </a> 50 {{ end }} 51 </article> 52 </section> 53 </main> 54 55 <footer></footer> 56 57 <script> 58 timeago.render(document.querySelectorAll('.time')); 59 </script> 60 </body> 61 </html>