Sha256: a832018bae6a97560b3b3fe90ddf5cbb636c9540ab77aba948a8d7cfafd53565

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

.feedbacks
  = render partial: "account/submenu"
  .cabinet_subnav
    .cabinet_subnav_active
      span = @group.title
    ul
      - FeedbacksPageType.enabled.each do |page_type|
        li class="#{'active' if @group.id == page_type.id}"
          = link_to_unless_current_span page_type.title, account_feedbacks_path(page_type: page_type.slug)

  .content ng-controller="FeedbacksController"
    - if @group.pending?
      .feedback_table_not_rated
        table
          thead
            tr
              td = t :project_id, scope: [:account, :feedbacks, :pending_table_title]
              td = t :service, scope: [:account, :feedbacks, :pending_table_title]
              td = t :translator, scope: [:account, :feedbacks, :pending_table_title]
              td = t :ranking, scope: [:account, :feedbacks, :pending_table_title]
              td = t :my, scope: [:account, :feedbacks, :pending_table_title]
          tbody
            = render partial: 'pending_order', as: :order, collection: @records
    - else
      .feedback_table
        table
          thead
            tr
              td = t :translator_id, scope: [:account, :feedbacks, :regular_table_title]
              td = t :proficiency, scope: [:account, :feedbacks, :regular_table_title]
              td = t :my, scope: [:account, :feedbacks, :regular_table_title]
              td = t :mutual, scope: [:account, :feedbacks, :regular_table_title]
          tbody
            = render partial: 'writer', collection: @records

    - if @records.empty?
      = render partial: 'account/no_records', locals: { theme: t("feedbacks_#{@group.code}", scope: [:account, :no_records]).try(:reverse_merge, css: 'not_found_feedbacks') }
    - else
      .table_navigation
        .table_items_show
          = perpage theme: 'cabinet_default'
        .table_pagination
          = paginate @records, theme: 'cabinet_default'

    = render partial: 'popups'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/views/account/feedbacks/index.html.slim