This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
ACTIVE = { | |
item1: [ { welcome: %w(index) } ], | |
item2: [ { welcome: %w(index) } ], | |
header2: [ { welcome: %w(index) } ], | |
} | |
def hl(key) | |
actives = ACTIVE[key] || [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ApplicationHelper | |
ACTIVE = { | |
new_member_session: [ { 'member/members/sessions' => %w(new create ) } ], | |
edit_member_registration: [ { 'member/members/registrations' => %w(edit update destroy) } ], | |
destroy_member_session: [ { 'member/members/sessions' => %w(destroy ) } ], | |
} | |
def hl(key) | |
actives = ACTIVE[key] || [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
en: | |
helpers: | |
page_entries_info: | |
more_pages: | |
display_entries: Displaying %{entry_name} <b>%{first} - %{last}</b> of <b>%{total}</b> in total | |
one_page: | |
display_entries: | |
one: Displaying <b>%{count}</b> %{entry_name} | |
other: Displaying <b>all %{count}</b> %{entry_name} | |
zero: No %{entry_name} found |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kaminari.configure do |config| | |
config.default_per_page = 100 | |
config.window = 2 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
li class=(current_page.first? ? 'disabled' : 'waves-effect') | |
= link_to url, remote: remote do | |
i.material-icons skip_previous |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
li | |
i.material-icons more_horiz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
li class=(current_page.last? ? 'disabled' : 'waves-effect') | |
= link_to url, remote: remote do | |
i.material-icons skip_next |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
li class=(current_page.last? ? 'disabled' : 'waves-effect') | |
= link_to url, remote: remote, rel: 'next' do | |
i.material-icons chevron_right |