]> git.openstreetmap.org Git - chef.git/blob - cookbooks/trac/files/default/templates/site.html
Merge remote-tracking branch 'github/pull/422'
[chef.git] / cookbooks / trac / files / default / templates / site.html
1 <html xmlns="http://www.w3.org/1999/xhtml"
2       xmlns:py="http://genshi.edgewall.org/" py:strip="">
3
4   <form py:match="div[@id='content' and @class='ticket']/form" py:attrs="select('@*')">
5     <py:if test="req.environ['PATH_INFO'] == '/newticket' and (not 'preview' in req.args)">
6       <p>Before opening a new ticket, please:</p>
7       <ol>
8         <li>Check that you're in the right place. This is the bug-tracker for many OpenStreetMap related projects but not everything uses this site, so check the following list to make sure there isn't a better place to raise your issue:
9           <ul>
10             <li>Raise JOSM issues <a href="http://josm.openstreetmap.de/">here</a>.</li>
11             <li>Raise JXAPI issues <a href="https://github.com/iandees/xapi-servlet/issues">here</a>.</li>
12           </ul>
13         </li>
14         <li><a href="/report/1?sort=created&amp;asc=1">View the list of tickets</a> to make sure that your bug hasn't already been reported. You should also try <a href="/search">searching</a>.</li>
15         <li>Enter your bug descriptively. <i>Be sure you set the 'component' field (e.g. "website" or "potlatch (Flash editor)") so that it goes to the right person</i></li>
16       </ol>
17       <p>You can also use this to request enhancements.</p>
18       <h2>How to be a helpful bug reporter</h2>
19       <p>Where you can, always provide "steps to reproduce" - in other words, a series of instructions that the developers can follow to reproduce your bug. The more you can do to pinpoint the problem, the more likely it'll be fixed.</p>
20       <ol>
21         <li>Give any pertinent details of your system (operating system and version, browser and version, etc.).</li>
22         <li>If the problem is with a web page or web application, give its URL. If the problem is encountered with a particular set of data, say what (e.g. a location in <a class="wiki" href="/wiki/OpenStreetMap">OpenStreetMap</a>).</li>
23         <li>Explain what you are doing, click-by-click.</li>
24         <li>Explain what you expect to happen.</li>
25         <li>Explain what is happening instead.</li>
26       </ol>
27       <script type="text/javascript">
28         $(document).ready(function () {
29           var c = document.createElement("option");
30           $(c).attr("selected", "selected");
31           $("#field-component").prepend(c);
32
33           $("#propertyform").submit(function () {
34             if ($("#field-component").val() == "") {
35               alert("Please select a component!");
36               return false;
37             } else {
38               return true;
39             }
40           });
41         });
42       </script>
43     </py:if>
44     ${select('*')} 
45   </form>
46
47 </html>