noosfero | Use chartkick gem to improve the visualization of custom_form submissions. (!1316)

David Carlos gitlab at mg.gitlab.com
Thu Sep 28 18:13:40 BRT 2017


David Carlos commented on a discussion on plugins/custom_forms/lib/custom_forms_plugin/form.rb:

>      self.article = uploaded_file
>    end
>  
> +  def duration_in_days
> +    if begining == nil and ending == nil
> +      return "Has no ending date."
> +    end
> +    seconds_to_days = 86400
> +    days = (ending.to_i - begining.to_i) / seconds_to_days

I use this method on the review view, but I did not put much love on it (there is not automated tests, and I did only for add more informations to the query review). I will remove this code and use what you did.

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1316#note_41833472
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/20170928/568681b0/attachment.html>


More information about the Noosfero-dev mailing list