Group links to create budgets with the heading

We're going to add help content here and having a floating button would
make the button disappear when creating content for mobile phones.

I'm not sure having the link in the <header> tag is semantically
correct, but is consistent to what we did to create local targets in the
SDG content section.

Note we're changing the style of the link to create local targets so
it's consistent with the link to create budgets/groups/headings.
This commit is contained in:
Javi Martín
2021-02-18 23:39:59 +01:00
parent 14b4c6fb85
commit 435747764c
4 changed files with 13 additions and 16 deletions

View File

@@ -1,8 +1,7 @@
<h2 class="inline-block"><%= t("admin.budgets.index.title") %></h2>
<%= link_to t("admin.budgets.index.new_link"),
new_admin_budget_path,
class: "button float-right" %>
<header>
<h2><%= t("admin.budgets.index.title") %></h2>
<%= link_to t("admin.budgets.index.new_link"), new_admin_budget_path %>
</header>
<%= render "shared/filter_subnav", i18n_namespace: "admin.budgets.index" %>