Move new page dir logic to JS.

This commit is contained in:
bootstraponline
2012-08-01 01:49:26 -06:00
parent a0f05eaf67
commit 02539bfdd3
7 changed files with 8 additions and 26 deletions
-4
View File
@@ -7,10 +7,6 @@ module Precious
DATE_FORMAT = "%Y-%m-%d %H:%M:%S"
DEFAULT_AUTHOR = 'you'
def new_page_data_variables
%{ data-path="#{@path}"} if @path
end
def title
@page.url_path.gsub("-", " ")
end