diff options
Diffstat (limited to 'app/views/comments/new.html.erb')
-rw-r--r-- | app/views/comments/new.html.erb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/app/views/comments/new.html.erb b/app/views/comments/new.html.erb deleted file mode 100644 index 87d836f..0000000 --- a/app/views/comments/new.html.erb +++ /dev/null @@ -1,25 +0,0 @@ -<% if @glsa.nil? %> -<p>No or invalid GLSA ID specified.</p> -<% else %> -<%= form_tag(glsa_comments_path(@glsa, @comment), :remote => true, :class => "popupform") do -%> - <%= fields_for :newcomment do |f| %> - <p> - <%= f.text_area :text, :class => "nice", :rows => 4 %> - </p> - - <p style="text-align: right;"> - <% if current_user.access >= 2 and not @glsa.is_owner? current_user %> - <span class="left"> - Rating: - <%= f.radio_button :rating, "approval" %><label for="newcomment_rating_approval"><%= image_tag 'icons/approval.png', :alt => 'Approval', :title => 'Approval' %></label> - <%= f.radio_button :rating, "rejection" %><label for="newcomment_rating_rejection"><%= image_tag 'icons/rejection.png', :alt => 'Rejection', :title => 'Rejection' %></label> - <%= f.radio_button :rating, "neutral", :checked => true %><label for="newcomment_rating_neutral"><%= image_tag 'icons/comment.png', :alt => 'Neutral', :title => 'Neutral' %></label> - </span> - <% else %> - <%= f.hidden_field :rating, :value => 'neutral' %> - <% end %> - <% end %> - <input type="submit" class="button" value="Add comment" id="addcommentsubmit" /> - </p> -<% end -%> -<% end %>
\ No newline at end of file |