Simplify the way we provide the title in most cases

This is consistent with the way we're providing the main class.

Note we're still setting the title using a block in more complex cases.
This commit is contained in:
Javi Martín
2024-03-15 22:43:11 +01:00
parent e867135a07
commit b9e137619a
37 changed files with 37 additions and 41 deletions

View File

@@ -1,4 +1,4 @@
<% provide :title do %><%= t("budgets.investments.index.title") %><% end %>
<% provide :title, t("budgets.investments.index.title") %>
<% content_for :header_addon do %>
<%= render "shared/search_form",
search_path: budget_investments_path(budget_id: @budget.id, page: 1),