Class: Writecast::Month_index_view
- Inherits:
-
Base_view
- Object
- Erector::Widget
- Base_view
- Writecast::Month_index_view
show all
- Defined in:
- lib/writecast/views/month_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_breadcrumb ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/writecast/views/month_index.rb', line 4
def render_breadcrumb
p do
text SEPARATOR
a @year, :href => "/#{@year}"
text SEPARATOR + "%02d" % @month
end
end
|
#render_content_inner ⇒ Object
12
13
14
15
16
17
18
19
20
|
# File 'lib/writecast/views/month_index.rb', line 12
def render_content_inner
div :id => 'post_summaries' do
ul do
@posts.each do |post|
render_post_summary(post)
end
end
end
end
|