Class: Writecast::Year_index_view

Inherits:
Base_view
  • Object
show all
Defined in:
lib/writecast/views/year_index.rb

Instance Method Summary collapse

Methods inherited from Base_view

#content, #render_body_top_inner, #render_footer, #render_head, #render_menu, #render_post_summary

Instance Method Details

#render_breadcrumbObject



4
5
6
# File 'lib/writecast/views/year_index.rb', line 4

def render_breadcrumb
    p SEPARATOR + "%04d" % @year
end

#render_content_innerObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/writecast/views/year_index.rb', line 8

def render_content_inner
    div :id => 'months_list' do
        ul do
            @months_hash.each do |month,posts|
                li do
                    a "%02d" % month, :href => "/#{"%04d" % @year}/#{"%02d" % month}"
                    text " (#{Date::MONTHNAMES[month]}) - #{posts.size} posts"
                end
            end
        end
    end
end