Change page title based on current page (#269)

This commit is contained in:
Riccardo Graziosi
2024-01-26 17:35:00 +01:00
committed by GitHub
parent a7d67652bf
commit fadd577db8
8 changed files with 41 additions and 1 deletions

View File

@@ -62,6 +62,8 @@ class PostsController < ApplicationController
@post_statuses = PostStatus.select(:id, :name, :color).order(order: :asc)
@board = @post.board
@page_title = @post.title.length > 60 ? @post.title.slice(0, 60) + "..." : @post.title
respond_to do |format|
format.html