Move profile and settings into the new unified dashboard, showing user info in one place
This commit is contained in:
parent
2d826734a0
commit
7edefe23c3
37 changed files with 726 additions and 500 deletions
0
common/__init__.py
Normal file
0
common/__init__.py
Normal file
5
common/apps.py
Normal file
5
common/apps.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class CommonConfig(AppConfig):
|
||||
name = 'common'
|
||||
0
common/templatetags/__init__.py
Normal file
0
common/templatetags/__init__.py
Normal file
10
common/templatetags/pagination_tags.py
Normal file
10
common/templatetags/pagination_tags.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from django import template
|
||||
|
||||
register = template.Library()
|
||||
|
||||
@register.inclusion_tag("templatetags/pagination_controls.html", takes_context=True)
|
||||
def render_pagination(context, page_obj, hide_if_one_page=True):
|
||||
"""
|
||||
Renders the pagination controls given a page_obj. Optionally hides the controls if there is only one page.
|
||||
"""
|
||||
return {"page_obj": page_obj, "hide_if_one_page": hide_if_one_page}
|
||||
Loading…
Add table
Add a link
Reference in a new issue