[Groonga-commit] nroonga/norema [master] Render path more pretty

Back to archive index

Yoji SHIDARA null+****@clear*****
Tue Aug 14 19:48:52 JST 2012


Yoji SHIDARA	2012-08-14 19:48:52 +0900 (Tue, 14 Aug 2012)

  New Revision: 1589399559246c0176d0d4fa998357126f2f0510
  https://github.com/nroonga/norema/commit/1589399559246c0176d0d4fa998357126f2f0510

  Log:
    Render path more pretty

  Modified files:
    views/search.jade

  Modified: views/search.jade (+7 -1)
===================================================================
--- views/search.jade    2012-08-14 17:06:57 +0900 (224bdb8)
+++ views/search.jade    2012-08-14 19:48:52 +0900 (dec7d1c)
@@ -9,7 +9,13 @@ block content
     each record, index in records
       .record
         h2 #{record.data.title}
-        p= record.data.path
+        p.path
+          each title, pathIndex in record.data.path
+            span.label.label-inverse
+              = title
+            if pathIndex != record.data.path.length - 1
+              span  » 
+
         !{record.data.desc}
   else
     .alert.alert-info
-------------- next part --------------
HTML����������������������������...
다운로드 



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