Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
2795581c
Commit
2795581c
authored
Aug 09, 2020
by
Titanium Hocker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: page_size_select markup
parent
ea921e02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
layout.html
flask_admin/templates/bootstrap4/admin/model/layout.html
+6
-6
No files found.
flask_admin/templates/bootstrap4/admin/model/layout.html
View file @
2795581c
...
...
@@ -91,13 +91,13 @@
</form>
{% endmacro %}
{% macro page_size_form(generator, btn_class='dropdown-toggle') %}
{% macro page_size_form(generator, btn_class='
nav-link
dropdown-toggle') %}
<a
class=
"{{ btn_class }}"
data-toggle=
"dropdown"
href=
"javascript:void(0)"
>
{{ page_size }} {{ _gettext('items') }}
<b
class=
"caret"
></b>
</a>
<
ul
class=
"dropdown-menu"
>
<li><a
href=
"{{ generator(20) }}"
>
20 {{ _gettext('items') }}
</a></li
>
<li><a
href=
"{{ generator(50) }}"
>
50 {{ _gettext('items') }}
</a></li
>
<li><a
href=
"{{ generator(100) }}"
>
100 {{ _gettext('items') }}
</a></li
>
</
ul
>
<
div
class=
"dropdown-menu"
>
<a
class=
"dropdown-item{% if page_size == 20 %} active{% endif %}"
href=
"{{ generator(20) }}"
>
20 {{ _gettext('items') }}
</a
>
<a
class=
"dropdown-item{% if page_size == 50 %} active{% endif %}"
href=
"{{ generator(50) }}"
>
50 {{ _gettext('items') }}
</a
>
<a
class=
"dropdown-item{% if page_size == 100 %} active{% endif %}"
href=
"{{ generator(100) }}"
>
100 {{ _gettext('items') }}
</a
>
</
div
>
{% endmacro %}
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