OSDN Git Service

fix boost template
[pettanr/pettanr.git] / app / views / speech_balloons / _element.html.erb
1 <%= content_tag :div, element.tag_attributes(:div, {'class' => "pettanr-comic-balloon", 'style' => raw(element.balloon.style.merge({'z-index' => element.z}).to_style)}) do %>
2   <%= tag :img, element.balloon.tag_attributes(nil, {'class' => "pettanr-balloon", 'src' => element.balloon.system_picture.url, 'alt' => element.caption}) %>
3   <%= content_tag :div, {'class' => "pettanr-comic-speech", 'style' => raw(element.speech.outer_style.to_style)} do %>
4     <%= content_tag :div, element.speech.tag_attributes(nil, {'class' => "pettanr-comic-speech-inner", 'style' => raw(element.speech.inner_style.to_style)}) do %>
5     <%# element.speech.boosts 'post' %>
6       <%= raw element.speech.scenario -%>
7     <% end %>
8   <% end %>
9 <% end %>