Commits

Tiff Ting committed b8e118c

Inspector Gadgetized

Comments (0)

Files changed (1)

bazaarvoice-customizations

 diff --git a/web/default/style.css b/web/default/style.css
 --- a/web/default/style.css
 +++ b/web/default/style.css
-@@ -1,144 +1,194 @@
+@@ -1,144 +1,195 @@
 -body {
 -background-color: #ffffff;
 -/*font-size: 100.01%; /* 12px [1] */
 +                #difftable table {table-layout: fixed; width: 100%;}
 +                    #difftable th {background-color: #eeeeee;}
 +                    tr.k {border-bottom: 1px dashed #ccc;}
++                    td.d {background-color: #eeeeee;}
 +                    .indicator-break {font-family: Helvetica, Helvetica Neue, Arial, sans-serif; margin: 1.25em 0;}
 +                        .indicator-break .prefix {background-image: none; padding-left: 0;}
 +                        #difftable span.d {background-color: #ffffcc;} /* deleted */
  
  .sl {color:#999;text-decoration:underline;}
  td.a{color:#000}
-@@ -146,14 +196,11 @@
+@@ -146,14 +197,11 @@
  .s  {color:green;} /* strings */
  .c  {color:#666;} /* comments */
  .b  {color:#000; font-weight:bold;} /* comments */
  
  a.d {color:#936; font-weight:bold; text-decoration:none;} /* definitions */
  
-@@ -184,50 +231,14 @@
+@@ -184,50 +232,14 @@
  
  #results {margin-top:.5em;}
  #results .con{font-size:small;color:#000;}
      }
  }
 -String pageTitle = "Error!";
-+String pageTitle = "OpenGrok error";
++String pageTitle = "Inspector Gadget error";
  %><%@ include file="httpheader.jspf" %>
 -<body>
 -<div id="page">
 +        
 +        <div id="content">
 +            <div id="contentBody">
-+                <h1>OpenGrok error</h1>
++                <h1>Inspector Gadget error</h1>
 +                <div class="error"><span class="prefix">Error:</span> <%=configError%></div>
 +                <pre><%
 +                   StringWriter wrt = new StringWriter();
 diff --git a/web/help.jsp b/web/help.jsp
 --- a/web/help.jsp
 +++ b/web/help.jsp
-@@ -25,90 +25,104 @@
+@@ -23,92 +23,106 @@
+              session="false" errorPage="error.jsp" %><%
+ RuntimeEnvironment environment = RuntimeEnvironment.getInstance();
  environment.register();
- String pageTitle = "OpenGrok Help";
+-String pageTitle = "OpenGrok Help";
++String pageTitle = "Inspector Gadget Help";
  %><%@ include file="httpheader.jspf" %>
 -<body>
 -    <div id="page">
 +        
 +        <div id="content">
 +            <div id="contentBody">
-+                <h1>OpenGrok help</h1>
++                <h1>Inspector Gadget help</h1>
 +                
 +                <h2>Introduction</h2>
-+                <p>Use OpenGrok to query our codebase to answer any question you might have about it. It basically replaces the <a href="http://www.jetbrains.com/idea/">IDEA</a> "Find in path..." feature and is super fast!</p>
++                <p>Use Inspector Gadget (a.k.a., IG or Iggy) to query our codebase to answer any question you might have about it. It basically replaces the <a href="http://www.jetbrains.com/idea/">IDEA</a> "Find in path..." feature and is super fast!</p>
 +                <h3>Get started</h3>
 +                <p>If you want to get started with example queries, check out the ones listed on the <a href="<%=home%>/#example-queries">home page</a>.</p>
 +                
 +                <hr/>
 +                
 +                <h2>Further reading</h2>
-+                <p><a href="http://www.opensolaris.org/os/project/opengrok/">OpenGrok</a> search is powered by <a href="http://lucene.apache.org/">Lucene</a>. For more detail on query syntax, refer to <a href="http://lucene.apache.org/java/2_4_0/queryparsersyntax.html">Lucene documentation</a>.</p>
++                <p>Inspector Gadget is an instance of <a href="http://www.opensolaris.org/os/project/opengrok/">OpenGrok</a>, whose search is powered by <a href="http://lucene.apache.org/">Lucene</a>. For more detail on query syntax, refer to <a href="http://lucene.apache.org/java/2_4_0/queryparsersyntax.html">Lucene documentation</a>.</p>
 +                
 +                <p class="action"><a class="primary" href="<%=home%>/" title="Return to search">&laquo; Start searching</a></p>
 +            </div>
  }
 -%><%@include file="foot.jspf"%>
 +%></div><%@include file="foot.jspf"%>
+diff --git a/web/httpheader.jspf b/web/httpheader.jspf
+--- a/web/httpheader.jspf
++++ b/web/httpheader.jspf
+@@ -32,7 +32,8 @@
+ <!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" xml:lang="en" lang="en">
+ <head>
+-    <meta name="robots" content="noindex,nofollow"/>    
++    <meta name="robots" content="noindex,nofollow"/>
++    <meta name="viewport" content="width=device-width"/>
+     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+     <meta name="generator" content="<%=org.opensolaris.opengrok.Info.getVersion()%> (<%=org.opensolaris.opengrok.Info.getRevision()%>)"/>
+     <link rel="icon" href="<%=httpHeaderContext%>/<%=laf%>/img/icon.png" type="image/png"/>    
 diff --git a/web/index.jsp b/web/index.jsp
 --- a/web/index.jsp
 +++ b/web/index.jsp
  String sort = null;
  RuntimeEnvironment environment = RuntimeEnvironment.getInstance();
 -String pageTitle = "Search";
-+String pageTitle = "OpenGrok search";
++String pageTitle = "Inspector Gadget search";
   %><%@ include file="httpheader.jspf" %>
 -<body>
 -<div id="page">
 +        
 +        <div id="content">
 +            <div id="contentMenu">
-+                <h1>OpenGrok search</h1>
++                <h1>Inspector Gadget search</h1>
 +                <%@ include file="menu.jspf" %>
 +            </div>
 +            <div id="contentBody">
 +    <h2>Submit feedback</h2>
 +
 +    <p>If you have any suggestions or find problems, please add them to the
-+    <a href="https://bits.bazaarvoice.com/confluence/display/~rstinnett/OpenGrok">OpenGrok wiki page</a>
++    <a href="https://bits.bazaarvoice.com/confluence/x/aSlOAQ">Inspector Gadget wiki page</a>
 +    or <a href="mailto:ryan.stinnett@bazaarvoice.com">email Ryan Stinnett</a>.</p>
 \ No newline at end of file
 diff --git a/web/list.jsp b/web/list.jsp
 +        <label for="path" title="abbreviated (e.g., folder names, file extensions) or literal (i.e., with forward slashes) path for search scope"><span class="fieldLabel">File path</span><span class="fieldHelper"><span class="hint hint-case-insensitive" title="not case sensitive">&nbsp;</span></span></label><input type="text" tabindex="4" class="q" id="path" name="path" value="<%=Util.formQuoteEscape(path)%>"/>
 +        <label for="hist" title="any string in promote comments (e.g., date, ticket #, client name)"><span class="fieldLabel">History</span><span class="fieldHelper"><span class="hint hint-case-insensitive" title="not case sensitive">&nbsp;</span></span></label><input type="text" tabindex="5" class="q" id="hist" name="hist" value="<%=Util.formQuoteEscape(hist)%>"/>
 +        <div class="buttons">
-+            <button tabindex="9" class="primary">Search &raquo;</button>
++            <button tabindex="9" class="primary">Go-go-gadget Search &raquo;</button>
 +            <button tabindex="10" class="secondary" onclick="javascript:sbox.q.value='';sbox.defs.value='';sbox.refs.value='';sbox.path.value='';sbox.hist.value='';sbox.project.value='';">Clear</button>
 +            <a class="help" tabindex="11" href="help.jsp">Help</a>
 +        </div>
 -%><%@include file="foot.jspf"%>
 +%></div>
 +<%@include file="foot.jspf"%>
+diff --git a/web/opensearch.jsp b/web/opensearch.jsp
+--- a/web/opensearch.jsp
++++ b/web/opensearch.jsp
+@@ -62,8 +62,8 @@
+ 
+ %><?xml version="1.0" encoding="UTF-8"?>
+ <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+-<ShortName>OpenGrok <%=projtext%></ShortName>
+-<Description>Search in OpenGrok <%=projtext%></Description>
++<ShortName>Inspector Gadget <%=projtext%></ShortName>
++<Description>Search in Inspector Gadget <%=projtext%></Description>
+ <InputEncoding>UTF-8</InputEncoding>
+ <Image height="16" width="16" type="image/png"><%=url%>/<%=laf%>/img/icon.png</Image><%-- 
+ <Url type="application/x-suggestions+json" template="suggestionURL"/>
 diff --git a/web/pageheader.jspf b/web/pageheader.jspf
 --- a/web/pageheader.jspf
 +++ b/web/pageheader.jspf
 +        <form action="<%=home+Constants.searchP%>">
 +            <input type="text" id="search" name="q" class="q"/>
 +            <button class="primary">Search &raquo;</button>
+diff --git a/web/rss.xsl.xml b/web/rss.xsl.xml
+--- a/web/rss.xsl.xml
++++ b/web/rss.xsl.xml
+@@ -1,1 +1,1 @@
+-<?xml version="1.0" encoding="UTF-8"?>
    <xsl:output method="html" /> 
    <xsl:variable name="title" select="/rss/channel/title"/>		
    <xsl:template match="/">
        <html>
            <head>
                <title><xsl:value-of select="$title"/></title>
                <link rel="icon" href="img/icon.png" type="image/png"/>
                <link rel="stylesheet" type="text/css" href="style.css"/>
            </head>
            <xsl:apply-templates select="rss/channel"/>		
        </html>
    </xsl:template>
    <xsl:template match="channel">
        <body>
            <div id="page">
            <div id="header">     <!-- CONFIG: Header -->
                <div id="MastheadLogo"> <h1> OpenGrok </h1> </div>
      <div id="pagetitle"><b id="filename"><xsl:value-of select="title"/></b><br/>
          <xsl:value-of select="description"/>
      </div>
            </div>
            <div id="Masthead">
               <tt>RSS Feed <a href="{link}" class="item"><xsl:value-of select="link"/></a></tt>
            </div>
            <div id="results">
                <div class="itembox">
                    <div class="paditembox">
                        <xsl:apply-templates select="item"/>
                    </div>
                </div>	
            </div>	
        </body>
    </xsl:template>
    <xsl:template match="item">
        <div id="item">
            <ul>
                <li><span class="c"><xsl:value-of select="pubDate"/> - </span>
                        <xsl:value-of select="title"/>
                    <br/>
                    <pre>
                        <xsl:value-of select="description" />
                    </pre>
                </li>
            </ul>
        </div>
    </xsl:template>
+\ No newline at end of file
++<?xml version="1.0" encoding="UTF-8"?>
    <xsl:output method="html" /> 
    <xsl:variable name="title" select="/rss/channel/title"/>		
    <xsl:template match="/">
        <html>
            <head>
                <title><xsl:value-of select="$title"/></title>
                <link rel="icon" href="img/icon.png" type="image/png"/>
                <link rel="stylesheet" type="text/css" href="style.css"/>
            </head>
            <xsl:apply-templates select="rss/channel"/>		
        </html>
    </xsl:template>
    <xsl:template match="channel">
        <body>
            <div id="page">
            <div id="header">     <!-- CONFIG: Header -->
                <div id="MastheadLogo"> <h1>Inspector Gadget</h1> </div>
      <div id="pagetitle"><b id="filename"><xsl:value-of select="title"/></b><br/>
          <xsl:value-of select="description"/>
      </div>
            </div>
            <div id="Masthead">
               <tt>RSS Feed <a href="{link}" class="item"><xsl:value-of select="link"/></a></tt>
            </div>
            <div id="results">
                <div class="itembox">
                    <div class="paditembox">
                        <xsl:apply-templates select="item"/>
                    </div>
                </div>	
            </div>	
        </body>
    </xsl:template>
    <xsl:template match="item">
        <div id="item">
            <ul>
                <li><span class="c"><xsl:value-of select="pubDate"/> - </span>
                        <xsl:value-of select="title"/>
                    <br/>
                    <pre>
                        <xsl:value-of select="description" />
                    </pre>
                </li>
            </ul>
        </div>
    </xsl:template>
+\ No newline at end of file
 diff --git a/web/search.jsp b/web/search.jsp
 --- a/web/search.jsp
 +++ b/web/search.jsp
          response.sendRedirect(url.toString());
      } else {
 -         String pageTitle = "Search";
-+         String pageTitle = "OpenGrok search results";
++         String pageTitle = "Inspector Gadget search results";
           RuntimeEnvironment environment = RuntimeEnvironment.getInstance();
           environment.register();
 -	    %><%@ include file="httpheader.jspf" %>
 +    
 +    <div id="content">
 +        <div id="contentBody">
-+            <h1>OpenGrok search results</h1>
++            <h1>Inspector Gadget search results</h1>
 +        <%
 +        //TODO spellchecking cycle below is not that great and we only create suggest links for every token in query, not for a query as whole
 +        if( hits == null || errorMsg != null) {
 diff --git a/web/status.jsp b/web/status.jsp
 --- a/web/status.jsp
 +++ b/web/status.jsp
-@@ -32,65 +32,69 @@
+@@ -30,67 +30,71 @@
+ RuntimeEnvironment environment = RuntimeEnvironment.getInstance();
+ environment.register();
  HistoryGuru historyGuru = HistoryGuru.getInstance();
- String pageTitle = "Status";
+-String pageTitle = "Status";
++String pageTitle = "Inspector Gadget status";
   %><%@ include file="httpheader.jspf" %>
 -<body>
 -<div id="page">
 +        </div>
 +        <div id="content">
 +            <div id="contentBody">
-+                <h1>OpenGrok status page</h1>
++                <h1>Inspector Gadget status</h1>
 +                <p>
 +                    This page is only used for testing purposes to dump some of the
-+                    internal settings on your OpenGrok server.
++                    internal settings on Inspector Gadget's OpenGrok server.
 +                </p>
 +                <table border="1" width="100%">
 +                    <tr>