Commit e71534981850804d5653f34012687a73bfd16bee

Authored by Daniela Feitosa
1 parent fc8557c3

Fixes on expirable edit links

Fixed reference of filters.svg image
Moved comment edit link
app/views/content_viewer/_comment.rhtml
@@ -63,6 +63,11 @@ @@ -63,6 +63,11 @@
63 <% end %> 63 <% end %>
64 <% end %> 64 <% end %>
65 65
  66 + <% if comment.author && comment.author == user %>
  67 + &nbsp;
  68 + <%= expirable_comment_link comment, :edit, _('Edit'), {:action => 'edit_comment', :id => comment.id, :profile => profile.identifier} %>
  69 + <% end %>
  70 +
66 <% if logged_in? && (user == profile || user == comment.author || user.has_permission?(:moderate_comments, profile)) %> 71 <% if logged_in? && (user == profile || user == comment.author || user.has_permission?(:moderate_comments, profile)) %>
67 &nbsp; 72 &nbsp;
68 <%= link_to_function(_('Remove'), 'remove_comment(this, %s, %s); return false ;' % [url_for(:profile => params[:profile], :remove_comment => comment.id, :view => params[:view]).to_json, _('Are you sure you want to remove this comment and all its replies?').to_json], :class => 'comment-footer comment-footer-link comment-footer-hide remove-children') %> 73 <%= link_to_function(_('Remove'), 'remove_comment(this, %s, %s); return false ;' % [url_for(:profile => params[:profile], :remove_comment => comment.id, :view => params[:view]).to_json, _('Are you sure you want to remove this comment and all its replies?').to_json], :class => 'comment-footer comment-footer-link comment-footer-hide remove-children') %>
@@ -75,10 +80,6 @@ @@ -75,10 +80,6 @@
75 :class => 'comment-footer comment-footer-link comment-footer-hide', 80 :class => 'comment-footer comment-footer-link comment-footer-hide',
76 :id => 'comment-reply-to-' + comment.id.to_s 81 :id => 'comment-reply-to-' + comment.id.to_s
77 %> 82 %>
78 - <% if comment.author && comment.author == user %>  
79 - &nbsp;  
80 - <%= expirable_comment_link comment, :edit, _('Edit'), {:action => 'edit_comment', :id => comment.id, :profile => profile.identifier} %>  
81 - <% end %>  
82 <% end %> 83 <% end %>
83 </div> 84 </div>
84 85
public/stylesheets/application.css
@@ -1504,7 +1504,7 @@ body.noosfero a.button.with-text.icon-none, body.noosfero input.button.with-text @@ -1504,7 +1504,7 @@ body.noosfero a.button.with-text.icon-none, body.noosfero input.button.with-text
1504 padding-left: 2px; 1504 padding-left: 2px;
1505 } 1505 }
1506 a.disabled{ 1506 a.disabled{
1507 - filter: url(filters.svg#grayscale); /* Firefox 3.5+ */ 1507 + filter: url(/filters.svg#grayscale); /* Firefox 3.5+ */
1508 filter: gray; /* IE6-9 */ 1508 filter: gray; /* IE6-9 */
1509 -webkit-filter: grayscale(1); /* Google Chrome & Safari 6+ */ 1509 -webkit-filter: grayscale(1); /* Google Chrome & Safari 6+ */
1510 cursor: default; 1510 cursor: default;