Sha256: 70e9f03ed365c0b195f45e02543c3eaceb625dd31c47ea71e34c817959235fce

Contents?: true

Size: 627 Bytes

Versions: 8

Compression:

Stored size: 627 Bytes

Contents

- completeness ||= profile_completeness(user)
- percent = completeness[:score]

%table.poll{:width => '100%', :style => "margin-bottom: 0"}
  %tr
    %td.bars
      .bar-container{:style => 'width:50%'}
        .bar{:style => "width:#{percent}%"}
      %small
        = number_to_percentage(percent, :precision => 0)
        profile completeness
  %tr
    %td
      %strong Profile Completion Tips:
      %ul.checks
        - completeness[:incomplete].each do |line|
          %li
            = line[:action]
            %small=  "+(#{number_to_percentage((line[:val].to_f/completeness[:total].to_f)*100, :precision => 0)})"


Version data entries

8 entries across 8 versions & 1 rubygems

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