Remove the `pretty` parameter for `usage_data`
This commit is contained in:
parent
86cbf60cbb
commit
c7a77dced7
|
@ -20,8 +20,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
|
|||
def usage_data
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
usage_data = Gitlab::UsageData.data
|
||||
usage_data_json = params[:pretty] ? JSON.pretty_generate(usage_data) : usage_data.to_json
|
||||
usage_data_json = JSON.pretty_generate(Gitlab::UsageData.data)
|
||||
|
||||
render html: Gitlab::Highlight.highlight('payload.json', usage_data_json)
|
||||
end
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
= succeed '.' do
|
||||
= link_to 'application settings', admin_application_settings_path(anchor: 'usage-statistics')
|
||||
|
||||
%pre.usage-data.js-syntax-highlight.code.highlight{ data: { endpoint: usage_data_admin_application_settings_path(format: :html, pretty: true) } }
|
||||
%pre.usage-data.js-syntax-highlight.code.highlight{ data: { endpoint: usage_data_admin_application_settings_path(format: :html) } }
|
||||
|
|
Loading…
Reference in New Issue