diff options
author | Tobias Heinlein <keytoaster@gentoo.org> | 2010-05-17 20:24:13 +0200 |
---|---|---|
committer | Tobias Heinlein <keytoaster@gentoo.org> | 2010-05-17 20:24:13 +0200 |
commit | e7519dc1b2aad1ed0710f9b0bdfb9aed2cd455fb (patch) | |
tree | ac16d4dcee81d9e1db448047b15d83cd0710bffe /app | |
parent | References and bug fixes. (diff) | |
download | glsamaker-e7519dc1b2aad1ed0710f9b0bdfb9aed2cd455fb.tar.gz glsamaker-e7519dc1b2aad1ed0710f9b0bdfb9aed2cd455fb.tar.bz2 glsamaker-e7519dc1b2aad1ed0710f9b0bdfb9aed2cd455fb.zip |
Boilerplates.
- Fixed workaround poilerplate.
- Implemented resolution poilerplate.
- Implemented new mini description boilerplate.
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/glsa_controller.rb | 2 | ||||
-rw-r--r-- | app/helpers/glsa_helper.rb | 4 | ||||
-rw-r--r-- | app/views/glsa/edit.html.erb | 14 |
3 files changed, 13 insertions, 7 deletions
diff --git a/app/controllers/glsa_controller.rb b/app/controllers/glsa_controller.rb index 8c1185a..30792c2 100644 --- a/app/controllers/glsa_controller.rb +++ b/app/controllers/glsa_controller.rb @@ -76,7 +76,7 @@ class GlsaController < ApplicationController session[:delbugs][@glsa.id] = [] # Packages - @rev.packages.build(:vulnerable_version_comp => "<") if @rev.packages.length == 0 + @rev.packages.build(:vulnerable_version_comp => "<", :arch => "*") if @rev.packages.length == 0 # References @rev.references.build if @rev.references.length == 0 diff --git a/app/helpers/glsa_helper.rb b/app/helpers/glsa_helper.rb index 5a5faa3..5cd5745 100644 --- a/app/helpers/glsa_helper.rb +++ b/app/helpers/glsa_helper.rb @@ -60,7 +60,7 @@ module GlsaHelper def add_package_link(name) link_to_function name, :title => "Add package" do |page| - page.insert_html :bottom, :packages_table, :partial => 'package', :object => Package.new(:vulnerable_version_comp => "<") + page.insert_html :bottom, :packages_table, :partial => 'package', :object => Package.new(:vulnerable_version_comp => "<", :arch => "*") end end @@ -69,5 +69,5 @@ module GlsaHelper page.insert_html :bottom, :references_table, :partial => 'reference', :object => Reference.new end end - + end diff --git a/app/views/glsa/edit.html.erb b/app/views/glsa/edit.html.erb index c6b866e..f0c576b 100644 --- a/app/views/glsa/edit.html.erb +++ b/app/views/glsa/edit.html.erb @@ -129,6 +129,11 @@ <div class="box" id="desc-box"> <h2 style="position: relative;"> <span style="float: right; margin-right: 5px; margin-top: 5px;"> + <%= link_to_function image_tag('icons/resolution-go.png', + :alt => 'Set default description'), + "generateDescription()", + :title => 'Set default description' %> + <img src="/images/separator.png" /> <a href="javascript:///" onclick="lines('description', -5);" title="Fewer lines"> <img src="/images/icons/zoom_out.png" alt="Fewer lines" /> </a> @@ -172,7 +177,7 @@ <div class="box"> <h2 style="margin: 0;"> <span style="float: right; margin-right: 5px; margin-top: 5px;"> - <a href="javascript:///" onclick="$('workaround').value = 'There is no known workaround at the moment.'" title="No known workaround"> + <a href="javascript:///" onclick="$('workaround').value = 'There is no known workaround at this time.'" title="No known workaround"> <img src="/images/icons/workaround-no.png" alt="No known workaround" /> </a> </span> @@ -185,9 +190,10 @@ <div class="box"> <h2 style="margin: 0;"> <span style="float: right; margin-right: 5px; margin-top: 5px;"> - <a href="javascript:///" onclick="$('resolution').value = 'There is no known workaround at the moment.'" title="Set default resolution"> - <img src="/images/icons/resolution-go.png" alt="Set default resolution" /> - </a> + <%= link_to_function( image_tag('icons/resolution-go.png', + :alt => 'Set default resolution'), + "generateResolution()", + :title => 'Set default resolution') %> </span> <img src="/images/icons/resolution.png" alt="Resolution" /> <label for="resolution">Resolution</label> |