Sha256: 4b8f76205a3d52ba9f2d0bd6aa07ceb9c3c376b59c54134360244065c5346500

Contents?: true

Size: 1.99 KB

Versions: 1

Compression:

Stored size: 1.99 KB

Contents

.table_mobile
  .row
    div = t :id, scope: [:account, :feedbacks, :pending_mobile_title]
    - @m_orders.each do |order|
      div = order.prefixed_id

  .row
    div = t :details, scope: [:account, :feedbacks, :pending_mobile_title]
    - @m_orders.each do |order|
      div
        = link_to order.topic, account_order_path(order)
        i
          => order.skill_title
          ' /
          = getCorrectServiceTitle(order.service_title)

  .row
    div = t :progress, scope: [:account, :feedbacks, :pending_mobile_title]
    - @m_orders.each do |order|
      div
        - if order.ready_to_upload?
          = t :total_progress, scope: [:account, :feedbacks, :text]
          = order.duration.format("%d %~d %h %~h")
        - else order.parsed_customer_due_date < Time.zone.now
          i = t :progress_failed, scope: [:account, :feedbacks, :text]

  .row
    div = t :translator_id, scope: [:account, :feedbacks, :pending_mobile_title]
    - @m_orders.each do |order|
      div = order.writer_id

  .row
    div = t :my, scope: [:account, :feedbacks, :pending_mobile_title]
    - @m_orders.each do |order|
      div
        = render partial: 'feedback_toggle', locals: {order: order}

  .row
    div = t :ranking, scope: [:account, :feedbacks, :pending_mobile_title]
    - @m_orders.each do |order|
      div
        - unless order.writer.blank?
          - rating = TranslationCms::Api::Feedback.round_rating order.writer[:poll_rating_customer]
          .rating_wrapper
            = rating_field 5, rating, class: 'rating', readonly: true
          = link_to t(:see_more, scope: [:account, :feedbacks, :text]), writer_account_feedbacks_path(id: order.id)
        - else
          a href=""
            = t :no_rank, scope: [:account, :feedbacks, :text]

.table_pagination_mobile
  = link_to_previous_page @m_orders, t(:prev, scope: [:account, :feedbacks, :button]), params: @m_params, class: 'button'
  = link_to_next_page @m_orders, t(:next, scope: [:account, :feedbacks, :button]), params: @m_params, class: 'button'

Version data entries

1 entries across 1 versions & 1 rubygems

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