gitlab-org--gitlab-foss/app/views/projects
Rémy Coutable 52a583c120 Merge branch 'show_push_widget_in_upstream' into 'master'
Show last push widget in upstream after push to fork

## What does this MR do?

Show the last push widget in the upstream project when you push to a fork. 

## Are there points in the code the reviewer needs to double check?

In the view, I'm checking if `@project` in the first part of the conditional. I felt it was necessary in case `@project` wasn't an object in all cases. Will it ever not be there? Is this check necessary?

Should there be tests? I don't see existing ones for this. 

## Why was this MR needed?

I use the fork workflow everywhere and it has annoyed me for some time that the last push widget doesn't show up when viewing the upstream project. I'm almost never viewing the fork in GitLab so I want to be able to easily create a MR in any case. 

## Screenshots (if relevant)

**Widget in upstream repo:**

![Screen_Shot_2016-06-23_at_10.05.29_AM](/uploads/f823642e40cf059c3793db6cf00bba50/Screen_Shot_2016-06-23_at_10.05.29_AM.png)

**Widget in fork**:

![Screen_Shot_2016-06-23_at_10.05.25_AM](/uploads/1a976241186ec42cdc43c80bea0c856b/Screen_Shot_2016-06-23_at_10.05.25_AM.png)

**Widget on dashboard**:

![Screen_Shot_2016-06-23_at_10.06.07_AM](/uploads/084ac35f67735aec8042d9bc904255fe/Screen_Shot_2016-06-23_at_10.06.07_AM.png)


See merge request !4880
2016-07-07 05:22:35 +00:00
..
artifacts CI build page UI update 2016-06-10 12:07:51 +01:00
badges Tests fix for ref switcher 2016-06-18 21:49:20 +01:00
blame Remove header title from project pages 2016-05-26 17:58:44 +02:00
blob Remove unnecessary parens 2016-06-30 16:01:26 +03:00
branches Remove unnecessary parens 2016-06-30 16:01:26 +03:00
builds Fixed issue with build auto-refresh not working 2016-07-06 10:16:16 +01:00
buttons Updated project header 2016-07-04 16:34:53 +01:00
ci Rename commit_data in Pipeline to commit 2016-06-21 14:43:37 +02:00
commit Get rid of pluralize on stage names 2016-07-06 11:09:28 -05:00
commits Remove unnecessary parens 2016-06-30 16:01:26 +03:00
compare Remove unnecessary parens 2016-06-30 16:01:26 +03:00
container_registry Show proper image ID on registry page 2016-06-21 13:08:10 +02:00
deploy_keys Fixed project settings alert colors 2016-05-16 15:40:44 +01:00
deployments Create_deployment ability is need to create retry or rollback deployment 2016-06-15 12:56:02 +02:00
diffs Merge branch 'toggle-whitespace-button-for-compare-page' into 'master' 2016-06-15 22:48:39 +00:00
environments Remove unnecessary parens 2016-06-30 16:01:26 +03:00
find_file Remove header title from project pages 2016-05-26 17:58:44 +02:00
forks Moved private forks notice to projects-list so its above the pagination and inline with list 2016-06-10 16:55:13 +01:00
generic_commit_statuses Merge branch 'improve-pipeline-design' into 'master' 2016-05-25 20:50:26 +00:00
graphs Remove unnecessary parens 2016-06-30 16:01:26 +03:00
group_links
hooks Backported from EE shared form for web hooks 2016-06-03 11:04:27 +01:00
imports Refactor repository paths handling to allow multiple git mount points 2016-06-29 22:30:31 -04:00
issues Remove unnecessary parens 2016-06-30 16:01:26 +03:00
labels Remove unnecessary parens 2016-06-30 16:01:26 +03:00
merge_requests Remove unnecessary parens 2016-06-30 16:01:26 +03:00
milestones Remove unnecessary parens 2016-06-30 16:01:26 +03:00
network Remove unnecessary parens 2016-06-30 16:01:26 +03:00
notes Memoize the maximum access level for the author of notes 2016-06-29 06:26:00 -07:00
pipelines Get rid of pluralize on stage names 2016-07-06 11:09:28 -05:00
project_members Exclude requesters from Project#members, Group#members and User#members 2016-07-01 17:44:46 +02:00
protected_branches Fixed project settings alert colors 2016-05-16 15:40:44 +01:00
refs
releases Remove header title from project pages 2016-05-26 17:58:44 +02:00
repositories Added author to various Markdown calls in views 2016-05-26 17:14:06 +02:00
runners Update wordings according to: 2016-06-21 16:32:50 +08:00
services Hide description on mobile 2016-05-26 09:15:56 +01:00
snippets Remove header title from project pages 2016-05-26 17:58:44 +02:00
tags Allow everyone to sort tags, not only those who has access 2016-07-06 23:36:57 +06:00
tree Remove unnecessary parens 2016-06-30 16:01:26 +03:00
triggers Resolve some issues Jacob brought up. 2016-05-24 09:04:43 -06:00
variables Changed table border color 2016-05-16 10:26:11 +01:00
wikis Remove unnecessary parens 2016-06-30 16:01:26 +03:00
_activity.html.haml
_bitbucket_import_modal.html.haml
_builds_settings.html.haml Project settings UI update 2016-05-20 08:49:31 +01:00
_commit_button.html.haml
_errors.html.haml
_files.html.haml
_find_file_link.html.haml
_gitlab_import_modal.html.haml
_home_panel.html.haml Chnaged padding of project header nav 2016-07-05 09:19:01 +01:00
_last_commit.html.haml Updated project header 2016-07-04 16:34:53 +01:00
_last_push.html.haml Show last push widget in upstream after push to fork 2016-07-06 12:58:57 -05:00
_md_preview.html.haml Markdown toolbar inserts code blocks 2016-06-27 16:12:03 +01:00
_merge_request_settings.html.haml Fix merge requests project settings help link anchor. 2016-06-23 16:49:58 +01:00
_readme.html.haml Start builds redesign 2016-05-04 16:45:37 -05:00
_zen.html.haml Fixed typo in zen.scss and corresponding views 2016-05-04 14:04:13 -07:00
activity.html.haml Remove header title from project pages 2016-05-26 17:58:44 +02:00
edit.html.haml a few changes based on MR feedback 2016-06-17 15:47:00 +02:00
empty.html.haml Backend for a gitignores dropdown 2016-05-20 15:58:36 -05:00
new.html.haml Import from Github using Personal Access Tokens. 2016-06-30 18:48:17 +02:00
no_repo.html.haml
remove_fork.js.haml
show.atom.builder Remove event_to_atom helper 2016-05-23 12:37:40 -04:00
show.html.haml Updated spacing 2016-07-04 16:34:53 +01:00
transfer.js.haml
update.js.haml