django-scheduler icon indicating copy to clipboard operation
django-scheduler copied to clipboard

Overwriting templatetags

Open bastien34 opened this issue 3 years ago • 1 comments

Hi, Scheduletags tags return sometimes hardcoded html like: return mark_safe( '<a href="%s%s"><span class="glyphicon glyphicon-circle-arrow-left"></span></a>' % ( reverse(f"{target}", kwargs={"calendar_slug": slug}), querystring_for_date(period.prev().start), ) ) What do you advise to overwrite it? Making a kind of NewScheduletags lib is the first idea that came to me? How would you integrate it?

bastien34 avatar Sep 20 '21 14:09 bastien34

I think this needs to be solved by adding another html template passing only the url, another solution is copy & paste the template tag and fix it locally.

robertpro avatar Oct 19 '21 18:10 robertpro