diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-21 20:53:12 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-21 20:53:12 +0200 |
| commit | d75d8cc3e6e772a00b92c050e8dd3ee0b0dbcb94 (patch) | |
| tree | 2738ae9053ea73f8c9ef561a1e93f6a0189054d4 /app/views/content/_banner_body.html.erb | |
| parent | a986b1f2b5676624f02373cb54eb3b81b18f3f79 (diff) | |
Add banner partials
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 %> | ||
