From: <psy...@us...> - 2009-02-14 15:05:56
|
Update of /cvsroot/frenchmozilla/bugzilla/template/fr/default In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25011/template/fr/default Modified Files: index.html.tmpl Log Message: Bug 475063: Make the logged-out index.cgi simpler. Index: index.html.tmpl =================================================================== RCS file: /cvsroot/frenchmozilla/bugzilla/template/fr/default/index.html.tmpl,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- index.html.tmpl 24 Apr 2008 17:32:17 -0000 1.10 +++ index.html.tmpl 14 Feb 2009 15:05:45 -0000 1.11 @@ -19,6 +19,7 @@ # Contributor(s): Terry Weissman <te...@mo...> # Jacob Steenhagen <ja...@bu...> # Vitaly Harisov <vi...@ra...> + # Guy Pyrzak <guy...@gm...> #%] [%# INTERFACE: @@ -33,27 +34,49 @@ header = "Page d'accueil" header_addl_info = "version $constants.BUGZILLA_VERSION" style_urls = [ 'skins/standard/index.css' ] - onload = 'document.forms[\'f\'].quicksearch.focus();' %] <script type="text/javascript"> <!-- +function onLoadActions() { + quicksearchHelpText('quicksearch', 'show'); + if( window.external.AddSearchProvider ){ + YAHOO.util.Dom.removeClass('quicksearch_plugin', 'bz_default_hidden'); + } + document.getElementById('quicksearch_top').focus(); +} function addSidebar() { - if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) - { - var sidebarname=window.location.host; - if (!/bug/i.test(sidebarname)) - sidebarname="[% terms.Bugzilla %] "+sidebarname; - window.sidebar.addPanel (sidebarname, "[% urlbase FILTER html %]sidebar.cgi", ""); + var sidebarname=window.location.host; + if (!/bug/i.test(sidebarname)) + sidebarname="[% terms.Bugzilla %] "+sidebarname; + window.sidebar.addPanel (sidebarname, "[% urlbase FILTER html %]sidebar.cgi", ""); +} +var quicksearch_message = "Saisir [% terms.abug %] # or some search terms"; + +function checkQuicksearch( form ) { + if (form.quicksearch.value == '' || form.quicksearch.value == quicksearch_message ) { + alert('Veuillez saisir un ou plusieurs termes de recherche d\'abord.'); + return false; } - else - { - var rv = window.confirm ("Votre navigateur ne gère pas l'extension « Barre latérale ». " + "Voulez-vous faire la mise à jour maintenant ?"); - if (rv) - document.location.href = "http://www.mozilla.org/"; + return true; +} + +function quicksearchHelpText(el_id, action){ + var el = document.getElementById(el_id); + if ( action == "show") { + if( el.value == "" ) { + el.value = quicksearch_message + YAHOO.util.Dom.addClass(el, "quicksearch_help_text"); + } + } else { + if( el.value == quicksearch_message ) { + el.value = ""; + YAHOO.util.Dom.removeClass(el, "quicksearch_help_text"); + } } } +YAHOO.util.Event.onDOMReady(onLoadActions); //--> </script> @@ -101,56 +124,77 @@ <div id="page-index"> <div class="intro"></div> + <table> + <tr> + <td> + <h1 id="welcome">Bienvenue dans [% terms.Bugzilla %]</h1> + <a href="enter_bug.cgi" class="bz_common_actions"> + <div class="bz_common_actions" id="enter_bug"> + <span>Rapporter [% terms.abug %]</span> + </div> + </a> - <p>Bienvenue dans [% terms.Bugzilla %]. Pour voir les nouveautés de cette version - de [% terms.Bugzilla %], consultez - <a href="page.cgi?id=release-notes.html">les notes de version</a> ! - Vous pouvez également lire le - <a href="[% docs_urlbase FILTER html %]using.html"> - Guide de l'utilisateur de [% terms.Bugzilla %]</a> pour en apprendre plus et pour savoir - comment utiliser [% terms.Bugzilla %].</p> - - <p>Questions fréquentes :</p> - <ul> - <li id="query"><a href="query.cgi">Chercher dans les rapports de [% terms.bug %] existants</a></li> - <li id="enter-bug"><a href="enter_bug.cgi">Rapporter un nouveau [% terms.bug %]</a></li> - <li id="report"><a href="report.cgi">Rapports et graphiques</a></li> -[% IF user.id %] - <li id="userprefs"><a href="userprefs.cgi">Changer le mot de passe ou les préférences utilisateur</a></li> - [% IF user.authorizer.can_logout %] - <li id="logout"><a href="relogin.cgi">Déconnecter [% user.login FILTER html %]</a></li> - [% END %] -[% ELSIF user.authorizer.can_login %] - </ul> - [% PROCESS "account/auth/login-small.html.tmpl" %] - <ul> - [% IF Param('createemailregexp') && user.authorizer.user_can_create_account %] - <li id="account"><a href="createaccount.cgi">Ouvrir un nouveau compte [% terms.Bugzilla %]</a></li> - [% END %] -[% END %] - <li id="sidebar"><a href="javascript:addSidebar()">Ajouter à la barre latérale</a> (requiert un navigateur Mozilla comme Mozilla Firefox)</li> - <li id="quick_search_plugin"> - <a href="javascript:window.external.AddSearchProvider('[% urlbase FILTER html %]search_plugin.cgi')">Installer - le plugin de recherche rapide</a> (requiert Firefox 2 ou Internet Explorer 7) - </li> - - - [%# List items of links to more things users can do on this installation. %] - [% Hook.process("links") %] + <a href="query.cgi" class="bz_common_actions"> + <div class="bz_common_actions" id="query"> + <span>Rechercher</span> + </div> + </a> - </ul> + <a class="bz_common_actions quicksearch_help_text" href=" + [% IF user.id %] + userprefs.cgi + [% ELSIF Param('createemailregexp') && user.authorizer.user_can_create_account %] + createaccount.cgi + [% ELSE %] + ?GoAheadAndLogIn=1 + [% END %]"> + <div class="bz_common_actions" id="account"> + <span> + [% IF user.id %] + Préférences utilisateur + [% ELSIF Param('createemailregexp') && user.authorizer.user_can_create_account %] + Ouvrir un nouveau compte + [% ELSE %] + Se connecter + [% END%]</span> + </div> + </a> + <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi" + onsubmit="return checkQuicksearch(this);"> + <div> + <input id="quicksearch" type="text" name="quicksearch" + onfocus="quicksearchHelpText(this.id, 'hide');" + onblur="quicksearchHelpText(this.id, 'show');" + > + <input id="find" type="submit" value="Recherche rapide"> + <ul class="additional_links" id="quicksearch_links"> + <li> + <a href="page.cgi?id=quicksearch.html">Aide sur la recherche rapide</a> + </li> + <li class="bz_default_hidden" id="quicksearch_plugin"> + | + <a href="javascript:window.external.AddSearchProvider('[% urlbase FILTER html %]search_plugin.cgi')"> + Installer le plugin de recherche rapide + </a> + </li> + </ul> + <ul class="additional_links"> + <li> + <a href="[% docs_urlbase FILTER html %]using.html"> + Guide de l'utilisateur de [% terms.Bugzilla %] + </a> + | + </li> + <li> + <a href="page.cgi?id=release-notes.html">Notes de version</a> + </li> + </div> + </div> + </form> + </td> + </tr> + </table> - <form id="f" name="f" action="buglist.cgi" method="get" - onsubmit="if (this.quicksearch.value == '') - { alert('Veuillez saisir un ou plusieurs termes de recherche d\'abord.'); - return false; } return true;"> - <div> - <p>Saisissez le numéro de [% terms.bug %] ou des termes à rechercher :</p> - <input id="quicksearch" type="text" name="quicksearch"> - <input id="find" type="submit" value="Rechercher"> - <a href="page.cgi?id=quicksearch.html">[Aide]</a> - </div> - </form> <div class="outro"></div> </div> |