commit 2d452da05a976958e642516d2a7e3b1a21fa6954
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Thu Oct 27 14:48:26 2016 +0200
Add master.html hotfix
files/hotfix/fas/master.html | 114 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/files/hotfix/fas/master.html b/files/hotfix/fas/master.html
new file mode 100644
index 0000000..46f1c5d
--- /dev/null
+++ b/files/hotfix/fas/master.html
@@ -0,0 +1,114 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:xi="http://www.w3.org/2001/XInclude"
+
xmlns:py="http://genshi.edgewall.org/"
+ py:strip="">
+ <?python
+ from turbogears import config
+ import fas.sidebar as sidebar
+ _ = tg.gettext
+ ?>
+ <head py:match="head" py:attrs="select('@*')">
+ <link href="${tg.url('/static/theme/%s/css/style.css') %
config.get('theme')}" rel="stylesheet" type="text/css"
/>
+ <link rel="shortcut icon"
href="${tg.url('/static/theme/%s/images/favicon.ico' %
config.get('theme'))}" type="image/vnd.microsoft.icon" />
+ <meta py:replace="select('*|text()')" />
+ <jsglobals />
+ <script type="text/javascript"
src="${tg.url('/static/js/prototype.js')}"></script>
+ <script type="text/javascript"
src="${tg.url('/static/js/prototype.improvements.js')}"></script>
+ <script type="text/javascript"
src="${tg.url('/static/js/scriptaculous.js?load=effects')}"></script>
+ <script type="text/javascript"
src="${tg.url('/static/js/HelpBalloon.js')}"></script>
+ </head>
+ <body py:match="body" py:attrs="select('@*')">
+ <div id="wrapper">
+ <div id="head"
class="head-${config.get('deployment_type', 'dev')}">
+ <h1><a
href="http://rpmfusion.org/">${_('RPM
Fusion')}</a></h1>
+ <!-- TODO: Make this do something useful, talk about interface :)
+ <div id="searchbox">
+ <form action="" method="post">
+ <label for="q">${_('Search:')}</label>
+ <input type="text" name="q" id="q" />
+ <input type="submit" value="${_('Search')}"
/>
+ </form>
+ </div>
+ -->
+ <h2 py:if="config.get('deployment_type',
'dev')=='dev'">
+ DEVELOPMENT INSTANCE
+ </h2>
+ <h2 py:if="config.get('deployment_type',
'dev')=='stg'">
+ STAGING INSTANCE
+ </h2>
+ </div>
+ <div id="topnav">
+ <ul>
+ <li class="first"><a
href="http://rpmfusion.org/">${_('Learn about RPM
Fusion')}</a></li>
+ <li><a
href="http://get.fedoraproject.org/">${_('Download
Fedora')}</a></li>
+ <li><a
href="http://rpmfusion.org/">${_('Projects')}</a&...
+ <li><a
href="http://rpmfusion.org/Contributors">${_('Join RPM
Fusion')}</a></li>
+ <li><a
href="http://rpmfusion.org/">${_('Communicate')}<...
+ <li><a
href="http://rpmfusion.org/">${_('Help/Documentation'...
+ <li><a
href="https://fedoraproject.org/code-of-conduct">${_('Code of
Conduct')}</a></li>
+ </ul>
+ </div>
+ <div id="infobar">
+ <div id="authstatus">
+ <span py:if="not tg.identity.anonymous">
+ <strong>${_('Logged in:')}</strong>
${tg.identity.user.username}
+ </span>
+ </div>
+ <div id="control">
+ <ul class="toolbar" id="#main-toolbar">
+ <li class="toolitem"><a
href="${tg.url('/about')}">About</a></li>
+ <logintoolitem href="${tg.url('/user/view/')}" />
+ </ul>
+ </div>
+ </div>
+ <div id="main">
+ <div id="sidebar">
+ <ul>
+ <li class="first"><a
href="${tg.url('/home')}">${_('Home')}</a></li>
+ <li py:if="not tg.identity.anonymous"><a
href="${tg.url('/user/view/%s' %
tg.identity.user.username)}">${_('My Account')}</a></li>
+ <li py:if="not tg.identity.anonymous" py:for="entry in
sidebar.getEntries()"><a
href="${tg.url(entry[1])}">${_(entry[0])}</a></li>
+ <li><a
href="http://fedoramagazine.org/">${_('News')}</a...
+ </ul>
+ <div py:if="tg.identity.anonymous and tg.available_languages and
len(tg.available_languages) > 1" id="language">
+ <!-- TODO: Should this be available to logged in users to (and actually
change their DB entry?) -->
+ <form action="${tg.url('/language')}"
method="post">
+ <label for="locale">${_('Locale:')}</label>
+ <select name="locale" id="locale">
+ <option py:for="language in tg.available_languages"
value="${language}" py:attrs="{'selected': tg.lang == language and
'selected' or None}">${language}</option>
+ </select>
+ <input type="submit" value="${_('OK')}"
/>
+ </form>
+ </div>
+ </div>
+ <div id="content">
+ <div py:if="tg_flash" class="flash">
+ ${tg_flash}
+ </div>
+ <div py:replace="select('*|text()')" />
+ </div>
+ <div id="footer">
+ <ul id="footlinks">
+ <li class="first"><a
href="${tg.url('/about')}">${_('About')}</a></li>
+ <li><a href="http://rpmfusion.org">${_('Contact
Us')}</a></li>
+ <li><a
href="http://fedoraproject.org/wiki/Legal">${_('Legal &
Privacy')}</a></li>
+ <a
href="https://fedoraproject.org/wiki/Legal/TrademarkGuidelines"...
Guidelines')}</a>
+ </ul>
+ <p class="version">
+ ${_('FAS version %s') % tg.fas_version}
+ </p>
+ <p class="copy">
+ ${Markup(_('© 2015 Red Hat, Inc. Please send any comments or
corrections to the <a href="mailto:%(webmaster)s">websites
team</a>.') % {'webmaster': tg.webmaster_email})}
+ </p>
+ <p class="disclaimer">
+ ${_('RPM Fusion is maintained and driven by the community and NOT
sponsored by Red Hat. This is a community maintained site. Red Hat is not responsible
for content.')}
+ </p>
+ </div>
+ </div>
+ </div> <!-- End wrapper -->
+ </body>
+
+ <xi:include href="${tg.fedora_template('login.html')}" />
+ <xi:include href="${tg.fedora_template('jsglobals.html')}" />
+
+</html>