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,6 +497,10 @@ class ProductsView(MasterView):
|
|||
date = localtime(self.rattail_config, history[0]['changed'], from_utc=True).date()
|
||||
text = "{} (as of {})".format(text, date)
|
||||
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue