You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/03/26 22:02:46 UTC
[12/22] git commit: [#2835] ticket:288 Show artifact type next to
title
[#2835] ticket:288 Show artifact type next to title
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/a9f0bdb9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/a9f0bdb9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/a9f0bdb9
Branch: refs/heads/master
Commit: a9f0bdb9b4af317da01f36928e43508486a78123
Parents: b5f42ce
Author: Igor Bondarenko <je...@gmail.com>
Authored: Thu Mar 7 09:26:55 2013 +0000
Committer: Dave Brondsema <db...@geek.net>
Committed: Tue Mar 26 20:57:36 2013 +0000
----------------------------------------------------------------------
Allura/allura/lib/widgets/resources/css/search.css | 2 +-
.../allura/templates/widgets/search_results.html | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a9f0bdb9/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 614bc01..f687399 100644
--- a/Allura/allura/lib/widgets/resources/css/search.css
+++ b/Allura/allura/lib/widgets/resources/css/search.css
@@ -2,7 +2,7 @@ input.search-query {
width: 95%;
}
-.date {
+.gray {
color: #aaa;
}
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/a9f0bdb9/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 92b7cb6..74eb466 100644
--- a/Allura/allura/templates/widgets/search_results.html
+++ b/Allura/allura/templates/widgets/search_results.html
@@ -38,11 +38,13 @@
<div class="grid-19">
{# TODO: mark matches in title and snippet #}
<p>
- <a href="{{doc['url_paginated'] or doc['url_s']}}">{{ doc.title_s }}</a><br>
+ <a href="{{doc['url_paginated'] or doc['url_s']}}">{{ doc.title_s }}</a>
+ {% if doc['type_s'] %}<span class="gray"><sup>{{ '(%s)' % doc['type_s'] }}</sup></span>{% endif %}
+ <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: {{ h.ago_string(doc['mod_date_dt']) }}</span>
+ <span class="gray">Last updated: {{ h.ago_string(doc['mod_date_dt']) }}</span>
</p>
</div>
{% endfor %}