1 | {{extend 'layout.html'}} |
---|
2 | {{=H3("Available plugins")}} |
---|
3 | {{=P("Source: web2pyslices")}} |
---|
4 | {{articles = []}} |
---|
5 | {{for article in plugins:}} |
---|
6 | {{screenshots = [A(" ", T("Screenshot %s") % (x+1), " ", _href=item) for (x, item) in enumerate(article["package_data"]["screenshots"])]}} |
---|
7 | {{articles.append(TR(TD(H5(article["article"]["title"]), |
---|
8 | button(URL(c="default", f="install_plugin", args=[app,], vars={"source": article["package_data"]["download"], "plugin": article["article"]["title"]}), T("Install")), |
---|
9 | BR(), |
---|
10 | IMG(_src="http://www.web2pyslices.com/download/%s" % article["article"]["thumbnail"], _style="margin-top: 1em;"), _style="width: 20em;"), |
---|
11 | TD(article["article"]["description"], BR(), |
---|
12 | A(T("Plugin page"), _href="http://www.web2pyslices.com/slice/show/%s/" % article["article"]["id"]), " | ", |
---|
13 | A(T("Demo"), _href=article["package_data"]["demo"]), " | ", |
---|
14 | A(T("Docs"), _href=article["package_data"]["documentation"]), " | ", |
---|
15 | A(T("Repository (%s)") % article["package_data"]["repository_brand"], _href=article["package_data"]["repository_page"]), " | ", |
---|
16 | A(T("License:"), " ", (article["package_data"]["license_type"] or "").upper(), " ", T("(version %s)") % article["package_data"]["license_version"] if article["package_data"]["license_version"] else "", _href=article["package_data"]["license_url"]), " | " if screenshots else "", *screenshots, _style="width: 40em;")) |
---|
17 | ) |
---|
18 | }} |
---|
19 | {{pass}} |
---|
20 | {{=TABLE(*articles)}} |
---|
21 | |
---|