From cb3413cebb2c6d526b050ffe75fcc9e6833082fe Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Fri, 27 Feb 2015 20:23:57 +0000 Subject: [PATCH] Better layout in "badge code" section of package pages --- html/js/melpa.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/js/melpa.js b/html/js/melpa.js index c8d442fa..00c1269b 100644 --- a/html/js/melpa.js +++ b/html/js/melpa.js @@ -403,7 +403,10 @@ m("section", m("h4", "Badge code"), 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("dt", "HTML"), m("dd", m("pre", '' + ctrl.archivename.archiveName() + '')),