Page title now reflect the note that is on it.
This commit is contained in:
parent
6b548820fa
commit
32f4501e6b
|
@ -57,7 +57,11 @@ class Main_page( Page ):
|
||||||
def json( string ):
|
def json( string ):
|
||||||
return escape( unicode( Json( string ) ), quote = True )
|
return escape( unicode( Json( string ) ), quote = True )
|
||||||
|
|
||||||
title = None
|
if len( notes ) == 1:
|
||||||
|
title = notes[ 0 ].title
|
||||||
|
else:
|
||||||
|
title = None
|
||||||
|
|
||||||
Page.__init__(
|
Page.__init__(
|
||||||
self,
|
self,
|
||||||
title,
|
title,
|
||||||
|
|
Reference in New Issue