Sha256: 0f28daf0e334fdd0c76220055945e32411c96a7c6584a16946c9ab8effe61f55

Contents?: true

Size: 311 Bytes

Versions: 40

Compression:

Stored size: 311 Bytes

Contents

<%
file  = block.child('file')
text  = block.child('text').value

if editing && file && file.file && file.file.url.include?('missing.png')  
  %><div id='block_<%= block.id %>'><p>Please upload a file.</p></div><%  
elsif file && file.file
  %><p><a href="<%= raw file.file.url %>"><%= raw text %></p><%
end

%>

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
caboose-cms-0.4.59 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.58 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.57 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.56 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.55 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.54 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.53 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.52 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.51 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.50 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.49 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.48 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.47 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.46 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.45 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.43 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.42 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.41 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.40 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.39 app/views/caboose/blocks/_file.html.erb