| 1 | {{define "setup"}} |
| 2 | {{template "layout-start" .}} |
| 3 | <h1>{{if .StorageUnset}}Opslag kiezen{{else}}Opslagpad{{end}}</h1> |
| 4 | {{if not .StorageUnset}} |
| 5 | <p class="flash bad">Het pad wijzigen verplaatst geen repositories, artifacts of releases.</p> |
| 6 | {{end}} |
| 7 | <section class="panel"> |
| 8 | {{if .StorageFree}}<p>Vrije ruimte: <strong>{{.StorageFree}}</strong> van {{.StorageTotal}}.</p>{{end}} |
| 9 | <form method="post" action="/setup"> |
| 10 | <input type="hidden" name="csrf" value="{{.CSRF}}"> |
| 11 | <label>Pad op de schijf |
| 12 | <input name="path" value="{{.StoragePath}}" required placeholder="/absoluut/pad"> |
| 13 | </label> |
| 14 | <button type="submit">Opslaan</button> |
| 15 | </form> |
| 16 | <p class="muted">Het pad moet bestaan, beschrijfbaar zijn en minstens {{.MinFree}} vrij hebben.</p> |
| 17 | </section> |
| 18 | {{template "layout-end" .}} |
| 19 | {{end}} |
| 20 | |
| 21 | {{define "home"}} |
| 22 | {{template "layout-start" .}} |
| 23 | <section class="hero"> |
| 24 | <img src="/assets/logo.svg" alt="BlueGit"> |
| 25 | <div> |
| 26 | <h1>BlueGit</h1> |
| 27 | <p>Meld je aan om repositories te bekijken.</p> |
| 28 | {{if .StorageUnset}}<p class="flash bad">Opslag is nog niet ingesteld. Repositories zijn tijdelijk niet beschikbaar.</p>{{end}} |
| 29 | <p><a class="btn" href="/login">Aanmelden</a></p> |
| 30 | </div> |
| 31 | </section> |
| 32 | {{if .Repos}} |
| 33 | <section class="panel"> |
| 34 | <h2>Openbare repositories</h2> |
| 35 | <ul class="clean"> |
| 36 | {{range .Repos}}<li><a href="/{{.FullPath}}">{{.FullPath}}</a> <span class="muted">{{.Description}}</span></li>{{end}} |
| 37 | </ul> |
| 38 | </section> |
| 39 | {{end}} |
| 40 | {{template "layout-end" .}} |
| 41 | {{end}} |
| 42 | |
| 43 | {{define "dashboard"}} |
| 44 | {{template "layout-start" .}} |
| 45 | <h1>Overzicht</h1> |
| 46 | {{if .StorageUnset}}<p class="flash bad">Opslag is nog niet ingesteld. Repositories zijn tijdelijk niet beschikbaar.</p>{{end}} |
| 47 | {{if .Heat}}{{template "heatmap" .Heat}}{{end}} |
| 48 | <div class="grid-2"> |
| 49 | <section class="panel"> |
| 50 | <h2>Repositories</h2> |
| 51 | {{if not .Repos}}<p class="muted">Nog geen repositories.</p>{{end}} |
| 52 | <ul class="clean"> |
| 53 | {{range .Repos}}<li><a href="/{{.FullPath}}">{{.FullPath}}</a> <span class="pill">{{.Visibility}}</span><div class="muted">{{.Description}}</div></li>{{end}} |
| 54 | </ul> |
| 55 | </section> |
| 56 | <section class="panel"> |
| 57 | <h2>Groepen</h2> |
| 58 | {{if not .Groups}}<p class="muted">Nog geen groepen.</p>{{end}} |
| 59 | <ul class="clean"> |
| 60 | {{range .Groups}}<li><a href="/groups/{{.Path}}">{{.Name}}</a> <span class="muted">{{.Path}}</span></li>{{end}} |
| 61 | </ul> |
| 62 | </section> |
| 63 | </div> |
| 64 | {{template "layout-end" .}} |
| 65 | {{end}} |
| 66 | |
| 67 | {{define "heatmap"}} |
| 68 | <section class="heat" aria-label="Activiteit"> |
| 69 | <h2>Activiteit</h2> |
| 70 | <div class="heat-scroll"> |
| 71 | <div class="heat-months"> |
| 72 | {{range .Weeks}}<span>{{.Label}}</span>{{end}} |
| 73 | </div> |
| 74 | <div class="heat-body"> |
| 75 | <div class="heat-dow" aria-hidden="true"><span></span><span>M</span><span></span><span>W</span><span></span><span>F</span><span></span></div> |
| 76 | <div class="heat-cols"> |
| 77 | {{range .Weeks}} |
| 78 | <div class="heat-col"> |
| 79 | {{range .Days}}{{if .Off}}<span class="sq off"></span>{{else}}<span class="sq lv{{.Level}}" title="{{.Tip}}" tabindex="0"></span>{{end}}{{end}} |
| 80 | </div> |
| 81 | {{end}} |
| 82 | </div> |
| 83 | </div> |
| 84 | </div> |
| 85 | <div class="heat-foot"> |
| 86 | <p class="heat-total">{{.TotalText}}</p> |
| 87 | <div> |
| 88 | <p class="heat-legend"><span>Minder</span><span class="sq lv0"></span><span class="sq lv1"></span><span class="sq lv2"></span><span class="sq lv3"></span><span class="sq lv4"></span><span>Meer</span></p> |
| 89 | <p class="muted">Commits, merge requests en reacties.</p> |
| 90 | </div> |
| 91 | </div> |
| 92 | </section> |
| 93 | {{end}} |
| 94 | |
| 95 | {{define "new"}} |
| 96 | {{template "layout-start" .}} |
| 97 | <h1>Nieuw</h1> |
| 98 | <div class="grid-2"> |
| 99 | <form class="panel" method="post" action="/new/repo" data-kind="repo"> |
| 100 | <h2>Repository</h2> |
| 101 | <input type="hidden" name="csrf" value="{{.CSRF}}"> |
| 102 | <label>Naam <input name="name" required autocomplete="off"></label> |
| 103 | <p class="preview" data-slug-out></p> |
| 104 | <label>Beschrijving <input name="description"></label> |
| 105 | <label>Eigenaar |
| 106 | <select name="group"> |
| 107 | <option value="">Ikzelf</option> |
| 108 | {{range .Groups}}<option value="{{.Path}}">{{.Name}}</option>{{end}} |
| 109 | </select> |
| 110 | </label> |
| 111 | <label>Zichtbaarheid |
| 112 | <select name="visibility"><option value="private">Privé</option><option value="public">Openbaar</option></select> |
| 113 | </label> |
| 114 | <button type="submit">Aanmaken</button> |
| 115 | </form> |
| 116 | <form class="panel" method="post" action="/new/group" data-kind="group"> |
| 117 | <h2>Groep</h2> |
| 118 | <input type="hidden" name="csrf" value="{{.CSRF}}"> |
| 119 | <label>Naam <input name="name" required autocomplete="off"></label> |
| 120 | <p class="preview" data-slug-out></p> |
| 121 | <label>Beschrijving <input name="description"></label> |
| 122 | <button type="submit">Aanmaken</button> |
| 123 | </form> |
| 124 | </div> |
| 125 | <script src="/assets/slug.js"></script> |
| 126 | {{template "layout-end" .}} |
| 127 | {{end}} |
| 128 | |
| 129 | {{define "account"}} |
| 130 | {{template "layout-start" .}} |
| 131 | <h1>Account</h1> |
| 132 | <p class="muted">Voor git via HTTPS: je gebruikersnaam en een token als wachtwoord.</p> |
| 133 | {{if .NewToken}}<p class="code">{{.NewToken}}</p>{{end}} |
| 134 | <section class="panel"> |
| 135 | <h2>Toegangstokens</h2> |
| 136 | <form method="post" action="/settings/tokens"> |
| 137 | <input type="hidden" name="csrf" value="{{.CSRF}}"> |
| 138 | <div class="row"><input name="name" placeholder="naam, bijvoorbeeld laptop" required><button type="submit">Nieuw token</button></div> |
| 139 | </form> |
| 140 | <ul class="clean"> |
| 141 | {{range .Tokens}}<li>{{.Name}} <span class="muted">{{.Prefix}}…</span> |
| 142 | <form method="post" action="/settings/tokens/delete" class="row"> |
| 143 | <input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="id" value="{{.ID}}"> |
| 144 | <button class="ghost" type="submit">Intrekken</button> |
| 145 | </form> |
| 146 | </li>{{end}} |
| 147 | </ul> |
| 148 | </section> |
| 149 | <section class="panel"> |
| 150 | <h2>SSH-sleutels</h2> |
| 151 | <form method="post" action="/settings/ssh"> |
| 152 | <input type="hidden" name="csrf" value="{{.CSRF}}"> |
| 153 | <label>Naam <input name="name" placeholder="laptop"></label> |
| 154 | <label>Publieke sleutel <textarea name="key" placeholder="ssh-ed25519 AAAA... " required></textarea></label> |
| 155 | <button type="submit">Toevoegen</button> |
| 156 | </form> |
| 157 | <ul class="clean"> |
| 158 | {{range .Keys}}<li>{{.Name}} <span class="muted">{{.Fingerprint}}</span> |
| 159 | <form method="post" action="/settings/ssh/delete"> |
| 160 | <input type="hidden" name="csrf" value="{{$.CSRF}}"><input type="hidden" name="id" value="{{.ID}}"> |
| 161 | <button class="ghost" type="submit">Verwijderen</button> |
| 162 | </form> |
| 163 | </li>{{end}} |
| 164 | </ul> |
| 165 | </section> |
| 166 | <p><a href="/settings/export">Gegevens downloaden (JSON)</a></p> |
| 167 | {{template "layout-end" .}} |
| 168 | {{end}} |
| 169 | |
| 170 | {{define "ficon"}} |
| 171 | {{if eq . "dir"}}<svg class="ficon" viewBox="0 0 16 16" aria-hidden="true"><path fill="#8aa0b8" d="M1.5 3.5A1.5 1.5 0 0 1 3 2h3l1.2 1.5H13A1.5 1.5 0 0 1 14.5 5v7.2a1.3 1.3 0 0 1-1.3 1.3H2.8A1.3 1.3 0 0 1 1.5 12.2z"/></svg> |
| 172 | {{else if eq . "md"}}<svg class="ficon" viewBox="0 0 16 16" aria-hidden="true"><path fill="#1f6feb" d="M2 3h12v10H2z"/><path fill="#fff" d="M4 10V6h1.2l1.3 2 1.3-2H9v4H7.8V8L6.5 10 5.2 8v2zm6.2 0V8.2H9l1.8-2.2h1.4L10.6 8.2H12V10z"/></svg> |
| 173 | {{else if eq . "code"}}<svg class="ficon" viewBox="0 0 16 16" aria-hidden="true"><path fill="#cf222e" d="M6.2 4.2 2.4 8l3.8 3.8-1.1 1.1L.2 8l4.9-4.9zm3.6 0 1.1-1.1L15.8 8l-4.9 4.9-1.1-1.1L13.6 8z"/></svg> |
| 174 | {{else if eq . "cfg"}}<svg class="ficon" viewBox="0 0 16 16" aria-hidden="true"><path fill="#9a6700" d="M8 1.5 14 5v6l-6 3.5L2 11V5z"/></svg> |
| 175 | {{else if eq . "lic"}}<svg class="ficon" viewBox="0 0 16 16" aria-hidden="true"><path fill="#8250df" d="M4 1.5h8v13l-4-2.2-4 2.2z"/></svg> |
| 176 | {{else if eq . "img"}}<svg class="ficon" viewBox="0 0 16 16" aria-hidden="true"><path fill="#1a7f37" d="M2 3h12v10H2z"/><circle cx="6" cy="6.5" r="1.2" fill="#fff"/><path fill="#fff" d="m3.5 11 3-3 2 2 1.5-1.5 2.5 2.5z"/></svg> |
| 177 | {{else}}<svg class="ficon" viewBox="0 0 16 16" aria-hidden="true"><path fill="#6e7781" d="M4 1.5h5l3 3V14H4z"/><path fill="#fff" d="M9 1.5v3h3"/></svg> |
| 178 | {{end}} |
| 179 | {{end}} |
| 180 | |
| 181 | {{define "visicon"}} |
| 182 | {{if eq .Repo.Visibility "public"}}<svg class="vis" viewBox="0 0 16 16" aria-label="Openbaar"><circle cx="8" cy="8" r="6" fill="none" stroke="currentColor" stroke-width="1.4"/><path fill="none" stroke="currentColor" stroke-width="1.2" d="M2 8h12M8 2c1.8 1.8 1.8 10.2 0 12M8 2c-1.8 1.8-1.8 10.2 0 12"/></svg> |
| 183 | {{else}}<svg class="vis" viewBox="0 0 16 16" aria-label="Privé"><rect x="3.5" y="7" width="9" height="6.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.4"/><path fill="none" stroke="currentColor" stroke-width="1.4" d="M5.5 7V5a2.5 2.5 0 0 1 5 0v2"/></svg> |
| 184 | {{end}} |
| 185 | {{end}} |
| 186 | |
| 187 | {{define "branchpick"}} |
| 188 | <label class="branch"> |
| 189 | <select data-rev> |
| 190 | {{range .Branches}}<option value="{{.Name}}" {{if eq .Name $.Rev}}selected{{end}}>{{.Name}}</option>{{end}} |
| 191 | </select> |
| 192 | </label> |
| 193 | {{if .RevProtected}}<svg class="vis" viewBox="0 0 16 16" aria-label="Beschermd"><rect x="3.5" y="7" width="9" height="6.5" rx="1" fill="none" stroke="currentColor" stroke-width="1.4"/><path fill="none" stroke="currentColor" stroke-width="1.4" d="M5.5 7V5a2.5 2.5 0 0 1 5 0v2"/></svg>{{end}} |
| 194 | {{end}} |
| 195 | |
| 196 | {{define "commitbar"}} |
| 197 | {{if .Head}} |
| 198 | <div class="commitbar"> |
| 199 | <span class="avatar">{{initial .Head.Author}}</span> |
| 200 | <div class="grow"> |
| 201 | <a href="/{{.Repo.FullPath}}/-/commit/{{.Head.SHA}}">{{.Head.Subject}}</a> |
| 202 | <div class="muted">{{.Head.Author}} · {{.Head.When}}</div> |
| 203 | </div> |
| 204 | <code class="sha">{{slice .Head.SHA 0 8}}</code> |
| 205 | <button type="button" class="iconbtn" data-copy="{{.Head.SHA}}" aria-label="Kopieer">Kopieer</button> |
| 206 | <a class="btn ghost" href="/{{.Repo.FullPath}}/-/commits?rev={{.Rev}}">Geschiedenis</a> |
| 207 | </div> |
| 208 | {{end}} |
| 209 | {{end}} |
| 210 | |
| 211 | {{define "codemenu"}} |
| 212 | <details class="menu"> |
| 213 | <summary class="btn ghost">Code</summary> |
| 214 | <div class="menu-panel"> |
| 215 | {{if .CloneSSH}} |
| 216 | <p class="muted">SSH</p> |
| 217 | <div class="copyline"><input readonly value="{{.CloneSSH}}"><button type="button" data-copy="{{.CloneSSH}}">Kopieer</button></div> |
| 218 | {{end}} |
| 219 | <p class="muted">HTTPS</p> |
| 220 | <div class="copyline"><input readonly value="{{.CloneHTTP}}"><button type="button" data-copy="{{.CloneHTTP}}">Kopieer</button></div> |
| 221 | <p class="muted">Gebruikersnaam en een token als wachtwoord.</p> |
| 222 | </div> |
| 223 | </details> |
| 224 | {{end}} |
| 225 | |
| 226 | {{define "filetable"}} |
| 227 | {{if .Files}} |
| 228 | <table class="files"> |
| 229 | <thead><tr><th>Naam</th><th>Laatste commit</th><th>Laatste wijziging</th></tr></thead> |
| 230 | <tbody> |
| 231 | {{range .Files}} |
| 232 | <tr> |
| 233 | <td>{{template "ficon" .Icon}} {{if .Dir}}<a href="/{{$.Repo.FullPath}}/-/tree/{{.Path}}?rev={{$.Rev}}">{{.Name}}</a>{{else}}<a href="/{{$.Repo.FullPath}}/-/blob/{{.Path}}?rev={{$.Rev}}">{{.Name}}</a>{{end}}</td> |
| 234 | <td class="msg">{{if .SHA}}<a href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}">{{.Subject}}</a>{{end}}</td> |
| 235 | <td class="muted">{{.When}}</td> |
| 236 | </tr> |
| 237 | {{end}} |
| 238 | </tbody> |
| 239 | </table> |
| 240 | {{else if eq .Page "files"}}<p class="muted">Deze map is leeg.</p>{{else if not .Head}}<p class="panel">Nog geen commits.</p>{{end}} |
| 241 | {{end}} |
| 242 | |
| 243 | {{define "repo"}} |
| 244 | {{template "layout-start" .}} |
| 245 | <p class="crumbs">{{if eq .Repo.OwnerKind "group"}}<a href="/groups/{{.Repo.OwnerPath}}">{{.Repo.OwnerPath}}</a>{{else}}<span>{{.Repo.OwnerPath}}</span>{{end}} / <span>{{.Repo.Name}}</span></p> |
| 246 | {{template "repotabs" .}} |
| 247 | <div class="projhead"> |
| 248 | <span class="tile">{{initial .Repo.Name}}</span> |
| 249 | <h1>{{.Repo.Name}}</h1> |
| 250 | {{template "visicon" .}} |
| 251 | </div> |
| 252 | {{if .Heat}}{{template "heatmap" .Heat}}{{end}} |
| 253 | <div class="proj"> |
| 254 | <div> |
| 255 | <div class="toolbar"> |
| 256 | <div class="left">{{template "branchpick" .}} <span class="pathnow">{{.Repo.Name}}</span></div> |
| 257 | <div class="right"> |
| 258 | <a class="btn ghost" href="/{{.Repo.FullPath}}/-/tree?rev={{.Rev}}&focus=1">Bestand zoeken</a> |
| 259 | {{template "codemenu" .}} |
| 260 | </div> |
| 261 | </div> |
| 262 | {{template "commitbar" .}} |
| 263 | {{template "filetable" .}} |
| 264 | {{if .ReadmeName}} |
| 265 | <article class="readme"> |
| 266 | <header>{{template "ficon" "md"}} {{.ReadmeName}}</header> |
| 267 | <div class="mdbody">{{.Readme}}</div> |
| 268 | </article> |
| 269 | {{end}} |
| 270 | </div> |
| 271 | <aside class="side"> |
| 272 | <h2>Projectinformatie</h2> |
| 273 | {{if .Repo.Description}}<p>{{.Repo.Description}}</p>{{end}} |
| 274 | <ul class="counts"> |
| 275 | <li><a href="/{{.Repo.FullPath}}/-/commits?rev={{.Rev}}">{{.NCommits}} {{if eq .NCommits 1}}commit{{else}}commits{{end}}</a></li> |
| 276 | <li><a href="/{{.Repo.FullPath}}/-/branches">{{.NBranches}} {{if eq .NBranches 1}}branch{{else}}branches{{end}}</a></li> |
| 277 | <li><a href="/{{.Repo.FullPath}}/-/tags">{{.NTags}} {{if eq .NTags 1}}tag{{else}}tags{{end}}</a></li> |
| 278 | <li><a href="/{{.Repo.FullPath}}/-/releases">{{.NReleases}} {{if eq .NReleases 1}}release{{else}}releases{{end}}</a></li> |
| 279 | </ul> |
| 280 | {{if .ReadmeName}}<p><a href="/{{.Repo.FullPath}}/-/blob/{{.ReadmeName}}?rev={{.Rev}}">README</a></p>{{end}} |
| 281 | {{if .LicensePath}}<p><a href="/{{.Repo.FullPath}}/-/blob/{{.LicensePath}}?rev={{.Rev}}">LICENSE</a></p>{{end}} |
| 282 | {{if .Created}}<p class="muted">Aangemaakt op {{.Created}}</p>{{end}} |
| 283 | </aside> |
| 284 | </div> |
| 285 | <script src="/assets/repo.js"></script> |
| 286 | {{template "layout-end" .}} |
| 287 | {{end}} |
| 288 | |
| 289 | {{define "files"}} |
| 290 | {{template "layout-start" .}} |
| 291 | <p class="crumbs">{{if eq .Repo.OwnerKind "group"}}<a href="/groups/{{.Repo.OwnerPath}}">{{.Repo.OwnerPath}}</a>{{else}}<span>{{.Repo.OwnerPath}}</span>{{end}} / <a href="/{{.Repo.FullPath}}?rev={{.Rev}}">{{.Repo.Name}}</a></p> |
| 292 | {{template "repotabs" .}} |
| 293 | <div class="fileview"> |
| 294 | <aside class="treebox"> |
| 295 | <h2>Bestanden</h2> |
| 296 | <input type="search" placeholder="Zoeken" data-tree-filter> |
| 297 | <ul class="treelist"> |
| 298 | {{range .Tree}} |
| 299 | <li class="depth-{{.Depth}}{{if .Active}} active{{end}}" data-path="{{.Path}}"> |
| 300 | {{template "ficon" .Icon}} |
| 301 | {{if .Dir}}<a href="/{{$.Repo.FullPath}}/-/tree/{{.Path}}?rev={{$.Rev}}">{{.Name}}</a>{{else}}<a href="/{{$.Repo.FullPath}}/-/blob/{{.Path}}?rev={{$.Rev}}">{{.Name}}</a>{{end}} |
| 302 | </li> |
| 303 | {{end}} |
| 304 | </ul> |
| 305 | </aside> |
| 306 | <div> |
| 307 | <div class="toolbar"> |
| 308 | <div class="left"> |
| 309 | {{template "branchpick" .}} |
| 310 | <span class="pathnow"> |
| 311 | <a href="/{{.Repo.FullPath}}/-/tree?rev={{.Rev}}">{{.Repo.Name}}</a> |
| 312 | {{if .BlobPath}}{{range splitPath .BlobPath}} / <span>{{.}}</span>{{end}}{{else if .TreePath}}{{range splitPath .TreePath}} / <span>{{.}}</span>{{end}}{{end}} |
| 313 | </span> |
| 314 | {{if or .BlobPath .TreePath}}<button type="button" class="iconbtn" data-copy="{{if .BlobPath}}{{.BlobPath}}{{else}}{{.TreePath}}{{end}}" aria-label="Kopieer">Kopieer</button>{{end}} |
| 315 | </div> |
| 316 | </div> |
| 317 | {{if .BlobPath}} |
| 318 | <h1 class="filename">{{template "ficon" (iconOf .FileName)}} {{.FileName}}</h1> |
| 319 | {{template "commitbar" .}} |
| 320 | <article class="codebox"> |
| 321 | <header>{{template "ficon" (iconOf .FileName)}} {{.FileName}} <span class="muted">{{.BlobSize}}</span></header> |
| 322 | {{if .Binary}}<p>Binair bestand.</p>{{else}} |
| 323 | <table class="code"> |
| 324 | {{range .Lines}}<tr><td class="ln">{{.N}}</td><td class="src">{{.HTML}}</td></tr>{{end}} |
| 325 | </table> |
| 326 | {{end}} |
| 327 | </article> |
| 328 | {{else}} |
| 329 | {{template "filetable" .}} |
| 330 | {{end}} |
| 331 | </div> |
| 332 | </div> |
| 333 | <script src="/assets/repo.js"></script> |
| 334 | {{template "layout-end" .}} |
| 335 | {{end}} |
| 336 | |
| 337 | {{define "tags"}} |
| 338 | {{template "layout-start" .}} |
| 339 | <h1>Tags</h1> |
| 340 | {{template "repotabs" .}} |
| 341 | <ul class="clean"> |
| 342 | {{range .TagNames}}<li><code>{{.}}</code></li>{{else}}<li class="muted">Nog geen tags.</li>{{end}} |
| 343 | </ul> |
| 344 | {{template "layout-end" .}} |
| 345 | {{end}} |
| 346 | |
| 347 | {{define "commits"}} |
| 348 | {{template "layout-start" .}} |
| 349 | <h1>Commits</h1> |
| 350 | {{template "repotabs" .}} |
| 351 | <ul class="clean"> |
| 352 | {{range .Commits}}<li><a href="/{{$.Repo.FullPath}}/-/commit/{{.SHA}}">{{.Short}}</a> {{.Subject}} <span class="muted">{{.Author}} · {{.Date}}</span></li>{{else}}<li class="muted">Nog geen commits.</li>{{end}} |
| 353 | </ul> |
| 354 | {{template "layout-end" .}} |
| 355 | {{end}} |
| 356 | |
| 357 | {{define "commit"}} |
| 358 | {{template "layout-start" .}} |
| 359 | <h1>{{.Commit.Subject}}</h1> |
| 360 | {{template "repotabs" .}} |
| 361 | <p class="muted">{{.Commit.SHA}} · {{.Commit.Author}} · {{.Commit.Date}}</p> |
| 362 | {{if .Commit.Body}}<pre>{{.Commit.Body}}</pre>{{end}} |
| 363 | {{template "layout-end" .}} |
| 364 | {{end}} |
| 365 | |
| 366 | {{define "branches"}} |
| 367 | {{template "layout-start" .}} |
| 368 | <h1>Branches</h1> |
| 369 | {{template "repotabs" .}} |
| 370 | <ul class="clean"> |
| 371 | {{range .Branches}}<li><a href="/{{$.Repo.FullPath}}?rev={{.Name}}">{{.Name}}</a> {{if .Protected}}<span class="pill">beschermd</span>{{end}}</li>{{else}}<li class="muted">Nog geen branches.</li>{{end}} |
| 372 | </ul> |
| 373 | {{template "layout-end" .}} |
| 374 | {{end}} |