public
Description: Radiant Comments
Clone URL: git://github.com/artofmission/radiant-comments.git
Did a bit of cleanup.
ntalbott (author)
Wed Jun 11 08:45:24 -0700 2008
commit  a641c529f9ef26d63c1ac39e40240140a6d330f6
tree    87ce65bc416bec03ad0b64ed4f4fa59e9087e300
parent  ca9d295d30a1e23fcba65fb80a7613482d7bc69d
...
 
 
 
 
 
 
 
 
1
2
3
...
1
2
3
4
5
6
7
8
9
10
11
0
@@ -1,3 +1,11 @@
0
+= 0.0.5
0
+
0
+* Pluralized the `comments` tag so that it does not conflict with the standard Radiant `comment` tag. [nathaniel@terralien.com]
0
+* Added posting confirmation support. [nathaniel@terralien.com]
0
+* Added validation support. [nathaniel@terralien.com]
0
+* Allow disabling of input filters. [nathaniel@terralien.com]
0
+* Updated to work with Radiant 0.6.7. [nathaniel@terralien.com]
0
+
0
 = 0.0.4
0
 * Added additional options and formatting to admin interface [rch]
0
 * Added comment approval options [rch]
0
...
35
36
37
38
39
40
41
 
 
 
 
 
 
42
43
44
...
46
47
48
49
50
51
52
53
54
55
 
 
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
...
35
36
37
 
 
 
 
38
39
40
41
42
43
44
45
46
...
48
49
50
 
 
 
 
 
 
 
51
52
53
54
55
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
0
@@ -35,10 +35,12 @@ The snippets "comments", "comment" and "comment_form" are created by the migrati
0
 === Snippet: comments
0
 
0
 <r:if_comments>
0
- <h2>Comments</h2>
0
- <r:comments:each>
0
- <r:snippet name="comment" />
0
- </r:comments:each>
0
+ <div class="comments">
0
+ <h2>Comments</h2>
0
+ <r:comments:each>
0
+ <r:snippet name="comment" />
0
+ </r:comments:each>
0
+ </div>
0
 </r:if_comments>
0
 <r:snippet name="comment_form" />
0
   
0
@@ -46,42 +48,40 @@ The snippets "comments", "comment" and "comment_form" are created by the migrati
0
 === Snippet: comment
0
 
0
 <div class="comment">
0
- <span class="number"><r:index />.</span>
0
- <span class="by_line">
0
- <r:author_link /> wrote:
0
- </span>
0
- <div class="message">
0
- <r:content />
0
- </div>
0
+ <p class="author"><r:comments:field:author /> said on <r:comments:date />:</p>
0
+ <div class="content_html"><r:comments:field:content_html /></div>
0
 </div>
0
 
0
 === Snippet: comment_form
0
 
0
-<r:if_comments_enabled>
0
- <r:comments:form>
0
- <h2>Post a Comment</h2>
0
- <p>
0
- <label>Name</label>
0
- <r:author_field class="textbox" />
0
- </p>
0
- <p>
0
- <label>E-mail <small>(not shown)</small></label>
0
- <r:author_email_field class="textbox" />
0
- </p>
0
- <p>
0
- <label>Website</label>
0
- <r:author_url_field class="textbox" />
0
- </p>
0
- <p>
0
- <label>Text Filter</label>
0
- <r:text_filter_field />
0
- </p>
0
- <p>
0
- <label>Message</label>
0
- <r:content_field rows="9" cols="40" />
0
- </p>
0
- <div class="buttons">
0
- <input type="submit" value="Post Comment" />
0
- </div>
0
- </r:comments:form>
0
-</r:if_comments_enabled>
0
+<r:page>
0
+ <r:if_enable_comments>
0
+ <r:comments:form>
0
+ <h3>Post a comment</h3>
0
+ <r:error><p style="color:red">Please correct the errors below.</p></r:error>
0
+ <p><label for="comment[author]">Your Name</label><br />
0
+ <r:error on="author"><p style="color:red">Name <r:message /></p></r:error>
0
+ <r:text_field_tag name="author" id="author" class="required" /></p>
0
+
0
+ <p><label for="comment[author_email]">Your Email Address</label> (required, but not displayed)<br />
0
+ <r:error on="author_email"><p style="color:red">Email <r:message /></p></r:error>
0
+ <r:text_field_tag name="author_email" class="required" /></p>
0
+
0
+ <p><label for="comment[author_url]">Your Web Address</label> (optional)<br />
0
+ <r:error on="author_url"><p style="color:red">Web Address <r:message /></p></r:error>
0
+ <r:text_field_tag name="author_url" /></p>
0
+
0
+ <p><label for="comment[content]">Your Comment</label><br />
0
+ <r:error on="content"><p style="color:red">Comment <r:message /></p></r:error>
0
+ <label for="comment[filter_id]">Filter: <r:filter_box_tag name="filter_id" value="Textile" /><br />
0
+ <r:text_area_tag name="content" class="required" rows="9" cols="40" /></p>
0
+
0
+ <r:submit_tag name="submit" value="Save Comment" />
0
+
0
+ </r:comments:form>
0
+ </r:if_enable_comments>
0
+</r:page>
0
+
0
+=== Contributors
0
+
0
+* Nathaniel Talbott of http://terralien.com/, sponsored by http://ignitesocialmedia.com/.
0
\ No newline at end of file
0
...
1
2
3
4
5
6
7
...
9
10
11
 
