• Rémy Coutable's avatar
    Merge branch 'show_push_widget_in_upstream' into 'master' · 52a583c1
    Rémy Coutable authored
    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
    52a583c1
To find the state of this project's repository at the time of any of these versions, check out the tags.
CHANGELOG 164 KB