[FFmpeg-devel] [PATCH] fateserver: add FFmpeg website-style banner and navbar
Timothy Gu
timothygu99 at gmail.com
Sat Jan 18 20:08:01 CET 2014
Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
history.cgi | 29 +++++++++++++++++++++++++++++
index.cgi | 29 +++++++++++++++++++++++++++++
report.cgi | 29 +++++++++++++++++++++++++++++
3 files changed, 87 insertions(+)
diff --git a/history.cgi b/history.cgi
index 2c897cb..a6e608b 100755
--- a/history.cgi
+++ b/history.cgi
@@ -37,11 +37,39 @@ tag 'meta', 'http-equiv' => "Content-Type",
'content' => "text/html; charset=utf-8";
tag 'link', rel => 'stylesheet',
type => 'text/css',
+ href => '//ffmpeg.org/default.css';
+tag 'link', rel => 'stylesheet',
+ type => 'text/css',
href => '/fate.css';
print "<title>FATE: $slot</title>\n";
end 'head';
start 'body';
+start 'div', id => 'container';
+
+# Copied from ffmpeg-web
+print <<EOF;
+<div id="banner">
+<a href="//ffmpeg.org/index.html">
+<img src="//ffmpeg.org/ffmpeg-logo.png" alt="FFmpeg">
+</a>
+</div>
+<div id="navbar">
+<a href="//ffmpeg.org/index.html">News</a> |
+<a href="//ffmpeg.org/about.html">About</a> |
+<a href="//ffmpeg.org/download.html">Download</a> |
+<a href="//ffmpeg.org/documentation.html">Documentation</a> |
+<a href="//ffmpeg.org/bugreports.html">Bug Reports</a> |
+<a href="//ffmpeg.org/contact.html">Contact</a> |
+<a href="//ffmpeg.org/donations.html">Donations</a> |
+<a href="//ffmpeg.org/consulting.html">Consulting</a> |
+<a href="//ffmpeg.org/projects.html">Projects</a> |
+<a href="//ffmpeg.org/legal.html">Legal</a> |
+<a href="//ffmpeg.org/security.html">Security</a> |
+<a href="http://fate.ffmpeg.org">FATE</a>
+</div>
+EOF
+
h1 "Report history for $slot";
start 'table', id => 'history', class => 'replist';
@@ -86,5 +114,6 @@ for my $date ((sort { $b cmp $a } @reps)[0..49]) {
}
end 'tbody';
end 'table';
+end 'div';
end 'body';
end 'html';
diff --git a/index.cgi b/index.cgi
index 5f79908..21a05f2 100755
--- a/index.cgi
+++ b/index.cgi
@@ -105,6 +105,9 @@ tag 'meta', 'http-equiv' => "Content-Type",
'content' => "text/html; charset=utf-8";
tag 'link', rel => 'stylesheet',
type => 'text/css',
+ href => '//ffmpeg.org/default.css';
+tag 'link', rel => 'stylesheet',
+ type => 'text/css',
href => '/fate.css';
print "<title>FATE</title>\n";
print <<EOF;
@@ -124,6 +127,31 @@ EOF
end 'head';
start 'body';
+start 'div', id => 'container';
+
+# Copied from ffmpeg-web
+print <<EOF;
+<div id="banner">
+<a href="//ffmpeg.org/index.html">
+<img src="//ffmpeg.org/ffmpeg-logo.png" alt="FFmpeg">
+</a>
+</div>
+<div id="navbar">
+<a href="//ffmpeg.org/index.html">News</a> |
+<a href="//ffmpeg.org/about.html">About</a> |
+<a href="//ffmpeg.org/download.html">Download</a> |
+<a href="//ffmpeg.org/documentation.html">Documentation</a> |
+<a href="//ffmpeg.org/bugreports.html">Bug Reports</a> |
+<a href="//ffmpeg.org/contact.html">Contact</a> |
+<a href="//ffmpeg.org/donations.html">Donations</a> |
+<a href="//ffmpeg.org/consulting.html">Consulting</a> |
+<a href="//ffmpeg.org/projects.html">Projects</a> |
+<a href="//ffmpeg.org/legal.html">Legal</a> |
+<a href="//ffmpeg.org/security.html">Security</a> |
+<a href="http://fate.ffmpeg.org">FATE</a>
+</div>
+EOF
+
h1 'FATE';
start 'table', id => 'index', class => 'replist';
@@ -262,5 +290,6 @@ for my $rep (sort repcmp @reps) {
}
end 'tbody';
end 'table';
+end 'div';
end 'body';
end 'html';
diff --git a/report.cgi b/report.cgi
index aa0ccf2..f829616 100755
--- a/report.cgi
+++ b/report.cgi
@@ -77,6 +77,9 @@ tag 'meta', 'http-equiv' => "Content-Type",
'content' => "text/html; charset=utf-8";
tag 'link', rel => 'stylesheet',
type => 'text/css',
+ href => '//ffmpeg.org/default.css';
+tag 'link', rel => 'stylesheet',
+ type => 'text/css',
href => '/fate.css';
print "<title>FATE: $$hdr{slot} $$hdr{rev}</title>\n";
print <<EOF;
@@ -102,6 +105,31 @@ EOF
end 'head';
start 'body';
+start 'div', id => 'container';
+
+# Copied from ffmpeg-web
+print <<EOF;
+<div id="banner">
+<a href="//ffmpeg.org/index.html">
+<img src="//ffmpeg.org/ffmpeg-logo.png" alt="FFmpeg">
+</a>
+</div>
+<div id="navbar">
+<a href="//ffmpeg.org/index.html">News</a> |
+<a href="//ffmpeg.org/about.html">About</a> |
+<a href="//ffmpeg.org/download.html">Download</a> |
+<a href="//ffmpeg.org/documentation.html">Documentation</a> |
+<a href="//ffmpeg.org/bugreports.html">Bug Reports</a> |
+<a href="//ffmpeg.org/contact.html">Contact</a> |
+<a href="//ffmpeg.org/donations.html">Donations</a> |
+<a href="//ffmpeg.org/consulting.html">Consulting</a> |
+<a href="//ffmpeg.org/projects.html">Projects</a> |
+<a href="//ffmpeg.org/legal.html">Legal</a> |
+<a href="//ffmpeg.org/security.html">Security</a> |
+<a href="http://fate.ffmpeg.org">FATE</a>
+</div>
+EOF
+
h1 "$$hdr{slot} $$hdr{rev}", id => 'title';
start 'table', id => 'config';
@@ -200,5 +228,6 @@ if ($nfail) {
}
end 'table';
+end 'div';
end 'body';
end 'html';
--
1.8.3.2
More information about the ffmpeg-devel
mailing list