From 710d6096ba48e9c56f93305740296b99fa7e8d94 Mon Sep 17 00:00:00 2001 From: Wedge Date: Thu, 24 Mar 2016 22:44:30 +0300 Subject: [PATCH] Added link to github, some style changes --- app/views/projects/base/_submenu.html.slim | 5 +++++ app/views/projects/build_lists/show.html.slim | 2 +- config/locales/menu.en.yml | 1 + config/locales/menu.ru.yml | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/projects/base/_submenu.html.slim b/app/views/projects/base/_submenu.html.slim index 9ce642d7c..fe9ae0604 100644 --- a/app/views/projects/base/_submenu.html.slim +++ b/app/views/projects/base/_submenu.html.slim @@ -19,6 +19,11 @@ / Collect the nav links, forms, and other content for toggling #submenu-navbar-collapse.collapse.navbar-collapse ul.nav.navbar-nav.left-border + - if github_success + li + a href=github_base_url target="_blank" + i.fa.fa-github> + = t('project_menu.github') - if @project.is_package li class=('active' if contr == :build_lists) a href=project_build_lists_path(@project) diff --git a/app/views/projects/build_lists/show.html.slim b/app/views/projects/build_lists/show.html.slim index b9661252a..8abc9f21c 100644 --- a/app/views/projects/build_lists/show.html.slim +++ b/app/views/projects/build_lists/show.html.slim @@ -112,7 +112,7 @@ row[ ng-controller='BuildListController' td= t('activerecord.attributes.build_list.hostname') td= @build_list.hostname - tr ng-show = 'build_list.fail_reason' + tr.bg-danger ng-show = 'build_list.fail_reason' td= t('activerecord.attributes.build_list.fail_reason') td | {{build_list.fail_reason}} diff --git a/config/locales/menu.en.yml b/config/locales/menu.en.yml index f0c21a2e0..0b5c36ab9 100644 --- a/config/locales/menu.en.yml +++ b/config/locales/menu.en.yml @@ -18,6 +18,7 @@ en: tos: Terms Of Service support: Support project_menu: + github: To Github project: Project files: Files commits: Commits diff --git a/config/locales/menu.ru.yml b/config/locales/menu.ru.yml index 4df40d7a1..6d9264282 100644 --- a/config/locales/menu.ru.yml +++ b/config/locales/menu.ru.yml @@ -18,6 +18,7 @@ ru: tos: Условия использования support: Служба поддержки project_menu: + github: На Github project: Проект files: Файлы commits: Коммиты