Skip to content

Commit

Permalink
Rename page_heading_actions variable (mastodon#12799)
Browse files Browse the repository at this point in the history
Current name - page_heading_actions is long and hard to remember,
this commit shortens it to just heading_actions, which is way more
easier to remember and write, it's logical too.
  • Loading branch information
brawaru authored and Gargron committed Jan 10, 2020
1 parent c306978 commit 139f764
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/reports/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- content_for :page_title do
= t('admin.reports.report', id: @report.id)

- content_for :page_heading_actions do
- content_for :heading_actions do
- if @report.unresolved?
= link_to t('admin.reports.mark_as_resolved'), resolve_admin_report_path(@report), method: :post, class: 'button'
- else
Expand Down
2 changes: 1 addition & 1 deletion app/views/filters/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- content_for :page_title do
= t('filters.index.title')

- content_for :page_heading_actions do
- content_for :heading_actions do
= link_to t('filters.new.title'), new_filter_path, class: 'button'

- if @filters.count == 0
Expand Down
4 changes: 2 additions & 2 deletions app/views/layouts/admin.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
.content-heading
%h2= yield :page_title

- if :page_heading_actions
- if :heading_actions
.content-heading-actions
= yield :page_heading_actions
= yield :heading_actions

= render 'application/flashes'

Expand Down

0 comments on commit 139f764

Please sign in to comment.