mirror of
https://github.com/correl/melpa.git
synced 2024-11-25 03:00:10 +00:00
Better layout in "badge code" section of package pages
This commit is contained in:
parent
7f89e3097c
commit
cb3413cebb
1 changed files with 4 additions and 1 deletions
|
@ -403,7 +403,10 @@
|
||||||
m("section",
|
m("section",
|
||||||
m("h4", "Badge code"),
|
m("h4", "Badge code"),
|
||||||
m(".well", [
|
m(".well", [
|
||||||
packageLink(pkg, m("img", {alt: ctrl.archivename.archiveName(), src: melpa.rootURL + pkg.badgeURL})),
|
m("dl", [
|
||||||
|
m("dt", "Preview"),
|
||||||
|
m("dd", packageLink(pkg, m("img", {alt: ctrl.archivename.archiveName(), src: melpa.rootURL + pkg.badgeURL})))
|
||||||
|
]),
|
||||||
m("dl", [
|
m("dl", [
|
||||||
m("dt", "HTML"),
|
m("dt", "HTML"),
|
||||||
m("dd", m("pre", '<a href="' + fullURL + '"><img alt="' + ctrl.archivename.archiveName() + '" src="' + badgeURL + '"/></a>')),
|
m("dd", m("pre", '<a href="' + fullURL + '"><img alt="' + ctrl.archivename.archiveName() + '" src="' + badgeURL + '"/></a>')),
|
||||||
|
|
Loading…
Reference in a new issue