Commit a1af18b349c70447e148895e95180b66f19be927
1 parent
50502035
Exists in
master
Send config file information to template
Showing
2 changed files
with
9 additions
and
5 deletions
Show diff stats
lib/CoprStatus.pm
... | ... | @@ -155,7 +155,11 @@ our %ROUTING = ( |
155 | 155 | sub serve_html { |
156 | 156 | my $data = { |
157 | 157 | title => "SPB Copr Status", |
158 | - table_entries => info2html() | |
158 | + table_entries => info2html(), | |
159 | + branch0 => ${$config->{Branches}}[0], | |
160 | + branch1 => ${$config->{Branches}}[1], | |
161 | + repo0 => ${$config->{Repositories}}[0], | |
162 | + repo1 => ${$config->{Repositories}}[1] | |
159 | 163 | }; |
160 | 164 | |
161 | 165 | my $template = Text::Template->new( | ... | ... |
template.html.tt
... | ... | @@ -58,10 +58,10 @@ |
58 | 58 | </tr> |
59 | 59 | <tr> |
60 | 60 | <th>PACKAGE</th> |
61 | - <th>git:stable-5.0</th> | |
62 | - <th>softwarepublico/v5</th> | |
63 | - <th>git:master</th> | |
64 | - <th>softwarepublico/v6</th> | |
61 | + <th>git:{$branch0}</th> | |
62 | + <th>softwarepublico/{$repo0}</th> | |
63 | + <th>git:{$branch1}</th> | |
64 | + <th>softwarepublico/{$repo1}</th> | |
65 | 65 | </tr> |
66 | 66 | </thead> |
67 | 67 | <tbody> | ... | ... |