OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#61453] run erb_lint autocorrect on forum view
Tobias Dillmann81a0c05a5881
diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erbindex 60847d8fbf6..e99fa7d5463 100644--- a/app/views/forums/show.html.erb+++ b/app/views/forums/show.html.erb@@ -34,22 +34,21 @@ See COPYRIGHT and LICENSE files for more details.url: forum_topics_path(@forum),html: {multipart: true,- id: 'message-form',- class: 'form',+ id: "message-form",+ class: "form",data: { turbo: false }} do |f| %>- <%= render partial: 'messages/form', locals: { f: f } %>+ <%= render partial: "messages/form", locals: { f: f } %>- <hr class="form--separator"/>- <%= styled_button_tag t(:button_create), class: '-primary -with-icon icon-checkmark' %>- <%= link_to t(:button_cancel), '', class: 'cancel-add-message-button button -with-icon icon-cancel' %>- <% csp_onclick('jQuery("#add-message").hide();', '.cancel-add-message-button') %>+ <hr class="form--separator">+ <%= styled_button_tag t(:button_create), class: "-primary -with-icon icon-checkmark" %>+ <%= link_to t(:button_cancel), "", class: "cancel-add-message-button button -with-icon icon-cancel" %>+ <% csp_onclick('jQuery("#add-message").hide();', ".cancel-add-message-button") %><% end %><div id="preview"></div><% end %></div>-<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { @forum.name }@@ -69,8 +68,8 @@ See COPYRIGHT and LICENSE files for more details.aria: { label: t(:label_message_new) },title: t(:label_message_new),tag: :a,- class: 'add-message-button',- href: url_for({ controller: '/messages', action: 'new', forum_id: @forum })) do |button|+ class: "add-message-button",+ href: url_for({ controller: "/messages", action: "new", forum_id: @forum })) do |button|button.with_leading_visual_icon(icon: :plus)t(:label_message)end@@ -120,10 +119,10 @@ See COPYRIGHT and LICENSE files for more details.<tr><td class="subject"><% if message.sticky? %>- <%= op_icon('icon-wiki', title: I18n.t('js.label_board_sticky')) %>+ <%= op_icon("icon-wiki", title: I18n.t("js.label_board_sticky")) %><% end %><% if message.locked? %>- <%= op_icon('icon-locked', title: I18n.t('js.label_board_locked')) %>+ <%= op_icon("icon-locked", title: I18n.t("js.label_board_locked")) %><% end %><%= link_to message.subject, topic_path(message) %></td>@@ -138,8 +137,8 @@ See COPYRIGHT and LICENSE files for more details.<td class="replies"><%= message.replies_count %></td><td class="last_message"><% if message.last_reply %>- <%= authoring message.last_reply.created_at, message.last_reply.author %><br/>- <br/>+ <%= authoring message.last_reply.created_at, message.last_reply.author %><br>+ <br><%= link_to_message message.last_reply, no_root: true %><% end %></td>@@ -155,9 +154,9 @@ See COPYRIGHT and LICENSE files for more details.<% end %><%= other_formats_links do |f| %>- <%= f.link_to 'Atom', url: { key: User.current.rss_key } %>+ <%= f.link_to "Atom", url: { key: User.current.rss_key } %><% end %><% html_title h(@forum.name) %><% content_for :header_tags do %>- <%= auto_discovery_link_tag(:atom, { format: 'atom', key: User.current.rss_key }, title: "#{@project}: #{@forum}") %>+ <%= auto_discovery_link_tag(:atom, { format: "atom", key: User.current.rss_key }, title: "#{@project}: #{@forum}") %><% end %>