From 910e82a7953d232b6231bc10a0e1b24018969171 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 7 Jan 2020 06:44:27 -0600 Subject: [PATCH] Hide the SRP history link for new buefy themes until support for that is added... --- tailbone/views/products.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index c95ec47a..2de5d727 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -497,7 +497,11 @@ class ProductsView(MasterView): date = localtime(self.rattail_config, history[0]['changed'], from_utc=True).date() text = "{} (as of {})".format(text, date) - return self.add_srp_history_link(text) + if self.get_use_buefy(): + # TODO: should add history link here too... + return text + else: # not buefy + return self.add_srp_history_link(text) def render_true_cost(self, product, field): if not product.volatile: