Sha256: 75e08a306b8cbedffddfb5b6bcc92fd65ac2b6b83bda50bb280777a4bde68d58

Contents?: true

Size: 789 Bytes

Versions: 1

Compression:

Stored size: 789 Bytes

Contents

- content_for(:header_title) { "Show handler: #{@handler.name}" }
- content_for(:header_right) { link_to "Update groups", update_groups_cache_handler_path(@handler.identifier), method: :post, class: "button", data: {confirm: "Are you sure?"} }

%table
  %thead
    %th Group
    %th Translations
    %th Finished
    %th Unfinished
  %tbody
    - @groups.includes(handler_translations: :translation_key).each do |group|
      %tr
        %td= link_to group.name, handler_group_path(@handler.identifier, group.identifier)
        %td= group.handler_translations.count
        %td= group.handler_translations.select(&:finished?).length
        %td= group.handler_translations.select(&:unfinished?).length
    - if @groups.empty?
      %tr
        %td.error{colspan: 4} No groups were found.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
awesome_translations-0.0.25 app/views/awesome_translations/handlers/show.html.haml