Commit b0bbf815dfde7964efba663947a1faae8d975576

small TODO comments

Commit diff

lib/kipling/camping/javascripts/kipling.js

 
1Event.observe(window, 'load', function() {
2 alert('hello');
3});
toggle raw diff

lib/kipling/camping/kipling_web.rb

 
4242 head do
4343 title 'Kipling'
4444 link :href=>R(Stylesheet, 'kipling'), :rel=>'stylesheet', :type=>'text/css'
45 ['prototype', 'scriptaculous'].each do |s|
45 ['prototype', 'scriptaculous', 'kipling'].each do |s|
4646 script '', :type => "text/javascript", :language => "JavaScript", :src => R(Javascript, s)
4747 end
4848 end
toggle raw diff

lib/kipling/card_group.rb

 
2020 @attribute_value = attribute_value
2121 end
2222
23 def sum(attribute)
24 Sum.new(@cards, attribute)
25 end
26
27 # TODO: move to ascii renderer or rename
2328 def headers(options={})
2429 header = []
2530 header << @attribute_value
3232 header
3333 end
3434
35 def sum(attribute)
36 Sum.new(@cards, attribute)
37 end
38
39 def cards
40 @cards
41 end
42
35 # TODO: move to ascii renderer or rename
4336 # The width (in characters) required to display all cards
4437 # (including ourself) - that is - the maximum width.
4538 def width(options={})
toggle raw diff

lib/kipling/card_view.rb

 
3535 @card_groups ||= CardGroup.partition(@cards, attribute, values)
3636 end
3737
38 # TODO: move to ascii renderer or rename
3839 def headers
3940 columns = card_groups.map do |card_group|
4041 card_group.headers(@options)
5656 columns.transpose
5757 end
5858
59 # TODO: move to ascii renderer or rename
5960 def widths
6061 card_groups.map{|card_group| card_group.width(@options)}
6162 end
toggle raw diff

lib/kipling/timeline.rb

 
2323 end
2424 end
2525
26 # TODO: don't reverse here. Reverse as needed elsewhere
2627 # The points in increasing dates
2728 def points
2829 @points.reverse
toggle raw diff