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

Version Path
myreplicator-1.1.73 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.71 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.69 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.68 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.67 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.66 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.65 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.64 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.63 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.62 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.61 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.58 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.57 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.56 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.55 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.54 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.53 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.52 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.51 app/views/myreplicator/exports/show.html.erb
myreplicator-1.1.50 app/views/myreplicator/exports/show.html.erb