OSDN Git Service

fix editor
[pettanr/pettanr.git] / app / views / speech_balloons / _scenario.html.erb
1 <% if element.speech.quotes.blank? -%>
2 <% else -%>
3   <style>
4   <!--
5   #<%= element.speech.dom_item_id('scenario') -%>:before  {
6     content:"<%= element.speech.arrayed_quotes[0] -%>";
7   }
8   #<%= element.speech.dom_item_id('scenario') -%>:after {
9     content:"<%= element.speech.arrayed_quotes[1] -%>";
10   }
11   -->
12   </style>
13 <% end -%>
14 <%= content_tag :div, '', element.balloon.tag_attributes('scenario', :class => "circle_speech_balloon-balloon-scenario") do %>
15   <%= h(element.caption) %>
16 <% end %>
17 <%= content_tag :div, '', element.speech.tag_attributes('scenario', :class => "circle_speech_balloon-speech-scenario") do %>
18   <%= h(element.speech.content) %>
19 <% end %>