Sha256: 5cb64241407d95b324879ee4a61fbc2450d07672c277c337ad2832e656bd5534
Contents?: true
Size: 896 Bytes
Versions: 93
Compression:
Stored size: 896 Bytes
Contents
<%= link_to content_tag(:span, 'edit export'), edit_export_path(@export), :class =>'btn right main edit' %> <h2>Review Export</h2> <ul id="export-review"> <% @export.attributes.sort{|a,b| a[0] <=> b[0]}.each do |key,val| %> <% type = @export.column_for_attribute(key).type %> <li><span><%= key.gsub("_"," ") %> : </span> <%- if type == :datetime -%> <%- unless val.blank? -%> <%= val.strftime("%B #{val.day.ordinalize}, %Y %I:%M %p") -%> <%- end -%> <%- else -%> <% if key == 'cron' %> <em class="cron" data-cron="<%= val %>" title=""><%= val %></em> <%- else -%> <%= val -%> <%- end -%> <%- end -%> </li> <% end %> </ul> <script> $(function(){ var span = $("em.cron") var trans = String(CronWTF.parse(span.data("cron"))); span.attr("title", trans) $("em.cron").tipTip(); }) </script>
Version data entries
93 entries across 93 versions & 1 rubygems