summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-03-21 02:39:22 +0100
committermkanat%bugzilla.org <>2007-03-21 02:39:22 +0100
commit0a18cfa0a6a941a2ed525e6c934cf6c25fc87fce (patch)
tree486de78f15f5525b8b1fcc9d80404eb204a739cf /template
parente00a2bc886f86638a600030ebf98877db7a059fd (diff)
downloadbugzilla-0a18cfa0a6a941a2ed525e6c934cf6c25fc87fce.tar.gz
bugzilla-0a18cfa0a6a941a2ed525e6c934cf6c25fc87fce.tar.xz
Bug 374540: Print out the requirements in an HTML table instead of preformatted text
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'template')
-rw-r--r--template/en/default/setup/strings.html.pl38
-rw-r--r--template/en/default/setup/strings.txt.pl10
2 files changed, 45 insertions, 3 deletions
diff --git a/template/en/default/setup/strings.html.pl b/template/en/default/setup/strings.html.pl
index 583a37abd..8e687e508 100644
--- a/template/en/default/setup/strings.html.pl
+++ b/template/en/default/setup/strings.html.pl
@@ -20,6 +20,28 @@
# setup.cgi).
%strings = (
+ checking_dbd => '<tr><th colspan="4" class="mod_header">Database Modules</th></tr>',
+ checking_optional => '<tr><th colspan="4" class="mod_header">Optional Modules</th></tr>',
+ checking_modules => <<END_HTML
+<h2>Perl Modules</h2>
+
+<div style="color: white; background-color: white">
+ <p class="color_explanation">Rows that look <span class="mod_ok">like
+ this</span> mean that you have a good version of that module installed.
+ Rows that look <span class="mod_not_ok">like this</span> mean that you
+ either don't have that module installed, or the version you have
+ installed is too old.</p>
+</div>
+
+<table class="mod_requirements" border="1">
+<tr>
+ <th class="mod_name">Package</th>
+ <th>Version Required</th> <th>Version Found</th>
+ <th class="mod_ok">OK?</th>
+</tr>
+END_HTML
+,
+
footer => "</div></body></html>",
# This is very simple. It doesn't support the skinning system.
@@ -30,15 +52,25 @@
<head>
<title>Installation and Setup for Bugzilla ##bz_ver##</title>
<link href="skins/standard/global.css" rel="stylesheet" type="text/css" />
+ <link href="skins/standard/setup.css" rel="stylesheet" type="text/css" />
</head>
<body id="bugzilla-installation">
<h1>Installation and Setup for Bugzilla ##bz_ver##</h1>
<div id="bugzilla-body">
-
- <p><strong>Perl Version</strong>: ##perl_ver##</p>
- <p><strong>OS</strong>: ##os_name## ##os_ver##</p>
+ <p><strong>Perl Version</strong>: ##perl_ver##
+ <strong>OS</strong>: ##os_name## ##os_ver##</p>
+END_HTML
+,
+ module_details => <<END_HTML
+<tr class="##row_class##">
+ <td class="mod_name">##package##</td>
+ <td class="mod_wanted">##wanted##</td>
+ <td class="mod_found">##found##</td>
+ <td class="mod_ok">##ok##</td>
+</tr>
END_HTML
,
+ module_found => '##ver##',
);
1;
diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl
index b4768771c..34e447857 100644
--- a/template/en/default/setup/strings.txt.pl
+++ b/template/en/default/setup/strings.txt.pl
@@ -27,8 +27,18 @@
# Please keep the strings in alphabetical order by their name.
%strings = (
+ any => 'any',
+ blacklisted => '(blacklisted)',
+ checking_for => 'Checking for',
+ checking_dbd => 'Checking available perl DBD modules...',
+ checking_optional => 'The following Perl modules are optional:',
+ checking_modules => 'Checking perl modules...',
header => "* This is Bugzilla ##bz_ver## on perl ##perl_ver##\n"
. "* Running on ##os_name## ##os_ver##",
+ module_found => "found v##ver##",
+ module_not_found => "not found",
+ module_ok => 'ok',
+ module_unknown_version => "found unknown version",
);
1;