mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Change page title based on current page (#269)
This commit is contained in:
committed by
GitHub
parent
a7d67652bf
commit
fadd577db8
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user