Sha256: 3b87207e46f149a083a94556854bfdf966f7a8737cc8ea481c20adc2f539de0f

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 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('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.email
        = t('.on')
        = I18n.localize(translation.created_at, format: '%b, %d %Y')
  %div.translation_voting
    %a{href: '#'}
      - voted = current_user.voted_for?(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')
    - if translation_admin?
      = render 'translation_center/translations/accept_translation', translation: translation
    .votes_count.badge.badge-success
      %span.count{ 'data-translation-id' => translation.id }
        = translation.votes.count
      = t('.votes')


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
translation_center-0.0.6 app/views/translation_center/translations/_show.html.haml
translation_center-0.0.5 app/views/translation_center/translations/_show.html.haml
translation_center-0.0.4 app/views/translation_center/translations/_show.html.haml
translation_center-0.0.3 app/views/translation_center/translations/_show.html.haml
translation_center-0.0.2 app/views/translation_center/translations/_show.html.haml
translation_center-0.0.1 app/views/translation_center/translations/_show.html.haml