Update no repository placeholder

This commit is contained in:
George Tsiolis 2018-03-23 17:00:27 +02:00
parent 3cd95700d4
commit 9339b5f474
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,5 @@
- breadcrumb_title "Details"
%h2
%i.fa.fa-warning
#{ _('No repository') }
@ -19,4 +21,4 @@
- if can? current_user, :remove_project, @project
.prepend-top-20
= link_to _('Remove project'), project_path(@project), data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn btn-remove pull-right"
= link_to _('Remove project'), project_path(@project), data: { confirm: remove_project_message(@project)}, method: :delete, class: "btn btn-inverted btn-remove pull-right"

View File

@ -0,0 +1,5 @@
---
title: Update no repository placeholder
merge_request: 17964
author: George Tsiolis
type: fixed

View File

@ -43,14 +43,14 @@ feature 'Profile > Account' do
update_username(new_username)
visit new_project_path
expect(current_path).to eq(new_project_path)
expect(find('.breadcrumbs-sub-title')).to have_content(project.path)
expect(find('.breadcrumbs-sub-title')).to have_content('Details')
end
scenario 'the old project path redirects to the new path' do
update_username(new_username)
visit old_project_path
expect(current_path).to eq(new_project_path)
expect(find('.breadcrumbs-sub-title')).to have_content(project.path)
expect(find('.breadcrumbs-sub-title')).to have_content('Details')
end
end
end