Sha256: ac6f03b87657e6cbb0575e3a8e4761197e7d33b3877a9a868c323745d3f96ab5
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 Bytes
Contents
module C80NewsTz module SubjHelper include LocalTimeHelper def render_news_block(is_news_page=false,page=1) if is_news_page per_page = C80NewsTz::Prop.first.per_page news = Fact.paginate(:page => page,:per_page => per_page) else per_widget = C80NewsTz::Prop.first.per_widget news = Fact.limit(per_widget) end render :partial => "shared/news_block", :locals => { :news_list => news, :is_news_page => is_news_page } end def render_one_fact(fact) render :partial => "shared/fact", :locals => { fact: fact } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
c80_news_tz-0.1.1.16 | app/helpers/c80_news_tz/subj_helper.rb |
c80_news_tz-0.1.1.15 | app/helpers/c80_news_tz/subj_helper.rb |