noosfero | Add major changes on Noosfero interface (includes responsivity) (!1329)
Rodrigo Souto
gitlab at mg.gitlab.com
Tue Mar 6 11:18:58 BRT 2018
Rodrigo Souto started a new discussion on app/views/profile/_profile_comment_form.html.erb:
> + <p class=<%= "profile-#{tab_action}-reply" %> >
> <% update_area = tab_action == 'wall' ? 'profile_activities' : 'network-activities' %>
> - <%= form_remote_tag :url => {:controller => 'profile', :action => 'leave_comment_on_activity', :tab_action => tab_action}, :html => { :class => 'profile-wall-reply-form', 'data-update' => update_area } do %>
> + <%= form_remote_tag url: { controller: "profile", action: "leave_comment_on_activity", tab_action: tab_action}, html: { class: "profile-#{tab_action}-reply-form", 'data-update' => update_area } do %>
> + <%= link_to(profile_image(current_person, :minor), current_person.url) if logged_in? %>
> <%= expandable_text_area :comment,
> :body,
> - "reply_content_#{activity.id}",
> + "reply_content_#{tab_action}_#{activity.id}",
> :cols => 50,
> :rows => 1,
> :class => 'submit-with-keypress',
> :title => _('Leave your comment'),
> - :onfocus => ("if(this.value==this.title){this.value='';this.style.color='#000'};this.style.backgroundImage='url(" + profile_icon(current_person, :icon, false) + ")'" if logged_in?),
> + :onfocus => ("if(this.value==this.title){this.value='';this.style.color='#000'};" if logged_in?),
> :onblur => ("if(this.value==''){this.value=this.title;this.style.color='#ccc'};this.style.backgroundImage='none'" if logged_in?),
Same as above.
---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1329#note_61887058
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180306/28db94b7/attachment-0001.html>
More information about the Noosfero-dev
mailing list