summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2014-06-15 17:53:45 +0200
committerAlex Legler <alex@a3li.li>2014-06-15 17:53:45 +0200
commit0d0e4c7dd81d9380abc592a73eba9488e588823d (patch)
treee3820df0caf033bdae518660b4b60d5cc8ac7aef
parentSwitch to unicorn for interim deployment (diff)
downloadglsamaker-0d0e4c7dd81d9380abc592a73eba9488e588823d.tar.gz
glsamaker-0d0e4c7dd81d9380abc592a73eba9488e588823d.tar.bz2
glsamaker-0d0e4c7dd81d9380abc592a73eba9488e588823d.zip
Disable adding comments on filing a request
-rw-r--r--app/models/glsa.rb18
-rw-r--r--app/views/glsa/new-request.html.erb4
2 files changed, 11 insertions, 11 deletions
diff --git a/app/models/glsa.rb b/app/models/glsa.rb
index fd03145..1c8387c 100644
--- a/app/models/glsa.rb
+++ b/app/models/glsa.rb
@@ -253,15 +253,15 @@ class Glsa < ActiveRecord::Base
raise Exception, "Error while saving the GLSA object: #{e.message}"
end
- unless comment.strip.blank?
- glsa.comments << Comment.new(:rating => "neutral", :text => comment, :user => user)
-
- begin
- glsa.save!
- rescue Exception => e
- raise Exception, "Error while saving the comment: #{e.message}"
- end
- end
+ # unless comment.strip.blank?
+ # glsa.comments << Comment.new(:rating => "neutral", :text => comment, :user => user)
+
+ # begin
+ # glsa.save!
+ # rescue Exception => e
+ # raise Exception, "Error while saving the comment: #{e.message}"
+ # end
+ # end
revision = Revision.new
revision.revid = glsa.next_revid
diff --git a/app/views/glsa/new-request.html.erb b/app/views/glsa/new-request.html.erb
index 0d0ef57..1b0c845 100644
--- a/app/views/glsa/new-request.html.erb
+++ b/app/views/glsa/new-request.html.erb
@@ -29,12 +29,12 @@
<p><textarea name="title" id="title" class="largetext nice" rows="2"><%= params[:title] %></textarea></p>
</div>
<br />
-<div class="box w40em">
+<!--<div class="box w40em">
<%= box_title('Comment ' << content_tag('small', '(optional)'), :icon => 'icons/comment.png', :escape => false) %>
<p><label for="comment">If you want to add a comment, enter it here:</label></p>
<p><textarea name="comment" id="comment" class="nice" rows="4"><%= params[:comment] %></textarea></p>
</div>
-<br />
+<br />-->
<div class="box w40em">
<%= box_title('References', :icon => 'icons/reference.png') %>
<p>