incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [03/22] git commit: [#2835] ticket:287 Search results styles (with stubs for some data)
Date Tue, 26 Mar 2013 21:02:37 GMT
[#2835] ticket:287 Search results styles (with stubs for some data)


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/86bd80f7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/86bd80f7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/86bd80f7

Branch: refs/heads/master
Commit: 86bd80f7294bbf034afee92d937fbeaa37e6ab07
Parents: b7f967d
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Mar 5 13:07:15 2013 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Tue Mar 26 20:57:34 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/resources/css/search.css |    4 ++++
 .../allura/templates/widgets/search_results.html   |   13 ++++++++-----
 2 files changed, 12 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/86bd80f7/Allura/allura/lib/widgets/resources/css/search.css
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/css/search.css b/Allura/allura/lib/widgets/resources/css/search.css
index 16b792a..8d4f308 100644
--- a/Allura/allura/lib/widgets/resources/css/search.css
+++ b/Allura/allura/lib/widgets/resources/css/search.css
@@ -1,3 +1,7 @@
 input.search-query {
   width: 95%;
 }
+
+.date {
+  color: #aaa;
+}

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/86bd80f7/Allura/allura/templates/widgets/search_results.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/widgets/search_results.html b/Allura/allura/templates/widgets/search_results.html
index 6700c48..0b1fcdf 100644
--- a/Allura/allura/templates/widgets/search_results.html
+++ b/Allura/allura/templates/widgets/search_results.html
@@ -36,12 +36,15 @@
 </div>
 {% for doc in results %}
   <div class="grid-19">
-    <a href="{{doc['url_paginated'] or doc['url_s']}}">{{doc.title_s}}</a><br>
-    {% if doc.get('snippet') %}
-      <p>{{doc.snippet}}</p>
-    {% endif %}
+    {# TODO: mark matches in title and snippet #}
+    <p>
+    <a href="{{doc['url_paginated'] or doc['url_s']}}">{{ doc.title_s }}</a><br>
+    {{ doc.snippet }}
+    TODO: change me to something useful! Mark <strong>matches</strong>.<br/>
+    an open source implementation of a software "forge", <strong>a web site</strong>
that manages source code repositories, bug reports, discussions, mailing lists, wiki pages,
blogs and more for any number of individual proje<br>
+    <span class="date">Last updated: {{ doc['mod_date_dt'] }}</span>
+    </p>
   </div>
-  <hr>
 {% endfor %}
 <div class="grid-19" style="clear:both">
   {{widget.fields['page_list'].display(limit=limit, page=page, count=count)}}


Mime
View raw message