Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ui_lookup_for_title() #17691

Merged
merged 1 commit into from
Jul 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions lib/vmdb/global_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,12 @@ def ui_lookup(options = {})
elsif options[:models]
Dictionary.gettext(options[:models], :type => :model, :notfound => :titleize, :plural => true)
elsif options[:ui_title]
ui_lookup_for_title(options[:ui_title])
Dictionary.gettext(options[:ui_title], :type => :ui_title)
else
''
end
end

def ui_lookup_for_title(text)
Dictionary.gettext(text, :type => :ui_title)
end

# Wrap a report html table body with html table tags and headers for the columns
def report_build_html_table(report, table_body, breakable = true)
html = ''
Expand Down