OSDN Git Service

enable/disabling the call_hook for dialog
authorakrstjp <akrst@users.osdn.me>
Wed, 2 Sep 2015 14:10:17 +0000 (23:10 +0900)
committerakrstjp <akrst@users.osdn.me>
Wed, 2 Sep 2015 14:10:17 +0000 (23:10 +0900)
app/views/quick_view_issues/_settings.html.erb
app/views/quick_view_issues/quick_view_issue_dialog.html.erb

index 57600bb..def6fec 100644 (file)
@@ -8,6 +8,14 @@
     </td>
   </tr>
   <tr>
+    <th>Disable call_hook:</th>
+    <td>
+      <input type="checkbox" id="settings_disable_call_hook" name="settings[disable_call_hook]" value="<%= settings['disable_call_hook'] %>"></input>
+    </td>
+    <td>
+    </td>
+  </tr>
+  <tr>
     <th>Issue tooltip enabled:</th>
     <td>
       <input type="checkbox" id="settings_issue_tooltip_enabled" name="settings[issue_tooltip_enabled]" <%= settings['issue_tooltip_enabled'] == "on" ? "checked" : "" %>></input>
index 83191e9..35d377c 100644 (file)
@@ -76,7 +76,9 @@
         end %>
 
         <%= render_custom_fields_rows(issue) %>
+        <% unless Setting.plugin_quick_view['disable_call_hook'] %>
         <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
+        <% end %>
         </table>
 
         <hr />
@@ -95,7 +97,9 @@
           <% end %>
         </div>
 
+        <% unless Setting.plugin_quick_view['disable_call_hook'] %>
         <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
+        <% end %>
 
         <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
         <hr />