github.com/drone/runner-go@v1.12.0/handler/template/files/logs.tmpl (about) 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Dashboard</title> 6 <link rel="stylesheet" type="text/css" href="/static/reset.css"> 7 <link rel="stylesheet" type="text/css" href="/static/style.css"> 8 <link rel="icon" type="image/png" id="favicon" href="/static/favicon.png"> 9 <script src="/static/timeago.js" type="text/javascript"></script> 10 </head> 11 <body> 12 13 <header class="navbar"> 14 <div class="logo"> 15 <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> 16 </div> 17 <nav class="inline-nav"> 18 <ul> 19 <li><a href="/">Dashboard</a></li> 20 <li><a href="/logs" class="active">Logging</a></li> 21 </ul> 22 </nav> 23 </header> 24 25 <main> 26 <section> 27 <header> 28 <h1>Recent Logs</h1> 29 </header> 30 {{ if .Entries }} 31 <article class="logs"> 32 {{ range .Entries }} 33 <div class="entry"> 34 <span class="level {{ .Level }}">{{ .Level }}</span> 35 <span class="message">{{ .Message }}</span> 36 <span class="fields"> 37 {{ range $key, $val := .Data }} 38 <span><em>{{ $key }}</em>{{ $val }}</span> 39 {{ end }} 40 </span> 41 <span class="time" datetime="{{ timestamp .Unix }}"></span> 42 </div> 43 {{ end }} 44 </article> 45 {{ else }} 46 <div class="alert sleeping"> 47 <p>There is no recent log activity to display.</p> 48 </div> 49 {{ end }} 50 </section> 51 </main> 52 53 <footer></footer> 54 55 <script> 56 timeago.render(document.querySelectorAll('.time')); 57 </script> 58 </body> 59 </html>