Fix rubocop offenses
This commit is contained in:
@ -45,7 +45,7 @@ module ApplicationHelper
|
||||
def progress_bar(value)
|
||||
tag.div(class: value ? 'progress' : 'disabled progress') do
|
||||
tag.div(value ? "#{value}%" : '', 'aria-valuemax': 100, 'aria-valuemin': 0,
|
||||
'aria-valuenow': value, class: 'progress-bar progress-bar-striped', role: 'progressbar', style: "width: #{[value || 0, 100].min}%;")
|
||||
'aria-valuenow': value, class: 'progress-bar progress-bar-striped', role: 'progressbar', style: "width: #{[value || 0, 100].min}%;")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -28,7 +28,7 @@ class PagedownFormBuilder < ActionView::Helpers::FormBuilder
|
||||
|
||||
def wmd_preview
|
||||
@template.tag.div(nil, class: 'wmd-preview',
|
||||
id: "wmd-preview-#{base_id}")
|
||||
id: "wmd-preview-#{base_id}")
|
||||
end
|
||||
|
||||
def show_wmd_preview?
|
||||
|
Reference in New Issue
Block a user