From 01169c9041b6cb9bf4fd0091e77f43cf4f406f58 Mon Sep 17 00:00:00 2001 From: Andy Kipp Date: Fri, 14 Jun 2024 16:04:09 +0200 Subject: [PATCH] xonfig: added links (#5500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added links to xontribs in `xonfig web` ### After image ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment** --------- Co-authored-by: a <1@1.1> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- xonsh/webconfig/routes.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/xonsh/webconfig/routes.py b/xonsh/webconfig/routes.py index 578798650..2cf11d90f 100644 --- a/xonsh/webconfig/routes.py +++ b/xonsh/webconfig/routes.py @@ -256,6 +256,34 @@ class XontribsPage(Routes): ] def get(self): + yield t.card()[ + t.card_body()[ + t.card_title()["Popular xontrib sources"], + t.card_body()[ + t.li()[ + t.a(href="https://github.com/topics/xontrib")[ + "Xontribs on Github" + ] + ], + t.li()[ + t.a(href="https://github.com/xonsh/awesome-xontribs")[ + "Awesome xontribs" + ] + ], + t.li()[ + t.a( + href="https://xon.sh/api/_autosummary/xontribs/xontrib.html" + )["Core xontribs"] + ], + t.li()[ + t.a(href="https://github.com/xonsh/xontrib-template")[ + "Create a xontrib step by step from template" + ] + ], + ], + ] + ] + yield t.br() for name, data in self.xontribs.items(): yield t.row()[t.col()[self.xontrib_card(name, data),]] yield t.br()