<%= render partial: "due_date_label.html.erb" , locals: { my_module: my_module } %> <% if can_manage_module?(my_module) %>
<% js_format = I18n.backend.date_format.dup js_format.gsub!(/%-d/, 'D') js_format.gsub!(/%d/, 'DD') js_format.gsub!(/%-m/, 'M') js_format.gsub!(/%m/, 'MM') js_format.gsub!(/%b/, 'MMM') js_format.gsub!(/%B/, 'MMMM') js_format.gsub!('%Y', 'YYYY') js_format << ' HH:mm' %>
<% end %>