Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
082389aa
authored
Feb 20, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix pagination in user list
parent
d2e95303
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletions
+21
-1
circle/dashboard/static/dashboard/dashboard.less
+4
-0
circle/dashboard/tables.py
+1
-1
circle/dashboard/templates/django_tables2/with_pagination.html
+16
-0
No files found.
circle/dashboard/static/dashboard/dashboard.less
View file @
082389aa
...
@@ -1243,3 +1243,7 @@ textarea[name="new_members"] {
...
@@ -1243,3 +1243,7 @@ textarea[name="new_members"] {
padding: 25px;
padding: 25px;
}
}
}
}
.pagination {
width: 100%;
}
circle/dashboard/tables.py
View file @
082389aa
...
@@ -146,7 +146,7 @@ class UserListTable(Table):
...
@@ -146,7 +146,7 @@ class UserListTable(Table):
class
Meta
:
class
Meta
:
model
=
User
model
=
User
template
=
"django_tables2/
table_no_page
.html"
template
=
"django_tables2/
with_pagination
.html"
attrs
=
{
'class'
:
(
'table table-bordered table-striped table-hover'
)}
attrs
=
{
'class'
:
(
'table table-bordered table-striped table-hover'
)}
fields
=
(
'username'
,
'last_name'
,
'first_name'
,
'profile__org_id'
,
fields
=
(
'username'
,
'last_name'
,
'first_name'
,
'profile__org_id'
,
'email'
,
'is_active'
,
'is_superuser'
)
'email'
,
'is_active'
,
'is_superuser'
)
...
...
circle/dashboard/templates/django_tables2/with_pagination.html
0 → 100644
View file @
082389aa
{% extends "django_tables2/table.html" %}
{% load i18n %}
{% block pagination.cardinality %}{% endblock %}
{% block pagination.current %}
<li></li>
<li
class=
"pull-right"
>
<a>
{% blocktrans with table.page.number as current and table.paginator.num_pages as total %}
{{ current }}/{{ total }}
{% endblocktrans %}
</a>
</li>
<li></li>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment