Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn+ssh://rubyforge.org/var/svn/groonga/examples@850 2d713de4-4fbb-4d10-8406-bb89ef438322
- Loading branch information
kou
committed
Nov 30, 2009
1 parent
00754fc
commit 8757672
Showing
7 changed files
with
36 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
%h2 メール一覧 | ||
|
||
%ol.mails | ||
- @mails.each do |mail| | ||
%ol.messages | ||
- @messages.each do |message| | ||
%li | ||
%a{"href" => "/#{mail.id}"}&= mail["subject"] | ||
%a{"href" => "/#{message.id}"}&= message["subject"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
%h2 検索結果 | ||
|
||
.result | ||
- @mails.each do |mail| | ||
- @messages.each do |message| | ||
.message | ||
%h3 | ||
%a{"href" => "/#{mail.id}?query=#{@query}"}&= mail["subject"] | ||
%p.snippet= snippet(mail) | ||
%a{"href" => "/#{message.id}?query=#{@query}"}&= message["subject"] | ||
%p.snippet= snippet(message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
%h2&= @mail["subject"] | ||
%h2&= @message["subject"] | ||
|
||
%dl.headers | ||
%dt 送信者 | ||
%dd #{html_escape(@mail[".from.names.value"])} | ||
%dd #{html_escape(@message[".from.names.value"])} | ||
%dt 受信者 | ||
%dd | ||
| ||
- @mail["to"].each do |to| | ||
- @message["to"].each do |to| | ||
= to | ||
%dt 送信日 | ||
%dd&= @mail["date"] | ||
%dd&= @message["date"] | ||
|
||
%pre.body= highlight(@mail["body"]) | ||
%pre.body= highlight(@message["body"]) |