Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jan 15, 2024
1 parent 1fe076b commit e22b1b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/dashboards_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def dashboard_links(title, active_dashboard, dashboards, project)
return '' unless dashboards.any?

tag.h3(title, class: 'dashboards') +
tag.ul(class: 'dashboards') do # rubocop: disable Style/MethodCallWithArgsParentheses
tag.ul(class: 'dashboards') do
dashboards.each do |dashboard|
selected = dashboard.id == if params[:dashboard_id].present?
params[:dashboard_id].to_i
Expand Down
4 changes: 2 additions & 2 deletions lib/additionals/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def render_query_block_columns(query, entry, tr_classes:, with_buttons: false, w
query.block_columns.each do |column|
next if !(text = column_content column, entry) || text.blank?

content << tag.tr(class: "#{tr_classes} block-row") do # rubocop: disable Style/MethodCallWithArgsParentheses
content << tag.tr(class: "#{tr_classes} block-row") do
tds = []
tds << tag.td('', class: 'hide') if with_buttons && with_checkbox
tds << tag.td(colspan: td_colspan, class: "#{column.css_classes} block_column") do # rubocop: disable Style/MethodCallWithArgsParentheses
tds << tag.td(colspan: td_colspan, class: "#{column.css_classes} block_column") do
td_content = []
td_content << tag.span(column.caption) if query.block_columns.count > 1
td_content << text
Expand Down

0 comments on commit e22b1b3

Please sign in to comment.