<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Yoji SHIDARA <dara****@shida*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2012-08-15 13:48:02 +0900 (Wed, 15 Aug 2012)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170">ac15925e082bcaa1ef8e58a78aae8e006f4e5170</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em">Link paths to the corresponding query</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#diff-0">lib/server.js</a></li>
<li><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#diff-1">views/search.jade</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/server.js (+2 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L0">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L1">1</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L2">2</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L4">4</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L5">5</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L68">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L69">69</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L70">70</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L71">71</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L72">72</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L73">73</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0L74">74</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R0">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R1">1</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R2">2</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R4">4</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R6">6</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R69">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R70">70</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R71">71</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R72">72</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R73">73</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R74">74</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R75">75</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L0R76">76</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1,5 +1,6 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var http = require('http');</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var express = require('express');</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+var querystring = require('querystring');</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var app = express();</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var env = process.env;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var port = env.PORT ? parseInt(env.PORT, 10) : 3000;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -69,6 +70,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">app.get('/search', function(request, response, next) {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return next(error);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> var locals = {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ querystring: querystring,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> query: query,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> records: results.hits.hit,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> num_found: results.hits.found,</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: views/search.jade (+3 -2)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L17">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L18">18</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L19">19</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L20">20</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L21">21</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L22">22</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L23">23</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L24">24</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1L25">25</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R17">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R18">18</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R19">19</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R20">20</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R21">21</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R22">22</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R23">23</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R24">24</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R25">25</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/nroonga/norema/commit/ac15925e082bcaa1ef8e58a78aae8e006f4e5170#L1R26">26</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -18,8 +18,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">block content</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> h2 #{record.data.title}</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> p.path</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> each title, pathIndex in record.data.path</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- span.label.label-inverse</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- = title</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ span</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ a(href="/search?"+querystring.stringify({query: title}))</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ = title</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if pathIndex != record.data.path.length - 1</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> span &raquo; </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>