my_forum 0.0.1.beta41 → 0.0.1.beta42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/README.rdoc +21 -0
 - data/app/views/my_forum/topics/_profile_popover.haml +41 -39
 - data/config/locales/ru.yml +1 -0
 - data/lib/my_forum/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 50b1db333d9e70df0dc190ede0c0ca5fd0c07b02
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 416c97311f6a6383395f7d845dcc6c27a1f1cb49
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 14eb269a8a94b0537d0ae1833a6d6baa639ce6953bd7ee65eae87e0911a65714938dc4af99344a27559fd60f2aafcd65a3308dde0646698dd758621600cad564
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 79aa72eb79131a5bef00bfe0696c437a727f274fa277c618f4019f26b1cc151b623479ed8ee7c36b8cc1c073bc07f95cf16f7392f31c96f8d7ed310fe747e0f3
         
     | 
    
        data/README.rdoc
    CHANGED
    
    | 
         @@ -7,6 +7,27 @@ This project rocks and uses MIT-LICENSE. 
     | 
|
| 
       7 
7 
     | 
    
         
             
            INSTALLATION
         
     | 
| 
       8 
8 
     | 
    
         
             
            rake my_forum:install:migrations
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            FAQ
         
     | 
| 
      
 12 
     | 
    
         
            +
            Q: how to customize urls
         
     | 
| 
      
 13 
     | 
    
         
            +
            A:
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            Create, for exmaple, my_forum.rb file in your initialize app folder (your_app/config/initializer/my_forum.rb) and rewrite
         
     | 
| 
      
 16 
     | 
    
         
            +
            methids like this -
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            MyForum::Forum.class_eval do
         
     | 
| 
      
 19 
     | 
    
         
            +
              def to_param
         
     | 
| 
      
 20 
     | 
    
         
            +
                "#{id}-something"
         
     | 
| 
      
 21 
     | 
    
         
            +
              end
         
     | 
| 
      
 22 
     | 
    
         
            +
            end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
       10 
31 
     | 
    
         
             
            For using existing User model, use somethink like this:
         
     | 
| 
       11 
32 
     | 
    
         | 
| 
       12 
33 
     | 
    
         
             
            Create config/initializers/my_forum.rb with next content:
         
     | 
| 
         @@ -1,45 +1,47 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            .profile-popover
         
     | 
| 
       2 
2 
     | 
    
         
             
              .row.col-md-12
         
     | 
| 
       3 
     | 
    
         
            -
                 
     | 
| 
       4 
     | 
    
         
            -
                  . 
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
                    .col-sm-6
         
     | 
| 
       8 
     | 
    
         
            -
                      = user.posts_count
         
     | 
| 
       9 
     | 
    
         
            -
                  .row
         
     | 
| 
       10 
     | 
    
         
            -
                    .col-sm-6
         
     | 
| 
       11 
     | 
    
         
            -
                      %strong= t('my_forum.profile_popover.registered_at')
         
     | 
| 
       12 
     | 
    
         
            -
                    .col-sm-6
         
     | 
| 
       13 
     | 
    
         
            -
                      = time(user.created_at)
         
     | 
| 
       14 
     | 
    
         
            -
                  .row
         
     | 
| 
       15 
     | 
    
         
            -
                    .col-sm-6
         
     | 
| 
       16 
     | 
    
         
            -
                      %strong= t('my_forum.profile_popover.status')
         
     | 
| 
       17 
     | 
    
         
            -
                    .col-sm-6
         
     | 
| 
       18 
     | 
    
         
            -
                      - is_online = is_online_user?(user.login)
         
     | 
| 
       19 
     | 
    
         
            -
                      = is_online ? t('my_forum.profile_popover.online') : t('my_forum.profile_popover.offline')
         
     | 
| 
       20 
     | 
    
         
            -
                  - unless is_online
         
     | 
| 
      
 3 
     | 
    
         
            +
                - unless current_user
         
     | 
| 
      
 4 
     | 
    
         
            +
                  %p.text-center=t('my_forum.profile_popover.only_for_registereg_users')
         
     | 
| 
      
 5 
     | 
    
         
            +
                - else
         
     | 
| 
      
 6 
     | 
    
         
            +
                  .row.col-md-6
         
     | 
| 
       21 
7 
     | 
    
         
             
                    .row
         
     | 
| 
       22 
8 
     | 
    
         
             
                      .col-sm-6
         
     | 
