[Groonga-commit] nroonga/norema [master] Use camelCase

Back to archive index

Yoji SHIDARA null+****@clear*****
Tue Aug 21 14:27:16 JST 2012


Yoji SHIDARA	2012-08-21 14:27:16 +0900 (Tue, 21 Aug 2012)

  New Revision: 38fba4fcf6c28e7cb7594d929545a071260b3452
  https://github.com/nroonga/norema/commit/38fba4fcf6c28e7cb7594d929545a071260b3452

  Log:
    Use camelCase

  Modified files:
    lib/server.js
    views/search.jade

  Modified: lib/server.js (+4 -3)
===================================================================
--- lib/server.js    2012-08-21 14:17:39 +0900 (fbf2b80)
+++ lib/server.js    2012-08-21 14:27:16 +0900 (2418990)
@@ -77,16 +77,17 @@ app.get('/search', function(request, response, next) {
     if (error) {
       return next(error);
     }
+
     var locals = {
       querystring: querystring,
       titleToId: titleToId,
       query: query,
       records: results.hits.hit,
-      num_found: results.hits.found,
-      path_facets: results.facets.path.constraints,
+      numFound: results.hits.found,
+      pathFacets: results.facets.path.constraints,
       from: results.hits.start + 1,
       to: results.hits.start + results.hits.hit.length,
-      num_showing: results.hits.hit.length
+      numShowing: results.hits.hit.length
     };
 
     return response.render('search.jade', locals);

  Modified: views/search.jade (+4 -4)
===================================================================
--- views/search.jade    2012-08-21 14:17:39 +0900 (4682fbc)
+++ views/search.jade    2012-08-21 14:27:16 +0900 (38c1129)
@@ -9,8 +9,8 @@ block content
     .span12
       if records.length > 0
         .alert.alert-info
-          | Found #{num_found} entries.
-          | Showing #{from} - #{to} (#{num_showing} entries).
+          | Found #{numFound} entries.
+          | Showing #{from} - #{to} (#{numShowing} entries).
       else
         .alert.alert-info
           | No entry found.
@@ -32,10 +32,10 @@ block content
             !{record.data.desc}
 
     .span3
-      if path_facets.length > 0
+      if pathFacets.length > 0
         .well(style="padding: 8px 0;")
           ul.nav.nav-list
-            each facet, index in path_facets
+            each facet, index in pathFacets
               li
                 a
                   = facet.value
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index