Sha256: 9bff97e6ba5d45622ea3dd7698079364468d1ee10d6e0f0170e550d18f01ef25

Contents?: true

Size: 1.31 KB

Versions: 4

Compression:

Stored size: 1.31 KB

Contents

.well.well-small.translation_box{ id: "translation_id_#{translation.id}", 'data-key-id' => translation.translation_key.id }
  
  %div.translation_info
    %span.pull-left
      = translation.value
    
    - if translation_admin?
      = link_to '×', translation_path(translation), method: :delete, data: { confirm: t('translation_center.actions.are_you_sure', :default => 'Are you sure?') }, class: 'close', remote: true
    %br
    %small.pull-right
      %em
        = t('.by')
        - if translation.user == current_user
          = t('.you')
        - else
          = translation.user.send(TranslationCenter::CONFIG['identifier_type'])
        = t('.on_date')
        = format_date(translation.created_at)
  %div.translation_voting
    - if translation_admin?
      = render 'translation_center/translations/accept_translation', translation: translation
    .votes_count.badge.badge-success.pull-right
      %span.count{ 'data-translation-id' => translation.id }
        = translation.votes.count
      = t('.votes')
    %a.pull-right{href: '#'}
      - voted = current_user.voted_on?(translation)
      %span.badge.pull-left.translations_vote{ class: "#{voted ? 'badge-success' : ''}", 'data-translation-id' => translation.id,  voted: voted.to_s}
        - if voted
          = t('.unvote')
        - else
          = t('.vote')


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
translation_center-1.4.1 app/views/translation_center/translations/_show.html.haml
translation_center-1.4.0 app/views/translation_center/translations/_show.html.haml
translation_center-1.3.1 app/views/translation_center/translations/_show.html.haml
translation_center-1.3.0 app/views/translation_center/translations/_show.html.haml