Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
tor-browser-bundle-testsuite
Commits
36af38b3
Unverified
Commit
36af38b3
authored
Aug 28, 2014
by
boklm
Browse files
index pages: add titles
parent
c3794c8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
TBBTestSuite/Reports.pm
View file @
36af38b3
...
...
@@ -153,8 +153,9 @@ sub make_reports_index {
@
{
$reports_by_type
{
$type
}};
@s
=
@s
[
0
..
19
]
if
@s
>
20
;
load_reports_for_index
(
\
%pre_reports_index
,
@s
);
my
$title
=
"
Last 10 reports
";
$template
->
process
("
reports_index_
$type
.html
",
{
%$vars
,
reports_list
=>
\
@s
},
"
index-
$type
.html
")
{
%$vars
,
reports_list
=>
\
@s
,
title
=>
$title
},
"
index-
$type
.html
")
||
exit_error
"
Template Error:
\n
"
.
$template
->
error
;
}
foreach
my
$type
(
$changed_report
?
@changed_type
:
keys
%reports_by_tag
)
{
...
...
@@ -163,8 +164,10 @@ sub make_reports_index {
my
@s
=
sort
{
$summaries
{
$b
}
->
{
time
}
<=>
$summaries
{
$a
}
->
{
time
}
}
@
{
$reports_by_tag
{
$type
}
->
{
$tag
}};
load_reports_for_index
(
\
%pre_reports_index
,
@s
);
my
$title
=
"
Reports for
$tag
";
$template
->
process
("
reports_index_
$type
.html
",
{
%$vars
,
reports_list
=>
\
@s
},
"
index-
$type
-
$tag
.html
")
{
%$vars
,
reports_list
=>
\
@s
,
title
=>
$title
,
},
"
index-
$type
-
$tag
.html
")
||
exit_error
"
Template Error:
\n
"
.
$template
->
error
;
}
}
...
...
tmpl/reports_index_browserbundle.html
View file @
36af38b3
...
...
@@ -24,7 +24,7 @@
</style>
</head>
<body>
<h1>
Tests Reports
</h1>
<h1>
[% title %]
</h1>
<table>
<tr>
<th>
Name
</th>
...
...
tmpl/reports_index_browserunit.html
View file @
36af38b3
...
...
@@ -25,7 +25,7 @@
[% INCLUDE togglecontent.js %]
</head>
<body>
<h1>
Tor Browser Unit Test Reports
</h1>
<h1>
Tor Browser Unit Test Reports
: [% title %]
</h1>
[% FOREACH report IN reports_list %]
[%
SET tbbfiles = reports.$report.tbbfiles;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment