summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
Commit message (Collapse)AuthorAgeFilesLines
* check if original author is set (#14971)Norwin2021-03-121-1/+1
| | | Co-authored-by: zeripath <art27@cantab.net>
* Fix excluding more than two labels on issues list (#14962)zeripath2021-03-131-1/+1
| | | | | | | | | | | | | | | | | | | | * Fix excluding more than two labels on issues list Fix #14840 Signed-off-by: Andrew Thornton <art27@cantab.net> * refactor DRY * fix multiple-label filter on milestone issuelist * Apply suggestions from code review Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com> * Update web_src/js/index.js Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com>
* don't show project cog in issue sidebar if no permission (#14953)Norwin2021-03-121-1/+3
|
* Prevent panic when empty MilestoneID in repo/issue/list (#14911)zeripath2021-03-071-1/+1
| | | | | | | | | This PR adds a simple check to only test the MilestoneID if it is not empty. Fix #14906 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Make manual merge autodetection optional and add manual merge as merge ↵a10121127962021-03-033-3/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | method (#12543) * Make auto check manual merge as a chooseable mod and add manual merge way on ui as title, Before this pr, we use same way with GH to check manually merge. It good, but in some special cases, misjudgments can occur. and it's hard to fix this bug. So I add option to allow repo manager block "auto check manual merge" function, Then it will have same style like gitlab(allow empty pr). and to compensate for not being able to detect THE PR merge automatically, I added a manual approach. Signed-off-by: a1012112796 <1012112796@qq.com> * make swager * api support * ping ci * fix TestPullCreate_EmptyChangesWithCommits * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * Apply review suggestions and add test * Apply suggestions from code review Co-authored-by: zeripath <art27@cantab.net> * fix build * test error message * make fmt * Fix indentation issues identified by @silverwind Co-authored-by: silverwind <me@silverwind.io> * Fix tests and make manually merged disabled error on API the same Signed-off-by: Andrew Thornton <art27@cantab.net> * a small nit * fix wrong commit id error * fix bug * simple test * fix test Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix issue/pul sidebar (#14826)65432021-02-281-192/+193
|
* Add UI to delete tracked times (#14100)Norwin2021-02-193-1/+24
| | | Co-authored-by: 6543 <6543@obermui.de>
* #14699 Make branch names in PR description clickable (#14716)Jimmy Praet2021-02-181-6/+14
|
* Add dismiss review feature (#12674)a10121127962021-02-112-4/+74
| | | | | | | | | | | | | | | * Add dismiss review feature refs: https://github.blog/2016-10-12-dismissing-reviews-on-pull-requests/ https://developer.github.com/v3/pulls/reviews/#dismiss-a-review-for-a-pull-request * change modal ui and error message * Add unDismissReview api Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Use OldRef instead of CommitSHA for DeleteBranch comments (#14604)zeripath2021-02-081-1/+1
| | | | | | | | Fix #14545 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix bug that username missed on issue list assignee filter (#14481)Lunny Xiao2021-01-271-2/+2
| | | Co-authored-by: 6543 <6543@obermui.de>
* Don't show "Reference in new issue" when issues unit is globally disabled ↵Jimmy Praet2021-01-231-1/+3
| | | | | (#14437) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Display current stopwatch in navbar (#14122)Norwin2021-01-211-1/+1
| | | | | | | | | | | | | | | | | * add notification about running stopwatch to header * serialize seconds, duration in stopwatches api * ajax update stopwatch i should get my testenv working locally... * new variant: hover dialog * noscript compatibility * js: live-update stopwatch time * js live update robustness
* Comment - Reference in new issue (#14366)KN4CK3R2021-01-213-6/+41
| | | | | | | | | | | | | | | | | | * Implemented "Reference in new issue" * Fixed menu style on "pulls/x/files" because "button" has a style. * Added context menu for PR file comments. * Use only a single modal for every comment. * Use current repository as default. Added search filter. * Added suggested changes. * Fixed assignment. Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Align dropdown right (#14406)Kyle D2021-01-202-2/+2
|
* Removed invalid form tag (#14391)KN4CK3R2021-01-191-12/+9
| | | introduced by #5073
* Add edit, delete and reaction support to code review comments on issue page ↵Lauris BH2021-01-172-19/+50
| | | | (#14339)
* Add review requested filter on pull request overview (#13701)Jimmy Praet2021-01-172-0/+4
| | | | | | | | | | | | | * Add review requested filter on pull request overview #13682 fix formatting * add review_requested filter to /repos/issues/search API endpoint * only Approve and Reject status should supersede Request status * add support for team reviews * refactor: remove duplication of issue filtering conditions
* restrict query selector to edit form (#14307)Norwin2021-01-151-1/+1
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Do not reload page after adding comments in Pull Request reviews (#13877)Jimmy Praet2021-01-081-1/+1
| | | | | | | | | | | | | | | | Fixed #8861 * use ajax on PR review page * handle review comments * extract duplicate code FetchCodeCommentsByLine was initially more or less copied from fetchCodeCommentsByReview. Now they both use a common findCodeComments function instead * use the Engine that was passed into the method Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* fix branch selector on new issue page (#14194)a10121127962020-12-311-2/+2
| | | | | | | fix #14185 Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Improve label and text wrapping (#14113)silverwind2020-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | * Improve label wrapping - Adjust issue list styles so labels can wrap on the same line as the text. This relies on `display: inline` with the HTML whitespace being used as the separator. - Add global word-break: break-word. This should generally avoid text overflows in various places. * add whitespace to history labels * use overflow-wrap * restore word-break rules * use correct pre * use better selector for middle align Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix merge button dropdown triangle alignment (#14041)silverwind2020-12-181-1/+1
| | | | | | | | | https://github.com/go-gitea/gitea/pull/14028 had improved dropdown triangle display for buttons with text but had regressed it for buttons without. Fix this by adding a class to prevent horizontal margin adjustment. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Diff and code review refactors and improvements (#13922)silverwind2020-12-171-7/+4
| | | | | | | | | | | | | | | | * Diff CSS refactors and misc tweaks - Simplify Diff CSS styling - Add color variables for diff - Fix vertical centering of inline comment button - Slightly adjust text colors, e.g. in comment header * Code review improvments * selector tweak * fix diff issues, add inactive bg color Co-authored-by: 6543 <6543@obermui.de>
* Hide command line instructions when merge form is visible (#13956)Cirno the Strongest2020-12-151-2/+2
| | | | | | | * Hide commandline instructions when merge form is visible * As per @silverwind Co-authored-by: zeripath <art27@cantab.net>
* add thumbnail preview section to issue attachments (#13826)bobemoe2020-12-133-30/+47
| | | | | | | | | | | | | | | | * add thumbnail preview section to attachments * dont show thumbnail if the image is already shown inline * update router to pass the `content` to the attachemnts template * limit attachment preview height to 150px (same as width) * remove unused css (referance removed in https://github.com/go-gitea/gitea/pull/11141/files#diff-9faae32445ed9673de2830c9fc35e93f44487f0a0068202988adaf00a5bac850L66 ) * dont show divider after edit if no attachemnts Co-authored-by: James <inbox.dev@jhodges.co.uk> Co-authored-by: 6543 <6543@obermui.de>
* Remove JS globals related to timetracking and due date (#13921)silverwind2020-12-101-9/+9
| | | Refactor to avoid these globals. Should work exactly as before.
* Add pull request manually merge instruction (#13840)Lunny Xiao2020-12-101-36/+53
| | | | | | | | | | | | | | | | | | | | | | | * add pull request command line instructions * Add pull request manually merge instuction * Fix styles * Fix lint * Move inline style to class file * add space between merge button and hint text * Add sentence end charcter * Change the language file * adjust secondary bg * further adjustment Co-authored-by: silverwind <me@silverwind.io>
* Replace more icons with SVG, repo search tweaks (#13860)silverwind2020-12-091-2/+2
| | | | | | | | | | | | | | | | * Replace more icons with SVG - Replace remaining icons on admin page with SVG - Fix vertical menu background on arc-green - Minor improvments to frontpage repo search - More icon replacements here and there * fix integration * whitespace tweak * add comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix issue participants (#13893)silverwind2020-12-071-10/+8
| | | | | | | | | | | | | | | * Fix issue participants * use list class for margin * remove wrapper and don't render on zero participants * keep whitespace * remove participants class * add some margin for timetracking stuff Co-authored-by: 6543 <6543@obermui.de>
* Style and template tweaks (#13828)silverwind2020-12-044-4/+4
| | | | | | | | | | | | | | | * Style and template tweaks - Get red and green buttons on arc green closer to base theme - EasyMDE adjustments, toolbar and focus border - Fix header on 404 repo page - Tweaks to frontpage search, add 'Create Repo' button - Fix misaligned box headers - Fix pagination on arc-green - Fix background and footer on explore and repo search * better fix for header button alignment * add label hover for reactions
* Direct avatar rendering (#13649)silverwind2020-12-037-73/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Direct avatar rendering This adds new template helpers for avatar rendering which output image elements with direct links to avatars which makes them cacheable by the browsers. This should be a major performance improvment for pages with many avatars. * fix avatars of other user's profile pages * fix top border on user avatar name * uncircle avatars * remove old incomplete avatar selector * use title attribute for name and add it back on blame * minor refactor * tweak comments * fix url path join and adjust test to new result * dedupe functions
* Clickable links in pull request (and issue) titles (#13695)Jimmy Praet2020-12-031-1/+1
| | | | | | | | | * clickable links in pull request (and issue) titles #13658 reuses the existing logic to render clickable links in commit messages * dedicated RenderIssueTitle function applied patch from @mrsdizzie
* Add class to page content to unify top margin (#13766)silverwind2020-11-308-8/+8
| | | | | | | | | | | | | | | | | | | * Add class to page content to unify top margin Previously pages would individually set this margin but some didn't so content would stick to the header without any space. Resolve this by adding a new class that is added on all pages. The only place where we remove this margin again is on the pages with menu or wrapper in the header. * fix admin notices * fix team pages * fix loading segment on gitgraph for arc-green * fix last missing case Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Markdown and Repo header tweaks (#13744)silverwind2020-11-294-45/+19
| | | | | | | | | | | | | | | | * Markdown and Repo header tweaks - Use CSS vars for all markdown colors - Tweak repo header, removing double borders and adjust sizes - Use menu instead of buttons for issue open/close switcher - Add emoji inversion for select emoji glyphs in arc-green - Use border over box-shadow for all buttons - Add spacing element to login form without openid * repo settings navbar fix * use shared template in more places and adjust dashboard * fix remaining open/close combos
* Dropdowns, Labels fixes and more CSS tweaks (#13733)silverwind2020-11-294-110/+137
| | | | | | | | | | | | | | | | | | * Dropdowns and Labels fixes - Rework dropdown, menu and label styles - Improve issue sidebar milestone and label sections - Fix archived repo and private org badge - Move more colors to CSS vars - Move issue number to end of title on issue page * more dropdown fixes * fix basic blue labels - fixes #13731 * improve class setting on svg Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix label styles affecting shabox (#13734)silverwind2020-11-281-6/+8
| | | | | | | | | | | | | | * Fix label styles affecting shabox Add common parent .labels-list to issue labels lists to prevent affecting other elements. Fixes: https://github.com/go-gitea/gitea/issues/13704 * Update templates/shared/issuelist.tmpl * Update templates/shared/issuelist.tmpl Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Add block on official review requests branch protection (#13705)a10121127962020-11-281-2/+13
| | | | | Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* ui: show 'owner' tag for real owner (#13689)a10121127962020-11-281-1/+1
| | | | | | | | | | | | | | | | | * ui: show 'owner' tag for real owner Signed-off-by: a1012112796 <1012112796@qq.com> * Update custom/conf/app.example.ini * simplify logic fix logic fix a small bug about original author * remove system manager tag Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
* Use trashcan icon for remove review request (#13722)Jimmy Praet2020-11-272-2/+2
|
* CSS navbar and color tweaks (#13609)silverwind2020-11-261-4/+4
| | | | | | | | | | | | | | | | | | | * CSS and color tweaks - Unify navbar-style menus - Fix admin bar overlapping menu bar - Fixes file edit comment box - Fix double border on review box - Fix review timeline icons * Many fixes to new-menu and navbar layout enhancements * misc settings fixes * navbar tweak * fix pr tabs * branch tag and arc color tweaks
* Issue and Pulls lists rework (#13594)silverwind2020-11-252-221/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Issue and Pulls lists rework Reorganized and restyled the issue and pull request lists. * color and layout tweaks * use new issue list on dashboard as well * move pagination into template * misc tweaks * fix label hover * fix milestone list * fix discrepancies between issue and milestone list, add new 'merge' helper * fmt * simplify merge helper * remove whitespace * fix startIndex * further simplify dict merging * rename helper to 'mergeinto' for clarity * allow bottom-row to wrap Co-authored-by: Lauris BH <lauris@nix.lv>
* Don't show a dropdown menu when only 1 merge option is available (#13660) ↵Jimmy Praet2020-11-221-16/+18
| | | | (#13670)
* Fix issue/pull request list assignee filter (#13647)Karl Heinz Marbaise2020-11-192-2/+2
| | | | | | | | | | | | | | * Fixes #13641 - Filtering in Pull Request kept all the time. - The URL contains all the time the assignee in cases where once a type has been selected. Signed-off-by: Karl Heinz Marbaise <kama@soebes.de> * Followup Fixes #13641 - Filtering in Pull Request kept all the time. - The URL contains all the time the assignee in cases where once a type has been selected. - The same behaviour was observed issues viewed via milestones. Signed-off-by: Karl Heinz Marbaise <kama@soebes.de>
* Fix label display on new issues (#13590)silverwind2020-11-174-32/+20
| | | | | | | | | | | | | | | | | | * Fix label display on new issues PR #13570 broke label rendering for new issues and pulls because missed the fact that the code was relying on the DOM elements being toggled by JavaScript. On top of that, the label rendering for new issues and pull was using an outdated template which I consolidated in a new shared template. * remove wrapper element and style tweaks * style tweaks * use shared template for whole label list Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* CSS color variables, less bold font weight and more (#13567)silverwind2020-11-152-22/+22
| | | | | | | | | | | | | | | | | * CSS color variables, less bold font weight - Define color variables for fully saturated colors and apply them where it made sense - Add background color helper classes - Globally reduce bold font weight from 700 to 500 - Remove border from timeline icons - Unify dropzone styling - Various border style consolidations * attempt to fix test * another attempt at tests * fix contains
* Fix issue label rendering (#13570)silverwind2020-11-152-10/+19
| | | | | | | | | | | * Fix issue label rendering Prevent rendering of inactive labels and make them wrap inline. Fixes: https://github.com/go-gitea/gitea/issues/13566 * also don't render the placeholder Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix issue label spacing and hover (#13553)silverwind2020-11-131-2/+2
| | | | Fixes: https://github.com/go-gitea/gitea/issues/13545 Regressed by: https://github.com/go-gitea/gitea/pull/13458
* Lazy-load issue reviewers and assignees avatars (#13526)silverwind2020-11-121-10/+14
| | | | | | | The avatars inside the dropdowns were previously fetched every time a Pull Request was opened resulting in potential unnecessary downloads. This lazy-loads through the newish loading=lazy attribute. Also did a few minor adjustments on the file.
* Fix tooltips and issue dependency styles (#13458)silverwind2020-11-101-30/+34
| | | | | | | | | - Convert all tooltips to JS-based ones, fixing overflow issues - Restyle issue dependencies/dependants - Move popup styles to base style - CSS Helper tweaks - Unify pseudo element selectors and lint for it Fixes: https://github.com/go-gitea/gitea/issues/13400