15 lines · 336 B · Go
RawDownload
package shared import (	"html"	"html/template"	"strconv" 	"forgejo.org/modules/setting") func ImgIcon(name string, size int) template.HTML {	s := strconv.Itoa(size)	src := html.EscapeString(setting.StaticURLPrefix + "/assets/img/" + name)	return template.HTML(`<img width="` + s + `" height="` + s + `" src="` + src + `">`)}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t