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
badges Tests fix for ref switcher 2016-06-18 21:49:20 +01:00
blame
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
deployments
diffs
environments Remove unnecessary parens 2016-06-30 16:01:26 +03:00
find_file
forks
generic_commit_statuses
graphs Remove unnecessary parens 2016-06-30 16:01:26 +03:00
group_links
hooks
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
refs
releases
repositories
runners Update wordings according to: 2016-06-21 16:32:50 +08:00
services
snippets
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
variables
wikis Remove unnecessary parens 2016-06-30 16:01:26 +03:00
_activity.html.haml
_bitbucket_import_modal.html.haml
_builds_settings.html.haml
_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
_zen.html.haml
activity.html.haml
edit.html.haml
empty.html.haml
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
show.html.haml Updated spacing 2016-07-04 16:34:53 +01:00
transfer.js.haml
update.js.haml