...
1
2
3
 
4
5
6
...
8
9
10
11
0
@@ -1,7 +1,6 @@
0
 = TODO:
0
 
0
 * Write Tests.
0
-* Handle validation messages.
0
 * Add user notification message when a comment is posted.
0
 
0
 
0
@@ -9,3 +8,4 @@
0
 * Add text filter to comment body.
0
 * Remove scaffolding and improve admin interface.
0
 * Implement Akismet filter.
0
+* Handle validation messages.
...
1
2
3
4
5
 
6
7
 
8
9
10
...
 
1
2
3
 
4
5
 
6
7
8
9
0
@@ -1,10 +1,9 @@
0
-#require 'page_extender'
0
 require_dependency 'application'
0
 
0
 class CommentsExtension < Radiant::Extension
0
- version "0.0.3"
0
+ version "0.0.5"
0
   description "Adds blog-like comments and comment functionality to pages."
0
- url "http://svn.artofmission.com/svn/plugins/radiant/extensions/comments/"
0
+ url "http://github.com/ntalbott/radiant-comments/tree/master"
0
   
0
   define_routes do |map|
0
     map.resources :comments, :path_prefix => "/pages/:page_id", :controller => "comments" # Regular routes for comments
...
42
43
44
45
 
46
47
48
49
 
50
51
52
53
 
54
55
56
57
58
 
59
60
61
...
42
43
44
 
45
46
47
48
 
49
50
51
52
 
53
54
55
56
57
 
58
59
60
61
0
@@ -42,20 +42,20 @@ CONTENT
0
       <r:error><p style="color:red">Please correct the errors below.</p></r:error>
0
       <p><label for="comment[author]">Your Name</label><br />
0
       <r:error on="author"><p style="color:red">Name <r:message /></p></r:error>
0
- <r:text_field_tag name="author" id="author" class="title required" /></p>
0
+ <r:text_field_tag name="author" id="author" class="required" /></p>
0
 
0
       <p><label for="comment[author_email]">Your Email Address</label> (required, but not displayed)<br />
0
       <r:error on="author_email"><p style="color:red">Email <r:message /></p></r:error>
0
- <r:text_field_tag name="author_email" class="title required validate-email" /></p>
0
+ <r:text_field_tag name="author_email" class="required" /></p>
0
 
0
       <p><label for="comment[author_url]">Your Web Address</label> (optional)<br />
0
       <r:error on="author_url"><p style="color:red">Web Address <r:message /></p></r:error>
0
- <r:text_field_tag name="author_url" class="regular validate-url" /></p>
0
+ <r:text_field_tag name="author_url" /></p>
0
 
0
       <p><label for="comment[content]">Your Comment</label><br />
0
       <r:error on="content"><p style="color:red">Comment <r:message /></p></r:error>
0
       <label for="comment[filter_id]">Filter: <r:filter_box_tag name="filter_id" value="Textile" /><br />
0
- <r:text_area_tag name="content" class="regular required" rows="9" cols="40" /></p>
0
+ <r:text_area_tag name="content" class="required" rows="9" cols="40" /></p>
0
 
0
       <r:submit_tag name="submit" value="Save Comment" />
0
 

Comments

    No one has commented yet.