Skip to content

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

fix indentations

Behrokh Satarnejad063574fb41fa
diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb
index 2d334fd7057..8e189ba4ded 100644
--- a/app/views/projects/index.html.erb
+++ b/app/views/projects/index.html.erb
@@ -37,23 +37,20 @@ See COPYRIGHT and LICENSE files for more details.
current_user:
) %>
- <%= render (Projects::ProjectsFiltersComponent.new(
- query: @query,
- ) ) do |component|
-
+ <%= render(Projects::ProjectsFiltersComponent.new(query: @query)) do |component|
if current_user.allowed_globally?(:add_project)
component.with_button(
- tag: :a,
- href: new_project_path,
- scheme: :primary,
- size: :medium,
- aria: { label: I18n.t(:label_project_new) },
- data: { 'test-selector': 'project-new-button' }) do |button|
- button.with_leading_visual_icon(icon: :plus)
- Project.model_name.human
+ tag: :a,
+ href: new_project_path,
+ scheme: :primary,
+ size: :medium,
+ aria: { label: I18n.t(:label_project_new) },
+ data: { 'test-selector': 'project-new-button' }) do |button|
+ button.with_leading_visual_icon(icon: :plus)
+ Project.model_name.human
+ end
end
end
- end
%>
<%= render Projects::TableComponent.new(
@@ -63,6 +60,5 @@ See COPYRIGHT and LICENSE files for more details.
params: params) %>
<%= render Projects::StorageInformationComponent.new(
- current_user: current_user
- ) %>
+ current_user: current_user) %>
</div>