-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paco Guzman
committed
Mar 31, 2010
1 parent
1cab4c1
commit 3742e9c
Showing
26 changed files
with
356 additions
and
530 deletions.
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
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
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
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<% if !@like.new_record? %> | ||
jQuery("#<%= "like-to-#{@graffity.id}" %>").remove(); | ||
jQuery("#<%= "like-to-#{@graffity.id}" %>").remove(); | ||
<% escaped_js = escape_javascript(render("like_resume", :graffity => @graffity, :likes => @graffity.likes)) %> | ||
if (jQuery("#<%= "like_resume_#{@graffity.id}" %>").size() > 0){ | ||
jQuery("#<%= "like_resume_#{@graffity.id}" %>").replaceWith("<%= escaped_js %>"); | ||
if (jQuery("#<%= "like_#{@graffity.id}" %>").size() > 0){ | ||
jQuery("#<%= "like_#{@graffity.id}" %>").replaceWith("<%= escaped_js %>"); | ||
} else { | ||
jQuery("div.more", jQuery("#<%= dom_id(@graffity) %>")).after("<%= escaped_js %>"); | ||
jQuery("#<%= dom_id(@graffity) %>").find("div.more:first").after("<%= escaped_js %>"); | ||
} | ||
<% end %> |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<% if @reply.approved && !@reply.new_record? %> | ||
<% escaped_js = escape_javascript(render(:partial => "member/graffities/reply", :object => @reply)) %> | ||
jQuery("#<%= "reply_div_to_#{@graffity.id}" %>").before("<%= escaped_js %>"); | ||
jQuery("#<%= "reply_to_#{@graffity.id}" %>").before("<%= escaped_js %>"); | ||
<% end %> |
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,36 @@ | ||
<% include_stylesheet "/tog_wall/stylesheets/personalization.css" %> | ||
<% include_javascript "/tog_wall/javascripts/lowpro.js" %> | ||
<% include_javascript "/tog_wall/javascripts/jquery-1.4.min.js" %> | ||
<% include_javascript "/tog_wall/javascripts/jquery.noconflict.js" %> | ||
<% include_javascript "/tog_wall/javascripts/jquery.form.js" %> | ||
<% include_javascript "/tog_wall/javascripts/jquery.wall.js" %> | ||
<% include_javascript "/tog_wall/javascripts/jquery.placeholder.js" %> | ||
|
||
<% if can?(:comment_at_wall, @wall) %> | ||
<%= render "member/graffities/form" %> | ||
<% elsif !logged_in? %> | ||
<%= "Debes iniciar sesión y ser amigo de #{@owner.full_name} para poder escribir comentarios en su muro" %> | ||
<% else %> | ||
<%= "Debes ser amigo de #{@owner.full_name} para poder escribir comentarios en su muro" %> | ||
<% end %> | ||
|
||
<div id="graffities" class="portlet portletJ"> | ||
<% if @graffities.blank? %> | ||
<%= I18n.t('tog_wall.views.walls.show.graffities.not_found') %> | ||
<% else %> | ||
<%= render :partial => "member/graffities/graffity", :collection => @graffities %> | ||
<% end -%> | ||
</div> | ||
|
||
<%= will_paginate @graffities, :renderer => FlowPagination::LinkRenderer %> | ||
|
||
<script language="JavaScript" type="text/javascript"> | ||
//<![CDATA | ||
document.observe("dom:loaded", function() { | ||
// Comportaminentos javascript para las respuestas | ||
Event.addBehavior({ | ||
'#graffities > div[id^=graffity_]' : CollapsableReplys(<%= options_for_collapse_to_js %>) | ||
}); | ||
}); | ||
//]]> | ||
</script> |
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,7 @@ | ||
$("graffities").insert({bottom: "<%= escape_javascript(render :partial => "member/graffities/graffity", :collection => @graffities) %>"}); | ||
$('flow_pagination').replace("<%= escape_javascript(will_paginate(@graffities, :renderer => FlowPagination::LinkRenderer)) %>") | ||
//TODO Reassign after ajax Lowpro doen's works | ||
$$("form.reply").each(function(el) { | ||
el.down("textarea.reply").actsAsReplyTextarea(); | ||
el.down("input[type=submit]").disable(); | ||
}); |
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,7 @@ | ||
$("graffities").insert({bottom: "<%= escape_javascript(render :partial => "member/graffities/graffity", :collection => @graffities) %>"}); | ||
$('flow_pagination').replace("<%= escape_javascript(will_paginate(@graffities, :renderer => FlowPagination::LinkRenderer)) %>") | ||
//TODO Reassign after ajax Lowpro doen's works | ||
$$("form.reply").each(function(el) { | ||
el.down("textarea.reply").actsAsReplyTextarea(); | ||
el.down("input[type=submit]").disable(); | ||
}); |
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
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
Oops, something went wrong.