Skip to content
Snippets Groups Projects
Commit 214a2393 authored by pabois's avatar pabois
Browse files

fix cc

parent 04798a07
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,14 @@ module Filters ...@@ -3,6 +3,14 @@ module Filters
def initialize(user) def initialize(user)
super super
add_search add_search
add_for_theme_version
add_for_update
add_for_updatable_theme
end
private
def add_for_theme_version
add :for_theme_version, add :for_theme_version,
::Communication::Website.all.pluck(:theme_version).uniq.sort, ::Communication::Website.all.pluck(:theme_version).uniq.sort,
I18n.t( I18n.t(
...@@ -18,6 +26,9 @@ module Filters ...@@ -18,6 +26,9 @@ module Filters
'filters.attributes.element', 'filters.attributes.element',
element: I18n.t('server_admin.websites.production_status').downcase element: I18n.t('server_admin.websites.production_status').downcase
) )
end
def add_for_update
add :for_update, add :for_update,
[ [
{ to_s: I18n.t('server_admin.websites.autoupdate_theme.true'), id: 'true' }, { to_s: I18n.t('server_admin.websites.autoupdate_theme.true'), id: 'true' },
...@@ -27,6 +38,9 @@ module Filters ...@@ -27,6 +38,9 @@ module Filters
'filters.attributes.element', 'filters.attributes.element',
element: I18n.t('server_admin.websites.update_mode').downcase element: I18n.t('server_admin.websites.update_mode').downcase
) )
end
def add_for_updatable_theme
add :for_updatable_theme, add :for_updatable_theme,
[ [
{ to_s: I18n.t('server_admin.websites.updatable_theme_filter.value'), id: 'true' } { to_s: I18n.t('server_admin.websites.updatable_theme_filter.value'), id: 'true' }
...@@ -35,7 +49,7 @@ module Filters ...@@ -35,7 +49,7 @@ module Filters
'filters.attributes.element', 'filters.attributes.element',
element: I18n.t('server_admin.websites.updatable_theme_filter.element').downcase element: I18n.t('server_admin.websites.updatable_theme_filter.element').downcase
) )
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment