Class: Writecast::Tag_index_view
- Inherits:
-
Base_view
- Object
- Erector::Widget
- Base_view
- Writecast::Tag_index_view
show all
- Defined in:
- lib/writecast/views/tag_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
12
13
14
15
16
17
18
|
# File 'lib/writecast/views/tag_index.rb', line 12
def render_breadcrumb
p do
text SEPARATOR
a "tags", :href => '/tags'
text ": #{@tag}"
end
end
|
#render_content_inner ⇒ Object
20
21
22
23
24
|
# File 'lib/writecast/views/tag_index.rb', line 20
def render_content_inner
div :id => 'post_summaries' do
ul {@posts.each {|post| render_post_summary(post)}}
end
end
|
#render_feed_link ⇒ Object
4
5
6
7
8
9
10
|
# File 'lib/writecast/views/tag_index.rb', line 4
def render_feed_link
link ({
:rel => 'alternate',
:type => 'application/rss+xml',
:href=> "/tags/#{@escaped_tag}/feed.atom"
})
end
|