}
if ($format->{'extension'} eq 'atom') {
- # The title of the Atom feed will be the same one as for the bug list.
- $vars->{'title'} = $cgi->param('title');
-
# This is the list of fields that are needed by the Atom filter.
my @required_atom_columns = (
'short_desc',
# string in the text field.
$vars->{'quicksearch'} = $searchstring;
+# Allow to custimize the title of HTML page and Atom feed. Also allow to pass
+# the title from HTML page to Atom feed through a link.
+$vars->{'title'} = $cgi->param('title');
+
################################################################################
# HTTP Header Generation
################################################################################
# Generate and return the UI (HTML page) from the appropriate template.
$template->process($format->{'template'}, $vars)
- || ThrowTemplateError($template->error());
\ No newline at end of file
+ || ThrowTemplateError($template->error());
[% PROCESS "global/field-descs.none.tmpl" %]
-[% title = "$terms.Bug List" %]
-[% IF searchname || defaultsavename %]
- [% title = title _ ": " _ (searchname OR defaultsavename) FILTER html %]
-[% ELSIF quicksearch %]
- [% title = title _ ": " _ quicksearch FILTER html %]
+[% DEFAULT title = "$terms.Bug List" %]
+[% IF searchname || defaultsavename || quicksearch %]
+ [% title = title _ ": " _ (searchname || defaultsavename || quicksearch) FILTER html %]
+[% ELSE %]
+ [% title = title FILTER html %]
[% END %]
[% qorder = order FILTER uri IF order %]