Skip to content

Commit

Permalink
Rescue CD support & checking for defined media
Browse files Browse the repository at this point in the history
Added new media type - 'Rescue' with some basic description and added
few checks so only defined ISOs will be displayed. To prevent
displaying Rescue CD for 12.2 and 12.3 till it gets done.
  • Loading branch information
miska committed Feb 12, 2013
1 parent d7945cb commit efffadb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Binary file added app/assets/images/rescue_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions app/controllers/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def set_release(release)
@isos["gnome-32"] = "12.3-GNOME-LiveCD-Build0024-i686"
@isos["dvd-64"] = "12.3-DVD-Build0024-x86_64"
@isos["dvd-32"] = "12.3-DVD-Build0024-i586"
# @isos["rescue-32"] = "12.3-Rescue-i586"
# @isos["rescue-64"] = "12.3-Rescue-x86_64"
@isos["net-32"] = "12.3-NET-Build0024-i586"
@isos["net-64"] = "12.3-NET-Build0024-x86_64"

Expand Down
11 changes: 11 additions & 0 deletions app/views/main/release.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,21 @@

<div id="downloaderAccordion">

<% if @isos["dvd-32"] %>
<%= render(:partial => "change_install", :locals => { :medium => "dvd", :shorttext => _("4.7GB DVD"), :longtext => _("Contains a large collection of software for desktop or server use.<br/>Suitable for installation or upgrade.") }) %>
<% end %>
<% if @isos["gnome-32"] %>
<%= render(:partial => "change_install", :locals => { :medium => "gnome", :shorttext => _("Live GNOME"), :longtext => _("A GNOME desktop you can run from CD or from USB stick.<br/>Can be installed as is (no upgrade).") }) %>
<% end %>
<% if @isos["kde-32"] %>
<%= render(:partial => "change_install", :locals => { :medium => "kde", :shorttext => _("Live KDE"), :longtext => _("A KDE desktop you can run from CD or from USB stick.<br/>Can be installed as is (no upgrade).") }) %>
<% end %>
<% if @isos["rescue-32"] %>
<%= render(:partial => "change_install", :locals => { :medium => "rescue", :shorttext => _("Rescue"), :longtext => _("Rescue system that you can run from CD or from USB stick.<br/>Can not be used for neither installation nor upgrade.") }) %>
<% end %>
<% if @isos["net-32"] %>
<%= render(:partial => "change_install", :locals => { :medium => "net", :shorttext => _("Network"), :longtext => _("Downloads the installation system and all packages from online repositories.<br/>Suitable for installation or upgrade.") }) %>
<% end %>
<%= render(:partial => "change_install", :locals => { :medium => "derivatives", :shorttext => _("openSUSE Derivatives"), :longtext => _("Get one of the specialized distribution built on openSUSE.") }) %>
</div>
</div>
Expand Down

0 comments on commit efffadb

Please sign in to comment.