Sha256: 4884276088d34f0cfa4d733fb49dd0c56a39ede42f0e7de778fd80832b6fd3b4
Contents?: true
Size: 927 Bytes
Versions: 469
Compression:
Stored size: 927 Bytes
Contents
<% spreadsheet_id = block.child_value('spreadsheet_id') row = block.child_value('row') col = block.child_value('column') %> <div id='block_<%= block.id %>'> <% if editing && (spreadsheet_id.nil? || spreadsheet_id.strip.length == 0) %> [Empty spreadsheet ID] <% elsif editing && (row.nil? || row.strip.length == 0) %> [Empty spreadsheet row] <% elsif editing && (col.nil? || col.strip.length == 0) %> [Empty spreadsheet column] <% elsif !editing && spreadsheet_id && row && col %><% end %> </div> <% if spreadsheet_id && row && col %> <%= content_for :js do %> <%= javascript_include_tag('caboose/google_spreadsheets') %> <script type='text/javascript'> $(document).ready(function() { var str = google_csv_data("<%= raw spreadsheet_id %>", "<%= raw col %>", <%= raw row %>); $('#block_<%= block.id %>').html(str); }); </script> <% end %> <% end %>
Version data entries
469 entries across 469 versions & 1 rubygems