-
Notifications
You must be signed in to change notification settings - Fork 30
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
project dropdown and pagination on logs page #43
Conversation
src/templates/common/pagination.html
Outdated
{% endif %} | ||
</span> | ||
</div> --> | ||
|
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 believe this is earlier implementation of Pagination right ? I don't think so it is required can we remove it ?
src/project/views.py
Outdated
@@ -172,7 +172,7 @@ def projectListView(request): | |||
# add member and log count | |||
project.nooflogs = Logger.objects.filter(project=project).count() | |||
project.noofteams = project.team_set.all().count() | |||
print(project.noofteams, project.nooflogs) | |||
# print(project.noofteams, project.nooflogs) |
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.
Let's just remove this line instead of just commenting
</div> | ||
<!-- Project--> | ||
|
||
</div> | ||
{% endblock content %} {% block scripts %} | ||
|
||
{% if not personal %} | ||
<script> | ||
document.getElementById("projects").value = "{{selected}}"; |
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.
This piece of code to communicate between Javscript and Python is pretty hacky, when python returns None
, Javascript wouldn't process it as NULL
it might break. that's why it isn't recommended to communicate between the two this way. Just make sure yopu test this part well.
No description provided.