Skip to content

Commit

Permalink
Merge pull request Katello#712 from thomasmckay/854801-autoheal
Browse files Browse the repository at this point in the history
854801-autoheal - word change
  • Loading branch information
Tom McKay committed Sep 21, 2012
2 parents c04c680 + e27f46b commit b8ce5d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/helpers/systems_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def system_releasevers_edit system, releases
end

def system_servicelevel system
_("Auto-subscribe %s, %s") % [
_("Auto-heal %s, %s") % [
system.autoheal ? _("On") : _("Off"),
system.serviceLevel == '' ? _("No Service Level Preference") : (_("Service Level %s") % system.serviceLevel)
]
Expand All @@ -89,12 +89,12 @@ def system_servicelevel system
def system_servicelevel_edit system
levels = {}
system.organization.service_levels.each { |level|
levels["1#{level}"] = _("Auto-subscribe On, Service Level %s") % level
levels["0#{level}"] = _("Auto-subscribe Off, Service Level %s") % level
levels["1#{level}"] = _("Auto-heal On, Service Level %s") % level
levels["0#{level}"] = _("Auto-heal Off, Service Level %s") % level
}

levels['1'] = _("Auto-subscribe On, No Service Level Preference")
levels['0'] = _("Auto-subscribe Off, No Service Level Preference")
levels['1'] = _("Auto-heal On, No Service Level Preference")
levels['0'] = _("Auto-heal Off, No Service Level Preference")

levels["selected"] = system_servicelevel(system)

Expand Down
2 changes: 1 addition & 1 deletion app/views/systems/_subscriptions.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= javascript do
:plain
localize({
"systemSelectAutosubscribe": '#{escape_javascript(_("Select Auto-subscribe Level..."))}'
"systemSelectAutoheal": '#{escape_javascript(_("Select Auto-heal Level..."))}'
});
= javascript :edit_helpers, :system_subscriptions

Expand Down
4 changes: 2 additions & 2 deletions public/javascripts/system_subscriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ $(document).ready(function() {
onNodeShow: function(){$.sparkline_display_visible()}
});

// Auto-subscribe with service level used in systems/_subscriptions.html.haml
// Auto-heal with service level used in systems/_subscriptions.html.haml
$('.edit_select_system_servicelevel').each(function(){
var common_settings = {
method : 'PUT',
cancel : i18n.cancel,
submit : i18n.save,
indicator : i18n.saving,
tooltip : i18n.clickToEdit,
placeholder : i18n.systemSelectAutosubscribe,
placeholder : i18n.systemSelectAutoheal,
submitdata : $.extend({ authenticity_token: AUTH_TOKEN }, KT.common.getSearchParams()),
onerror : function(settings, original, xhr) {
original.reset();
Expand Down

0 comments on commit b8ce5d7

Please sign in to comment.