OSDN Git Service

t#31702:add icon
[pettanr/pettanr.git] / app / views / speech_balloon_templates / show.html.erb
index 6bae80c..74f810e 100644 (file)
@@ -1,10 +1,12 @@
 <h1><%= t '.title' -%></h1>
 <p id="notice"><%= notice %></p>
 
-<p>
-  <b>caption:</b>
-  <%= h @speech_balloon_template.caption %>
-</p>
+<div>
+  <%= link_to tag(:img, @speech_balloon_template.system_picture.tmb_opt_img_tag), speech_balloon_template_path(@speech_balloon_template) %>
+  <div>
+    <%= link_to h(@speech_balloon_template.caption), speech_balloon_template_path(@speech_balloon_template) %>
+  </div>
+</div>
 
 <% if @author and @author.working? -%>
   <h3><%= t('home.index.catch') -%></h3>