Use packageLink() more consistently, and shorten some markup

This commit is contained in:
Steve Purcell 2014-08-17 08:47:35 +01:00
parent d8f4f05269
commit 3bbe3ade62

View file

@ -238,18 +238,8 @@
return m("tr", { "class": visible[p.name] ? '' : 'filtered'},
[
m("td", packageLink(p)),
m("td", [
m("a", {href: "/" + p.name, config: m.route}, [
p.description
])
]),
m("td.version", [
packageLink(p, [
p.version,
" ",
glyphicon('download')
])
]),
m("td", packageLink(p, p.description)),
m("td.version", packageLink(p, [p.version, " ", glyphicon('download')])),
m("td.recipe", [
m("a", {href: p.recipeURL}, [
glyphicon('cutlery')