-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: reduce amount of inline javascript #238
Conversation
related to #241 |
devices/templatetags/devicetags.py
Outdated
|
||
|
||
@register.inclusion_tag('deletebutton.html') | ||
def deletebutton(viewname, *args): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that all instances were the same, but obviously I missed something. Will look into it. Do you have some insights of which different cases exist?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -486,6 +504,7 @@ <h4>{% trans "10 last sent mails" %}</h4> | |||
<td>{{ mail.subject }}</td> | |||
<td><a href="{% url 'userprofile' mail.sent_by.pk %}">{{ mail.sent_by }}</a></td> | |||
<td><span title="{{ mail.sent_at|date:'c' }}" | |||
data-timeago |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why that was previously wrapped inside a document.ready()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It still is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice
No description provided.