// SPDX-License-Identifier: AGPL-3.0-or-later package web import "html/template" // Blob is a file: its title with the actions, the notice of a state (too // large, binary, empty), the code, the rendered Markdown with its source // under a fold, or the image; the rail holds the facts, the last change, the // outline and the line selection. templ Blob(l Layout, p BlobPage) { @Shell(l, blobRail(p)) {
{ p.Notice }
} if p.Image {@templ.Raw(string(h))
}
templ blobRail(p BlobPage) {
{ p.Last.Short } { p.Last.Subject }
{ p.Last.Author } · if p.Last.WhenAt != "" { }
none · click a line number, shift-click extends
y copies a permalink pinned to the commit sha