noosfero | WIP: Button to sensitive content (!1640)

Rodrigo Souto gitlab at mg.gitlab.com
Wed Nov 28 12:15:14 BRST 2018


Rodrigo Souto started a new discussion on app/helpers/sensitive_content_helper.rb:

> +  def profile_to_publish current_user, profile_viewed
> +    if GenericContext.publish_permission?(profile_viewed, current_user)
> +      profile_viewed.identifier
> +    else
> +      current_user.identifier
> +    end
> +  end
> +
> +  def directory_option directory
> +    content_tag :li, class: "bigicon-#{directory.icon_name}" do
> +      content_tag(:h3, directory.name) +
> +      content_tag(:div, directory.abstract, class: 'description')
> +    end
> +  end
> +
> +  def select_directory_button sensitive_content

If we merge those actions up there on the controller we can simplify these methods here as well.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1640#note_120737569
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/20181128/b87d494f/attachment.html>


More information about the Noosfero-dev mailing list