witten
/
luminotes
Archived
1
0
Fork 0

Added RSS subscription links for all notebooks.

This commit is contained in:
Dan Helfman 2008-04-18 20:49:22 +00:00
parent eb587fc44f
commit 1ca9af536c
4 changed files with 12 additions and 6 deletions

3
NEWS
View File

@ -2,6 +2,9 @@
* Now if you try to load a page where access is required, and you're not * Now if you try to load a page where access is required, and you're not
logged in, you'll be redirected to a login page. After you login, you'll logged in, you'll be redirected to a login page. After you login, you'll
be redirected to the page you were originally trying to access. be redirected to the page you were originally trying to access.
* Fixed bug where recent notes were ordered by creation time instead of
revision time.
* Added RSS subscription link to all notebooks.
1.3.0: April 16, 2008 1.3.0: April 16, 2008
* Created a new hierarchical note tree area for browsing notes. * Created a new hierarchical note tree area for browsing notes.

View File

@ -17,6 +17,7 @@ from view.Main_page import Main_page
from view.Json import Json from view.Json import Json
from view.Html_file import Html_file from view.Html_file import Html_file
from view.Note_tree_area import Note_tree_area from view.Note_tree_area import Note_tree_area
from view.Notebook_rss import Notebook_rss
class Notebooks( object ): class Notebooks( object ):
@ -44,7 +45,7 @@ class Notebooks( object ):
self.__users = users self.__users = users
self.__files = files self.__files = files
@expose( view = Main_page ) @expose( view = Main_page, rss = Notebook_rss )
@strongly_expire @strongly_expire
@end_transaction @end_transaction
@grab_user_id @grab_user_id

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 689 B

View File

@ -31,20 +31,22 @@ class Link_area( Div ):
class_ = u"link_area_item", class_ = u"link_area_item",
) or None, ) or None,
( notebook.name == u"Luminotes blog" ) and Div( Div(
A( A(
u"subscribe to rss", u"subscribe to rss",
href = u"%s?rss" % notebook_path, href = u"%s?rss" % notebook_path,
id = u"rss link", id = u"rss link",
title = u"Subscribe to the RSS feed for the Luminotes blog.", title = u"Subscribe to the RSS feed for " + \
( ( notebook.name == u"Luminotes blog" ) and u"the Luminotes blog." or u"this notebook." ),
), ),
A( A(
Img( src = u"/static/images/rss.png", width = u"28", height = u"28", class_ = u"rss_image" ), Img( src = u"/static/images/rss.png", width = u"14", height = u"14", class_ = u"rss_image" ),
href = u"%s?rss" % notebook_path, href = u"%s?rss" % notebook_path,
title = u"Subscribe to the RSS feed for the Luminotes blog.", title = u"Subscribe to the RSS feed for " + \
( ( notebook.name == u"Luminotes blog" ) and u"the Luminotes blog." or u"this notebook." ),
), ),
class_ = u"link_area_item", class_ = u"link_area_item",
) or None, ),
notebook.read_write and Span( notebook.read_write and Span(
( notebook.owner and notebook.name != u"trash" ) and Div( ( notebook.owner and notebook.name != u"trash" ) and Div(