forked from IsaacLewis/eol
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ooops, I had a problem with *successfully* posting a comment. Heh.
git-svn-id: file:///data/subversion/eol/trunk@1998 78829999-583a-0410-bd01-8a9b849fd409
- Loading branch information
jrice
committed
May 26, 2010
1 parent
4df01b9
commit 8abaaa2
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/ TODO - More elegant solution than rendering html in a .js.haml file... | ||
#commentsContain | ||
- if body_div_name =~ /^text/ | ||
= link_to_function('', "Effect.DropOut($('#{body_div_name}').parentNode)", :class=>'close-button') | ||
.controls | ||
- if @slim_container | ||
- info = page_entries_info current_objects | ||
= info == 'No entries found' ? 'Comments' : "#{info}," | ||
on | ||
= @title_label | ||
= will_paginate(current_objects, :renderer => 'RemoteLinkRenderer', :remote => {(current_objects[0].parent_type.tableize.singularize + "_id").to_sym => parent_object.id, :update => body_div_name, :body_div_name => body_div_name }) unless current_objects[0].nil? | ||
- if @title != '' | ||
%div | ||
%h2 | ||
= @title | ||
- else | ||
%h2 | ||
Comments | ||
%b | ||
On | ||
= @title_label | ||
= @title | ||
= will_paginate(current_objects, :renderer => 'RemoteLinkRenderer', :remote => {(current_objects[0].parent_type.tableize.singularize + "_id").to_sym => parent_object.id, :update => body_div_name, :body_div_name => body_div_name } ) unless current_objects[0].nil? | ||
%small | ||
- info = page_entries_info current_objects | ||
= info == 'No entries found' ? '' : info | ||
- if current_objects.empty? | ||
%p#no-comments | ||
No comments have been left yet. | ||
- else | ||
%ul.comments | ||
= render :partial => 'list' | ||
= will_paginate(current_objects, :renderer => 'RemoteLinkRenderer', :remote => {(current_objects[0].parent_type.tableize.singularize + "_id").to_sym => parent_object.id, :update => body_div_name, :body_div_name => body_div_name } ) unless current_objects[0].nil? | ||
#new-comment | ||
= render :partial => 'new', :locals => { :length => 4, :body_div_name => body_div_name } |