From 6157338a46c20f0b9cf72688aee7d7b07ccb4cc3 Mon Sep 17 00:00:00 2001 From: Wedge Date: Wed, 15 Jun 2016 21:22:50 +0300 Subject: [PATCH] Returned product build list page --- app/helpers/application_helper.rb | 2 ++ .../product_build_lists/index.html.slim | 34 ++++++++++--------- config/locales/menu.en.yml | 1 + config/locales/menu.ru.yml | 3 ++ 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f387efd5b..e71065c61 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -45,6 +45,8 @@ module ApplicationHelper 'fa-cube' when :build_lists 'fa-cogs' + when :product_build_lists + 'fa-product-hunt' when :groups 'fa-users' when :statistics diff --git a/app/views/platforms/product_build_lists/index.html.slim b/app/views/platforms/product_build_lists/index.html.slim index b269be6de..c785690af 100644 --- a/app/views/platforms/product_build_lists/index.html.slim +++ b/app/views/platforms/product_build_lists/index.html.slim @@ -2,20 +2,22 @@ - set_meta_tags og: { title: t('.title'), description: t('tour.meta_description') } - set_meta_tags twitter: { title: t('.title'), description: t('tour.meta_description') } -== render 'projects/build_lists/submenu' +/ == render 'projects/build_lists/submenu' -.container - == render 'filter' - .row - table.table.table-striped - thead - tr - th= t("activerecord.attributes.product_build_list.id") - th= t("activerecord.attributes.product_build_list.status") - th= t("activerecord.attributes.product_build_list.product") - th= t("layout.product_build_lists.action") - th= t("activerecord.attributes.product_build_list.notified_at") - tbody - == render partial: 'platforms/product_build_lists/product_build_list', collection: @product_build_lists - - = will_paginate @product_build_lists +.row.top-space + .col-md-10.col-md-offset-1 + == render 'filter' + rd-widget + rd-widget-header title=t('.title') + rd-widget-body class="no-padding" + table.table.table-striped + thead + tr + th= t("activerecord.attributes.product_build_list.id") + th= t("activerecord.attributes.product_build_list.status") + th= t("activerecord.attributes.product_build_list.product") + th= t("layout.product_build_lists.action") + tbody + == render partial: 'platforms/product_build_lists/product_build_list', collection: @product_build_lists + rd-widget-footer + = will_paginate @product_build_lists diff --git a/config/locales/menu.en.yml b/config/locales/menu.en.yml index 73e624dd8..d52bd2cb3 100644 --- a/config/locales/menu.en.yml +++ b/config/locales/menu.en.yml @@ -9,6 +9,7 @@ en: top_menu: projects: Projects build_lists: Build Lists + product_build_lists: Product Build Lists platforms: Platforms groups: Groups statistics: Statistics diff --git a/config/locales/menu.ru.yml b/config/locales/menu.ru.yml index 48c3af847..49d3ae876 100644 --- a/config/locales/menu.ru.yml +++ b/config/locales/menu.ru.yml @@ -4,6 +4,9 @@ ru: repositories: Репозитории personal_repository: Мой репозиторий top_menu: + projects: Проекты + build_lists: Билды + product_build_lists: ISO Билды platforms: Платформы groups: Группы statistics: Статистика