Browse Source

Added a "start a new discussion" link to each discussion forum page.

Dan Helfman 9 years ago
parent
commit
d0620c1eaa
3 changed files with 8 additions and 3 deletions
  1. 3
    0
      NEWS
  2. 2
    2
      view/Forum_page.py
  3. 3
    1
      view/Main_page.py

+ 3
- 0
NEWS View File

@@ -1,3 +1,6 @@
1
+1.6.12: 
2
+ * Added a "start a new discussion" link to each discussion forum page.
3
+
1 4
 1.6.11: April 28, 2009
2 5
  * Rewrote the way that the toolbar is implemented, laying the groundwork for
3 6
    themes in a subsequent release.

+ 2
- 2
view/Forum_page.py View File

@@ -3,7 +3,7 @@ import cherrypy
3 3
 from datetime import datetime
4 4
 from Product_page import Product_page
5 5
 from Page_navigation import Page_navigation
6
-from Tags import Div, H1, A, P, Span, Link, Img
6
+from Tags import Div, H1, A, P, Span, Link, Img, B
7 7
 
8 8
 
9 9
 class Forum_page( Product_page ):
@@ -34,7 +34,7 @@ class Forum_page( Product_page ):
34 34
       Div(
35 35
         P(
36 36
           base_path.startswith( u"/forums/" ) and Span(
37
-            A( u"start a new discussion", href = os.path.join( base_path, u"create_thread" ) ),
37
+            B( A( u"start a new discussion", href = os.path.join( base_path, u"create_thread" ) ) ),
38 38
             u" | ",
39 39
             A( u"all forums", href = u"/forums/" ),
40 40
             u" | ",

+ 3
- 1
view/Main_page.py View File

@@ -291,7 +291,9 @@ class Main_page( Page ):
291 291
                 class_ = u"blank_note_stub_hidden_border",
292 292
               ) or None,
293 293
               ( forum_tag and user.username and user.username != u"anonymous" ) and \
294
-                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,
294
+                P( u"To write a comment, click that large \"+\" button to the left. To publish your comment, click the save button. Or, ",
295
+                   A( u"start a new discussion", href = u"/forums/%s/create_thread" % forum_tag.value ), u".", separator = "",
296
+                   class_ = u"small_text" ) or None,
295 297
               ( forum_tag and ( not user.username or user.username == u"anonymous" ) ) and \
296 298
                 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,
297 299
               Page_navigation(