| 
       23 
     | 
    
         
            -
                        %strong= t('my_forum.profile_popover. 
     | 
| 
      
 9 
     | 
    
         
            +
                        %strong= t('my_forum.profile_popover.posts_count')
         
     | 
| 
       24 
10 
     | 
    
         
             
                      .col-sm-6
         
     | 
| 
       25 
     | 
    
         
            -
                        =  
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
       29 
     | 
    
         
            -
             
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
                    . 
     | 
| 
       32 
     | 
    
         
            -
                       
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
                       
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
                    . 
     | 
| 
       44 
     | 
    
         
            -
                      = user. 
     | 
| 
      
 11 
     | 
    
         
            +
                        = user.posts_count
         
     | 
| 
      
 12 
     | 
    
         
            +
                    .row
         
     | 
| 
      
 13 
     | 
    
         
            +
                      .col-sm-6
         
     | 
| 
      
 14 
     | 
    
         
            +
                        %strong= t('my_forum.profile_popover.registered_at')
         
     | 
| 
      
 15 
     | 
    
         
            +
                      .col-sm-6
         
     | 
| 
      
 16 
     | 
    
         
            +
                        = time(user.created_at)
         
     | 
| 
      
 17 
     | 
    
         
            +
                    .row
         
     | 
| 
      
 18 
     | 
    
         
            +
                      .col-sm-6
         
     | 
| 
      
 19 
     | 
    
         
            +
                        %strong= t('my_forum.profile_popover.status')
         
     | 
| 
      
 20 
     | 
    
         
            +
                      .col-sm-6
         
     | 
| 
      
 21 
     | 
    
         
            +
                        - is_online = is_online_user?(user.login)
         
     | 
| 
      
 22 
     | 
    
         
            +
                        = is_online ? t('my_forum.profile_popover.online') : t('my_forum.profile_popover.offline')
         
     | 
| 
      
 23 
     | 
    
         
            +
                    - unless is_online
         
     | 
| 
      
 24 
     | 
    
         
            +
                      .row
         
     | 
| 
      
 25 
     | 
    
         
            +
                        .col-sm-6
         
     | 
| 
      
 26 
     | 
    
         
            +
                          %strong= t('my_forum.profile_popover.last_online')
         
     | 
| 
      
 27 
     | 
    
         
            +
                        .col-sm-6
         
     | 
| 
      
 28 
     | 
    
         
            +
                          = time(user.updated_at)
         
     | 
| 
      
 29 
     | 
    
         
            +
                    .row.pm
         
     | 
| 
      
 30 
     | 
    
         
            +
                      .col-sm-12= link_to t('my_forum.profile_popover.write_pm'), new_private_message_path(to: user.login), class: 'btn btn-xs btn-warning'
         
     | 
| 
       45 
31 
     | 
    
         | 
| 
      
 32 
     | 
    
         
            +
                  .row.col-md-6.second_row
         
     | 
| 
      
 33 
     | 
    
         
            +
                    .row
         
     | 
| 
      
 34 
     | 
    
         
            +
                      .col-sm-5
         
     | 
| 
      
 35 
     | 
    
         
            +
                        %strong= t('my_forum.profile_popover.user_name')
         
     | 
| 
      
 36 
     | 
    
         
            +
                      .col-sm-7
         
     | 
| 
      
 37 
     | 
    
         
            +
                        = user.real_name || '-'
         
     | 
| 
      
 38 
     | 
    
         
            +
                    .row
         
     | 
| 
      
 39 
     | 
    
         
            +
                      .col-sm-5
         
     | 
| 
      
 40 
     | 
    
         
            +
                        %strong= t('my_forum.profile_popover.phone')
         
     | 
| 
      
 41 
     | 
    
         
            +
                      .col-sm-7
         
     | 
| 
      
 42 
     | 
    
         
            +
                        = user.phone || '-'
         
     | 
| 
      
 43 
     | 
    
         
            +
                    .row
         
     | 
| 
      
 44 
     | 
    
         
            +
                      .col-sm-5
         
     | 
| 
      
 45 
     | 
    
         
            +
                        %strong= t('my_forum.profile_popover.car_info')
         
     | 
| 
      
 46 
     | 
    
         
            +
                      .col-sm-7
         
     | 
| 
      
 47 
     | 
    
         
            +
                        = user.car_info || '-'
         
     | 
    
        data/config/locales/ru.yml
    CHANGED
    
    
    
        data/lib/my_forum/version.rb
    CHANGED