diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 903a1e0a3..55825aba0 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -29,6 +29,10 @@ module AdminHelper "hidden_budget_investments"] end + def menu_budgets? + %w[budgets budget_groups budget_headings budget_investments].include?(controller_name) + end + def menu_budget? ["spending_proposals"].include?(controller_name) end diff --git a/app/views/admin/_menu.html.erb b/app/views/admin/_menu.html.erb index 6e393e805..c6ea68172 100644 --- a/app/views/admin/_menu.html.erb +++ b/app/views/admin/_menu.html.erb @@ -56,8 +56,7 @@ <% end %> <% if feature?(:budgets) %> -
  • "> +
  • "> <%= link_to admin_budgets_path do %> <%= t("admin.menu.budgets") %> diff --git a/app/views/admin/budget_groups/index.html.erb b/app/views/admin/budget_groups/index.html.erb index 506698fb7..3d6176312 100644 --- a/app/views/admin/budget_groups/index.html.erb +++ b/app/views/admin/budget_groups/index.html.erb @@ -1,3 +1,7 @@ +<%= back_link_to admin_budgets_path, t("admin.budget_groups.index.back") %> + +
    +

    <%= @budget.name %>

    <%= link_to t("admin.budget_groups.form.create"), diff --git a/app/views/admin/budget_headings/index.html.erb b/app/views/admin/budget_headings/index.html.erb index a5a2a75af..372c7ceb2 100644 --- a/app/views/admin/budget_headings/index.html.erb +++ b/app/views/admin/budget_headings/index.html.erb @@ -1,4 +1,4 @@ -<%= back_link_to admin_budget_groups_path(@budget) %> +<%= back_link_to admin_budget_groups_path(@budget), t("admin.budget_headings.index.back") %>

    <%= "#{@budget.name} / #{@group.name}" %>

    diff --git a/app/views/admin/site_customization/content_blocks/index.html.erb b/app/views/admin/site_customization/content_blocks/index.html.erb index ccc13bcf2..26579fd4c 100644 --- a/app/views/admin/site_customization/content_blocks/index.html.erb +++ b/app/views/admin/site_customization/content_blocks/index.html.erb @@ -9,13 +9,13 @@

    <%= t("admin.site_customization.content_blocks.information") %>

    <%= t("admin.site_customization.content_blocks.about") %>

    -

    <%= t("admin.site_customization.content_blocks.top_links_html") %>

    +

    <%= t("admin.site_customization.content_blocks.html_format") %>

    -<li><a href="http://site1.com">Site 1</a></li>
    -<li><a href="http://site2.com">Site 2</a></li>
    -<li><a href="http://site3.com">Site 3</a></li>
    - -

    <%= t("admin.site_customization.content_blocks.footer_html") %>

    +

    + <%= '

  • Site 1
  • ' %>
    + <%= '
  • Site 2
  • ' %>

    + <%= '
  • Site 3
  • ' %>

    +

    <% if @content_blocks.any? || @headings_content_blocks.any? %> diff --git a/app/views/budgets/investments/_content_blocks.html.erb b/app/views/budgets/investments/_content_blocks.html.erb index de86b50fe..30f938a94 100644 --- a/app/views/budgets/investments/_content_blocks.html.erb +++ b/app/views/budgets/investments/_content_blocks.html.erb @@ -1,7 +1,5 @@ <% if @heading.allow_custom_content %> -
    - -