merge search into mainpage, fix flags
[opensuse:software-o-o.git] / app / helpers / main_helper.rb
1 module MainHelper
2
3   def default_baseproject
4     cookies[:search_baseproject] || 'openSUSE:11.2'
5   end
6
7   def baseproject_list_for_select
8     [
9       ['openSUSE Factory','openSUSE:Factory'],
10       ['openSUSE 11.2','openSUSE:11.2'],
11       ['openSUSE 11.1','openSUSE:11.1'],
12       ['openSUSE 11.0','openSUSE:11.0'],
13       ['SLES/SLED 11','SUSE:SLE-11'],
14       ['SLES/SLED 10','SUSE:SLE-10'],
15       ['SLES 9','SUSE:SLES-9'],
16       ['Fedora 12','Fedora:12'],
17       ['Fedora 11','Fedora:11'],
18       ['Fedora 10','Fedora:10'],
19       ['RHEL 5','RedHat:RHEL-5'],
20       ['RHEL 4','RedHat:RHEL-4'],
21       ['CentOS 5','CentOS:CentOS-5'],
22       ['Mandriva 2010','Mandriva:2010'],
23       ['Mandriva 2009.1','Mandriva:2009.1'],
24       ['Mandriva 2009','Mandriva:2009'],
25       ['Debian 5.0 (Lenny)','Debian:5.0'],
26       ['Debian 4.0 (Etch)','Debian:Etch'],
27       ['Ubuntu 9.10','Ubuntu:9.10'],
28       ['Ubuntu 9.04','Ubuntu:9.04'],
29       ['Ubuntu 8.10','Ubuntu:8.10'],
30       ['Ubuntu 8.04','Ubuntu:8.04'],
31       ['Ubuntu 6.06','Ubuntu:6.06'],
32       ['ALL','ALL']
33     ]
34   end
35 end