views: refactor page titles.
Refactor `page_title` helper to automatically include site name.
This commit is contained in:
@@ -206,6 +206,10 @@ class Tag < ApplicationRecord
|
||||
end
|
||||
|
||||
concerning :NameMethods do
|
||||
def pretty_name
|
||||
name.tr("_", " ")
|
||||
end
|
||||
|
||||
def unqualified_name
|
||||
name.gsub(/_\(.*\)\z/, "").tr("_", " ")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user