Added a "start a new discussion" link to each discussion forum page.
This commit is contained in:
parent
663a08c520
commit
d0620c1eaa
3
NEWS
3
NEWS
|
@ -1,3 +1,6 @@
|
|||
1.6.12:
|
||||
* Added a "start a new discussion" link to each discussion forum page.
|
||||
|
||||
1.6.11: April 28, 2009
|
||||
* Rewrote the way that the toolbar is implemented, laying the groundwork for
|
||||
themes in a subsequent release.
|
||||
|
|
|
@ -3,7 +3,7 @@ import cherrypy
|
|||
from datetime import datetime
|
||||
from Product_page import Product_page
|
||||
from Page_navigation import Page_navigation
|
||||
from Tags import Div, H1, A, P, Span, Link, Img
|
||||
from Tags import Div, H1, A, P, Span, Link, Img, B
|
||||
|
||||
|
||||
class Forum_page( Product_page ):
|
||||
|
@ -34,7 +34,7 @@ class Forum_page( Product_page ):
|
|||
Div(
|
||||
P(
|
||||
base_path.startswith( u"/forums/" ) and Span(
|
||||
A( u"start a new discussion", href = os.path.join( base_path, u"create_thread" ) ),
|
||||
B( A( u"start a new discussion", href = os.path.join( base_path, u"create_thread" ) ) ),
|
||||
u" | ",
|
||||
A( u"all forums", href = u"/forums/" ),
|
||||
u" | ",
|
||||
|
|
|
@ -291,7 +291,9 @@ class Main_page( Page ):
|
|||
class_ = u"blank_note_stub_hidden_border",
|
||||
) or None,
|
||||
( forum_tag and user.username and user.username != u"anonymous" ) and \
|
||||
P( u"To write a comment, click that large \"+\" button to the left. To publish your comment, click the save button.", class_ = u"small_text" ) or None,
|
||||
P( u"To write a comment, click that large \"+\" button to the left. To publish your comment, click the save button. Or, ",
|
||||
A( u"start a new discussion", href = u"/forums/%s/create_thread" % forum_tag.value ), u".", separator = "",
|
||||
class_ = u"small_text" ) or None,
|
||||
( forum_tag and ( not user.username or user.username == u"anonymous" ) ) and \
|
||||
P( u"To write a comment, please login first. No account?", A( u"Sign up", href = u"/pricing" ), u"to get a free account.", class_ = "small_text" ) or None,
|
||||
Page_navigation(
|
||||
|
|
Reference in New Issue