Hide the SRP history link for new buefy themes
until support for that is added...
This commit is contained in:
parent
3fc8254219
commit
910e82a795
|
@ -497,7 +497,11 @@ class ProductsView(MasterView):
|
||||||
date = localtime(self.rattail_config, history[0]['changed'], from_utc=True).date()
|
date = localtime(self.rattail_config, history[0]['changed'], from_utc=True).date()
|
||||||
text = "{} (as of {})".format(text, 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):
|
def render_true_cost(self, product, field):
|
||||||
if not product.volatile:
|
if not product.volatile:
|
||||||
|
|
Loading…
Reference in a new issue