• R/O
  • SSH
  • HTTPS

tenarai: 提交


Commit MetaInfo

修訂85 (tree)
時間2008-04-23 21:50:50
作者junkikuchi

Log Message

updated.

Change Summary

差異

--- trunk/webapp/Widget/TrackLog/List.rb (nonexistent)
+++ trunk/webapp/Widget/TrackLog/List.rb (revision 85)
@@ -0,0 +1,28 @@
1+#
2+# Copyright (C) 2008 Jun Kikuchi <kikuchi@bonnou.com>
3+#
4+
5+Tenarai::ClassLoader.load_class('Widget::TrackLog')
6+
7+class Widget
8+ class TrackLog
9+ class List < ::Widget
10+ extend Tenarai::ClassLoader
11+
12+ preference_css 'box'
13+ preference_list
14+
15+ def render_html(xml, builder, content=nil)
16+ xml.tag('div', 'id' => html_id) do |div|
17+ div.tag('ul') do |ul|
18+ resource.each do |c|
19+ ul.tag('li') do |li|
20+ li.text(c.name)
21+ end
22+ end
23+ end
24+ end
25+ end
26+ end
27+ end
28+end
Show on old repository browser