Sha256: 2f8a3fc15d861854ba61b2881dcea9740602758186b2ea4e6137e90baab35594

Contents?: true

Size: 1.77 KB

Versions: 8

Compression:

Stored size: 1.77 KB

Contents

- @meta = { :description => "#{@category.name} posts.",:keywords => "#{@category.name}"}
- @section = @category.name

.yui-b
  -box do 
    - if logged_in?
      %h3.signup=:have_something_to_contribute.l
      %ul.list.checks
        %li= link_to @category.display_new_post_text() || :write_new_post.l(:category=>@category.name), new_user_post_path({:user_id => current_user, 'post[category_id]' => @category.id})
    - else
      %h3.signup= @category.display_new_post_text() || :write_new_post.l(:category=>@category.name)
      %ul.list.checks
        %li
          %a{:href=>signup_url, :title=>:sign_up_for_a_.l+" #{configatron.community_name} "+:account.l}=:sign_up_for_an_account.l
          %br
            %small
              =:have_an_account.l
              %a{:href=>login_url, :title=>:log_in_to_your.l+" #{configatron.community_name} "+:account.l}
                »
                =:login.l

  -box :class => "alt" do 
    %h3=:top_writers.l
    - @active_users.each do |user|
      = render :partial => "users/sidebar_user", :locals => {:user => user} 
      
  -box :class => "alt" do 
    %h3=:popular_category.l(:name => @category.name)
    %ul.list.page    
      - @popular_posts.each do |post|
        =render :partial => 'posts/sidebar_post', :locals => {:post => post}


#yui-main
  .yui-b
    -box :class => "hfeed" do 
      %h3      
        =:show_category.l :category => @category.name
        %ul.subnav
          %li= link_to :recent.l, category_path(@category), {:class => (params[:popular] ? '' : 'active')}
          %li= link_to :popular.l, category_path(@category, :popular => 'DESC'), {:class => (params[:popular] ? 'active' : '')}  

      = render :partial => 'posts/post', :collection => @posts      
      - if @posts.total_count > 1
        = paginate @posts

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/categories/show.html.haml
community_engine-2.3.1 app/views/categories/show.html.haml
community_engine-2.3.0 app/views/categories/show.html.haml
community_engine-2.1.0 app/views/categories/show.html.haml
community_engine-2.0.0 app/views/categories/show.html.haml
community_engine-2.0.0.beta3 app/views/categories/show.html.haml
community_engine-2.0.0.beta2 app/views/categories/show.html.haml
community_engine-2.0.0.beta1 app/views/categories/show.html.haml