mirror of
https://github.com/apache/lucene.git
synced 2025-02-21 01:18:45 +00:00
Add custom delcious library view which includes Amazon images
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@511695 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c2f542416e
commit
6ce02c5898
17
client/ruby/flare/app/views/document/document_delicious.rhtml
Executable file
17
client/ruby/flare/app/views/document/document_delicious.rhtml
Executable file
@ -0,0 +1,17 @@
|
||||
<tr valign="top">
|
||||
<td>
|
||||
<%=image_tag "http://images.amazon.com/images/P/#{@doc[:asin_text]}.01.MZZZZZZZ" %>
|
||||
</td>
|
||||
<td>
|
||||
<table class="entry">
|
||||
<tr>
|
||||
<td class="title" colspan="2"><%=link_to @doc['title_text'], "http://www.amazon.com/exec/obidos/ASIN/#{@doc[:asin_text]}"%></td>
|
||||
</tr>
|
||||
<% @doc.each do |k,v|; highlighting = @response.highlighted(@doc['id'], k) %>
|
||||
<tr><td class="field"><%=k%>:</td><td><%= highlighting ? "...#{highlighting}..." : (v.respond_to?('join') ? v.join(',') : v.to_s)%></td></tr>
|
||||
<% end %>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user