diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2018-03-23 17:00:27 +0200 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2018-03-26 13:05:32 +0300 |
commit | 9339b5f4742148d57fadebbac929fdbe4bb0fba7 (patch) | |
tree | c766a143600120dd27bec54963e8de54c0c4abb4 | |
parent | 3cd95700d4ba4aa48c1d551e6982e9390594a1de (diff) | |
download | gitlab-ce-9339b5f4742148d57fadebbac929fdbe4bb0fba7.tar.gz |
Update no repository placeholder
-rw-r--r-- | app/views/projects/no_repo.html.haml | 4 | ||||
-rw-r--r-- | changelogs/unreleased/fix-projects-no-repository-placeholder.yml | 5 | ||||
-rw-r--r-- | spec/features/profiles/account_spec.rb | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/app/views/projects/no_repo.html.haml b/app/views/projects/no_repo.html.haml index ba5845877e5..0716569eb3a 100644 --- a/app/views/projects/no_repo.html.haml +++ b/app/views/projects/no_repo.html.haml @@ -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" diff --git a/changelogs/unreleased/fix-projects-no-repository-placeholder.yml b/changelogs/unreleased/fix-projects-no-repository-placeholder.yml new file mode 100644 index 00000000000..3d11c897020 --- /dev/null +++ b/changelogs/unreleased/fix-projects-no-repository-placeholder.yml @@ -0,0 +1,5 @@ +--- +title: Update no repository placeholder +merge_request: 17964 +author: George Tsiolis +type: fixed diff --git a/spec/features/profiles/account_spec.rb b/spec/features/profiles/account_spec.rb index 171e061e60e..e8eb0d17ca4 100644 --- a/spec/features/profiles/account_spec.rb +++ b/spec/features/profiles/account_spec.rb @@ -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 |