Sha256: ea5f76d60ccda5067a28bba994c0df5d6b87fb229e02ed3ce2f0f8990af6ae31

Contents?: true

Size: 913 Bytes

Versions: 3

Compression:

Stored size: 913 Bytes

Contents

-box do
  = form_tag( statistics_user_path(@user), :class => "MainForm", :method => :get) do
    %label= :month.l+":"
    = select_month(@month)
    = select_year(@month, :start_year => 1.years.ago.year, :end_year => 1.years.from_now.year)
    %p= submit_tag :go.l

    - if current_user.admin?
      %p= link_to :back_to_all_statistics.l, statistics_path
      %p
        =:estimated_total_for_this_month.l+":"
        %strong= "$#{@estimated_payment}"

    %table{"width"=>"100%"}
      - @posts.group_by(&:category).each do |category, posts|
        %thead
          %tr
            %th
              = "#{category.name}:" if category
              = "#{posts.size} "+:posts.l
            %th=:comments.l
            %th{"width"=>"7%"} Views
        %tbody
          - posts.each do |post|
            %tr
              %td= post.title
              %td= post.comments.count
              %td= post.view_count

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
community_engine-2.3.2 app/views/users/statistics.html.haml
community_engine-2.3.1 app/views/users/statistics.html.haml
community_engine-2.3.0 app/views/users/statistics.html.haml