madmin 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/helpers/madmin/sort_helper.rb +1 -1
- data/app/views/madmin/application/index.html.erb +1 -1
- data/lib/madmin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5738233eebbda8b8b68dd7a00e0bb4006d77a80cea0b75b1466b5f67dfe67e5c
|
4
|
+
data.tar.gz: d28a9f663c5fbd612a1b1ad7593414ad3ee8125d3d194d9c1efbc4d2f88b2a49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91f19c83273374d2eafc04873fec3e06575ecd2525745ae3237aa13485ef1d682872cc21996602c67f7b7ee8d3c01f54bcdf8163124360ca0c6020200ab8d962
|
7
|
+
data.tar.gz: 2cf083d97e766b6e8a43662caa217dd6dbbf8df913a6339f6ca88db57bf579cfb7b32ff443ff7d4dc185f73f0708c56f3766b0d02508963d446882fd8445e865
|
@@ -4,7 +4,7 @@ module Madmin
|
|
4
4
|
matching_column = (column.to_s == sort_column)
|
5
5
|
direction = (sort_direction == "asc") ? "desc" : "asc"
|
6
6
|
|
7
|
-
link_to resource.index_path(sort: column, direction: direction), options do
|
7
|
+
link_to resource.index_path(sort: column, direction: direction, scope: params[:scope], q: params[:q]), options do
|
8
8
|
concat title
|
9
9
|
if matching_column
|
10
10
|
concat " "
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<% end %>
|
26
26
|
|
27
27
|
<% resource.scopes.each do |scope| %>
|
28
|
-
<%= link_to scope.to_s.humanize, resource.index_path(scope: scope), class: class_names("btn btn-secondary", {"active" => params[:scope] == scope.to_s}) %>
|
28
|
+
<%= link_to scope.to_s.humanize, resource.index_path(scope: scope, q: params[:q], sort: params[:sort], direction: params[:direction]), class: class_names("btn btn-secondary", {"active" => params[:scope] == scope.to_s}) %>
|
29
29
|
<% end %>
|
30
30
|
</nav>
|
31
31
|
|
data/lib/madmin/version.rb
CHANGED