-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed accessibility issues with the server settings authentication page
- Loading branch information
1 parent
9eb0670
commit 06de03e
Showing
2 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
module SettingsHelper | ||
def utilization_tab_configuration | ||
[:Visual, :Default, :Time].map do |item| | ||
{:name => item, :text => settings_tabs_types[item]} | ||
end | ||
end | ||
|
||
def settings_tab_content(key_name, &block) | ||
if utilization_tabs_types[key_name] | ||
class_name = key_name == :summary ? 'tab_content active' : 'tab_content' | ||
tag.div(:id => key_name, :class => class_name, &block) | ||
end | ||
end | ||
|
||
private | ||
|
||
def settings_tabs_types | ||
{ | ||
:Visual => _('Visual'), | ||
:Default => _('Default Filters'), | ||
:Time => _('Time Profiles'), | ||
} | ||
end | ||
end |
This file contains 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