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.38 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.37 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.36 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.35 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.34 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.33 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.32 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.31 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.30 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.29 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.28 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.27 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.26 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.25 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.24 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.23 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.22 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.21 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.20 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.4.19 app/views/caboose/blocks/_file.html.erb