You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/templates/repo/issue/view_content
jladbrook 891391689a
Update button is shown when a Pull Request is marked WIP - Issue #21740 (#22683)
Fix #21740.

Updated the Pull Request template so that the 'Update branch by merge'
button is visible for WIP PR's. Making the behaviour match a non WIP-PR.

Previous WIP page with changes pending on the branch:


![image](https://user-images.githubusercontent.com/1656302/215738307-e68a2f92-5ff8-4f48-a541-35ca81d1f1a4.png)

Updated UI adding the update button:


![image](https://user-images.githubusercontent.com/1656302/215737872-e0e9d712-b7aa-4b90-b7ed-6a92a14fc182.png)

## Notes

* have not removed the **$canAutoMerge** variable from the pull.tmpl on
this
[line](36dc11869d/templates/repo/issue/view_content/pull.tmpl (L131))
- doesn't appear to be used elsewhere but wasn't sure
* In order to avoid duplicating code corresponding UI code was added to
a new tmpl file, ```update_branch_by_merge.tmpl``` and is called in two
places from ```pull.tmpl```.

---------

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 year ago
..
add_reaction.tmpl Make sure fmt catches all templates (#20979) 2 years ago
attachments.tmpl Remove fomantic image module (#21145) 2 years ago
comments.tmpl Mute all links in issue timeline (#22533) 1 year ago
comments_delete_time.tmpl Make sure fmt catches all templates (#20979) 2 years ago
context_menu.tmpl Change ID pattern of raw content container for issue (#21966) 2 years ago
pull.tmpl Update button is shown when a Pull Request is marked WIP - Issue #21740 (#22683) 1 year ago
pull_merge_instruction.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
reactions.tmpl Make sure fmt catches all templates (#20979) 2 years ago
reference_issue_dialog.tmpl Make sure fmt catches all templates (#20979) 2 years ago
sidebar.tmpl Fix missing title and filter in issue sidebar project menu (#22557) 1 year ago
update_branch_by_merge.tmpl Update button is shown when a Pull Request is marked WIP - Issue #21740 (#22683) 1 year ago