OSDN Git Service

t#31749:add shortcut on sbt
authoryasushiito <yas@pen-chan.jp>
Sun, 21 Jul 2013 02:38:59 +0000 (11:38 +0900)
committeryasushiito <yas@pen-chan.jp>
Sun, 21 Jul 2013 02:38:59 +0000 (11:38 +0900)
app/assets/stylesheets/test.css.scss
app/views/speech_balloon_templates/index.html.erb

index c7cf6e3..dbed634 100644 (file)
@@ -240,3 +240,11 @@ div.md5 {
   height: 16px; cursor: pointer; 
   background-image: image-url("destroy-highlighted.png");
 }
+
+.speech_balloon_template_item {
+  float: left;
+}
+.speech_balloon_template_item-row-break {
+  clear: both;
+}
+
index f1a9ebd..35338bb 100644 (file)
@@ -3,12 +3,19 @@
 <ul>
   <% @speech_balloon_templates.each do |st| %>
     <li>
-      <div>
+      <div class="speech_balloon_template_item">
         <%= link_to tag(:img, st.system_picture.tmb_opt_img_tag), speech_balloon_template_path(st) %>
         <div>
           <%= link_to h(st.caption), speech_balloon_template_path(st) %>
         </div>
       </div>
+      <div class="speech_balloon_template_item">
+        <% if @author and @author.working? -%>
+          <%= link_to t('speech_balloon_templates.add_to_panel'), main_app.new_speech_balloon_path(:speech_balloon_template_id => st.id) %>
+        <% end -%>
+      </div>
+      <div class="speech_balloon_template_item-row-break">
+      </div>
     </li>
   <% end %>
 </ul>