Sha256: 3b3f0c384ac81032f500e48eea1c5daabd67643dacd045e2b6387268b812665a

Contents?: true

Size: 323 Bytes

Versions: 310

Compression:

Stored size: 323 Bytes

Contents

<%
file  = block.child_value('file')
text  = block.child_value('text')

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

%>

Version data entries

310 entries across 310 versions & 1 rubygems

Version Path
caboose-cms-0.5.224 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.223 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.222 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.221 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.220 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.219 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.218 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.217 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.216 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.215 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.214 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.213 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.212 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.211 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.210 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.209 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.208 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.207 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.206 app/views/caboose/blocks/_file.html.erb
caboose-cms-0.5.205 app/views/caboose/blocks/_file.html.erb