Skip to content

Commit

Permalink
Journal: Use the Entry Headline in Page Title
Browse files Browse the repository at this point in the history
https://github.com/zinc-collective/convene/issues/898

It just feels weird not to have the actual title in the page...
  • Loading branch information
zspencer committed Dec 18, 2022
1 parent 5220cb3 commit f728b4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/furniture/journal/entries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def destroy
authorize(@entry)
end

helper_method def page_title
"#{entry.headline} - #{space.name}"
end

def entry_params
policy(Journal::Entry).permit(params.require(:entry))
end
Expand Down

0 comments on commit f728b4e

Please sign in to comment.