diff options
Diffstat (limited to 'app/views/content/_banner_body.html.erb')
| -rw-r--r-- | app/views/content/_banner_body.html.erb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/content/_banner_body.html.erb b/app/views/content/_banner_body.html.erb new file mode 100644 index 00000000..b1d57d04 --- /dev/null +++ b/app/views/content/_banner_body.html.erb | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | <% if image %> | ||
| 2 | <%= image_tag image.upload.url(:large), :alt => banner.head.title.to_s, :class => "banner_image" %> | ||
| 3 | <% else %> | ||
| 4 | <span class="banner_title"><%= banner.head.title %></span> | ||
| 5 | <% end %> | ||
