muck-comments 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.19
1
+ 0.1.20
@@ -14,11 +14,12 @@ module MuckCommentsHelper
14
14
 
15
15
  # parent is the object to which the comments will be attached
16
16
  # comment is the optional parent comment for the new comment.
17
- def comment_form(parent, comment = nil, render_new = false, comment_button_class = 'comment-submit')
17
+ def comment_form(parent, comment = nil, render_new = false, comment_button_class = 'comment-submit', comment_button_text = nil)
18
18
  render :partial => 'comments/form', :locals => {:parent => parent,
19
19
  :comment => comment,
20
20
  :render_new => render_new,
21
- :comment_button_class => comment_button_class}
21
+ :comment_button_class => comment_button_class,
22
+ :comment_button_text => comment_button_text }
22
23
  end
23
24
 
24
25
  # Render a comment for using the tiny mce editor. Note that this method
@@ -28,11 +29,12 @@ module MuckCommentsHelper
28
29
  # :only => [:new, :create, :edit, :update])
29
30
  # parent is the object to which the comments will be attached
30
31
  # comment is the optional parent comment for the new comment.
31
- def tiny_mce_comment_form(parent, comment = nil, render_new = false, comment_button_class = 'comment-submit')
32
+ def tiny_mce_comment_form(parent, comment = nil, render_new = false, comment_button_class = 'comment-submit', comment_button_text = nil)
32
33
  render :partial => 'comments/tiny_mce_form', :locals => {:parent => parent,
33
34
  :comment => comment,
34
35
  :render_new => render_new,
35
- :comment_button_class => comment_button_class}
36
+ :comment_button_class => comment_button_class,
37
+ :comment_button_text => comment_button_text}
36
38
  end
37
39
 
38
40
  # make_muck_parent_params is defined in muck-engine and used by many of the engines.
@@ -3,6 +3,6 @@
3
3
  <%= f.text_area :body, :class => 'min' %>
4
4
  <%= hidden_field_tag :parent_comment_id, comment.id unless comment.blank? -%>
5
5
  <%= hidden_field_tag :render_new, render_new -%>
6
- <%= f.submit t('muck.comments.add_comment_button'), :class => "button #{comment_button_class}", :id => "comment_submit_#{parent.dom_id}" %>
6
+ <%= f.submit comment_button_text || t('muck.comments.add_comment_button'), :class => "button #{comment_button_class}", :id => "comment_submit_#{parent.dom_id}" %>
7
7
  <% end -%>
8
8
  </div>
@@ -14,7 +14,7 @@ muck_comment_message_id = "#{@project.dom_id}_message"
14
14
  <%= f.text_area :body, :class => 'mceEditor min', :id => muck_comment_mce_id %>
15
15
  <%= hidden_field_tag :parent_comment_id, comment.id unless comment.blank? -%>
16
16
  <%= hidden_field_tag :render_new, render_new -%>
17
- <%= f.submit t('muck.comments.add_comment_button'), :class => "button #{comment_button_class}", :id => "comment_submit_#{parent.dom_id}" %>
17
+ <%= f.submit comment_button_text || t('muck.comments.add_comment_button'), :class => "button #{comment_button_class}", :id => "comment_submit_#{parent.dom_id}" %>
18
18
  <% end -%>
19
19
  </div>
20
20
  <%= tiny_mce_scripts(:form_id => muck_comment_form_id, :mce_id => muck_comment_mce_id, :message_container_id => muck_comment_message_container_id, :message_id => muck_comment_message_id, :include_save_page => false) -%>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-comments}
8
- s.version = "0.1.19"
8
+ s.version = "0.1.20"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball", "Joel Duffin"]
12
- s.date = %q{2010-02-27}
12
+ s.date = %q{2010-03-29}
13
13
  s.description = %q{The comment engine for the muck system.}
14
14
  s.email = %q{justin@tatemae.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 19
9
- version: 0.1.19
8
+ - 20
9
+ version: 0.1.20
10
10
  platform: ruby
11
11
  authors:
12
12
  - Justin Ball
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-02-27 00:00:00 -07:00
18
+ date: 2010-03-29 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency