summaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* Add DefaultMergeStyle option to repository (#14789)parnic2021-03-272-0/+42
| | | Fixes #12293
* fix org navbar (#15173)Jimmy Praet2021-03-261-1/+2
|
* Implement delete release attachments and update release attachments' name ↵Lunny Xiao2021-03-232-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | (#14130) * Implement delete release attachment * Add attachments on release edit page * Fix bug * Finish del release attachments * Fix frontend lint * Fix tests * Support edit release attachments * Added tests * Remove the unnecessary parameter isCreate from UpdateReleaseOrCreatReleaseFromTag * Rename UpdateReleaseOrCreatReleaseFromTag to UpdateRelease * Fix middle align
* Update JS dependencies (#15033)silverwind2021-03-2244-60/+60
| | | | | | | | | | | | | * Update JS dependencies - Update all JS dependencies - For octicons, rename trashcan to trash - For svgo, migrate to v2 api, output seems to have slightly changed but icons look the same - For stylelint, update config, fix custom property duplicates - For monaco, drop legacy Edge support - For eslint, enable new rules, fix new issues - For less-loader, remove deprecated import syntax * update svgo usage in generate-images and rebuild logo.svg with it
* Fix lock modal content rendering outside modal (#15095)silverwind2021-03-211-49/+46
| | | | | | | | * Fix lock modal content rendering outside modal The .content was not a child to .modal so was rendering outside. This is a recent regression but I'm not certain when it was introduced. * remove extraneous closing div
* Fix markdown rendering in milestone content (#15056)silverwind2021-03-202-4/+4
| | | | | | - Add missing markdown class for rendered markdown. - Increase font size of milestone name in list. Fixes: https://github.com/go-gitea/gitea/issues/15046
* Fix CJK fonts again and misc. font issues (#14575)Mike L2021-03-191-1/+1
| | | | | | | | | | | | | | | | | | | | | * Push system-ui further down the stack, fix #12966 * Fix Firefox showing U+300x in emoji font and more * Revert emoji font and fix long-standing Safari bug * Exclude Safari emoji fix above 1.25x zoom * Minor correctness/typo fix, affects only legacy platforms * Emoji consistency for monospace (e.g. EasyMDE) * Override paradigm; macOS/iOS-specific metric fix * Move whitespace fix to font-face * Handle metric calculation errors with Firefox * One last workaround for aliased fonts in Linux
* fix href on label in sidebar (#15022)Norwin2021-03-181-2/+2
|
* Create new issue from code (#14863)Roger Luo2021-03-172-2/+12
| | | | | | | | | | | | | | * Feat: add reference in new issue with permalink menu for code view. * Fix: recover index.js file. * Add comments and redo ci. * Fix code convention * Fix code. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de>
* org dashboard: move teamselector left (#14954)Norwin2021-03-171-52/+53
| | | Co-authored-by: zeripath <art27@cantab.net>
* fix: {show,link to} proper PR on kanban board ref (#15004)wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf2021-03-161-2/+2
| | | | | | | | | | | the issue was that PR references in kanban boards were being generated using `.ID` instead of `.Index`, which led to constructing incorrect links to possibly non-existent {PR,issue}s and following that to showing nonsensical values in the boards. kudos also go to @zeripath for pointing at the file to fix. Signed-off-by: wULLSnpAXbWZGYDYyhWTKKspEQoaYxXyhoisqHf <a_mirre@utb.cz> Co-authored-by: zeripath <art27@cantab.net>
* Ensure that new pull request button works on forked forks owned by owner of ↵zeripath2021-03-162-11/+32
| | | | | | | | the root (#14932) Prevent 404 on new pull request button on forked fork owned by the owner of the root repository. Also ensure that the names make sense. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Move repo.CloseIssuesViaCommitInAnyBranch to issue settings (#14965)Norwin2021-03-161-9/+9
|
* Re-enable listing of forks when logged out (#14992)Mike L2021-03-141-2/+2
| | | | | * Re-enable listing of forks when logged out * Further improvements on repo button logic
* Fix spacing of issue/pulls list review status icons (#14985)Mike L2021-03-131-2/+2
|
* fix release mail html template (#14975)Norwin2021-03-121-2/+4
| | | | | was missing an </a>
* 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 incorrect HTML escaping in swagger.json (#14957)zeripath2021-03-111-2/+2
| | | | | | | | | | | | | | | | | | * Prevent incorrect HTML escaping in swagger.json Fix #14706 Signed-off-by: Andrew Thornton <art27@cantab.net> * oops add it to the helper Signed-off-by: Andrew Thornton <art27@cantab.net> * try again Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add ui.explore settings to control view of explore pages (2) (#14094)zeripath2021-03-111-3/+5
| | | | | | | | | | | | | | | | | | | | | | | This is an alternative PR to #13687. Add `[ui.explore]` settings to allow restricting the explore pages to logged in users only and to disable the users explore page. The two proposed settings are: - `REQUIRE_SIGNIN_VIEW`: Only allows access to the explore pages if the user is signed in. Also restricts - `/api/v1/user/search` - `/api/v1/users/{username}` - `/api/v1/users/{username}/repos` - but does not restrict `/api/v1/users/{username}/heatmap` - `DISABLE_USERS_PAGE`: Disables the /explore/users page Fix #2908 Close #13687 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
* Minor UI fixes (#14926)Norwin2021-03-081-1/+1
| | | | | | | * disable fork button when not signed in * fix commit body styling on PR page * fixup! fix commit body styling on PR page
* Fix alignment of People and Teams right arrow on org homepage (#14924)zeripath2021-03-081-9/+9
| | | | | | | | Fix #14854 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* 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>
* Hide resync all ssh principals when using internal ssh server (#14904)Lunny Xiao2021-03-061-10/+10
| | | Co-authored-by: 6543 <6543@obermui.de>
* Fix a couple of issues with a feeds (#14897)zeripath2021-03-061-1/+2
| | | | | @CirnoT spotted a couple of issues with feeds on discord. This PR fixes both of these.
* Make manual merge autodetection optional and add manual merge as merge ↵a10121127962021-03-036-5/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Add missing repo.projects unit into swagger (#14876)zeripath2021-03-031-0/+3
| | | | | Fix #14875 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Organization removal confirmation using name not password (#14738)Paweł Bogusławski2021-03-011-4/+3
| | | | | | | | | | | | | | | | | | | | | | | * Organization removal confirmation using name not password Gitea is asking for user password to confirm organization removal so this operation cannot be done in systems with SSO authentication (where no user passwords are used). This mod changes the way gitea confirms organization removal - user must enter organization name (not user password) to confirm operation (similar to repository removal confirmation). Author-Change-Id: IB#1107219 * Translation removed Translation removed from PR - will be restored using Crowdin after pull got merged. Fixes: 95ddcdd8bd8097a952894556d42641d5ec269288 Related: https://github.com/go-gitea/gitea/pull/14738 Author-Change-Id: IB#1107219
* Repository transfer has to be confirmed, if user can not create repo for new ↵65432021-03-014-4/+57
| | | | | | | owner (#14792) * make repo as "pending transfer" if on transfer start doer has no right to create repo in new destination * if new pending transfer ocured, create UI & Mail notifications
* Create tag on ui (#13467)a10121127962021-02-282-3/+21
| | | | | | | | | | Support create single tag directly support create tag with message from create release ui Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
* add preview support for wiki editor when disable simpleMDE (#14757)a10121127962021-02-281-4/+6
| | | | Signed-off-by: a1012112796 <1012112796@qq.com>
* Fix issue/pul sidebar (#14826)65432021-02-281-192/+193
|
* Fix missleading sentence (#14829)65432021-02-281-1/+1
|
* Add Image Diff options in Pull Request Diff view (#14450)KN4CK3R2021-02-271-74/+104
| | | Implemented GitHub style image diff
* Fix dashboard UI bugs and more (#14767)Mike L2021-02-252-5/+5
| | | | | | | | This PR fixes a few UI bugs I spontaneously encountered: - Fixes emojis in repo titles getting head-cut and tail-cut in dashboard feed due to introduction of 1.25 em emojis at 1 em line-height, by simply using the original 1 3/7 em value of `semantic.css` - Fixes regression (too long repo names should be capped to 70%) in #13828 due to flex children not respecting properties like `overflow: hidden;`, and removes a block of dead style code - Follow-up to #14761, removes extraneous code for top navbar and correct right margin for Font Awesome - Fixes color emphasis inversion in arc-green theme for top right buttons (edit, delete) on commit view boxes
* Add EasyMDE support for release content editor (#14744)a10121127962021-02-221-2/+11
| | | | | * Add easyMDE(simpleMDE) support for release content editor Signed-off-by: a1012112796 <1012112796@qq.com>
* Fix double alert in oauth2 application edit view (#14764)a10121127962021-02-221-1/+0
| | | Signed-off-by: a1012112796 <1012112796@qq.com>
* fix link account ui (#14763)a10121127962021-02-211-12/+11
| | | | | Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add helper descriptions on new repo page (#14591)Bagas Sanjaya2021-02-211-1/+17
| | | | | | | | | | | | | | | | | | | | | * Add helper descriptions on new repo page Add helpers for: * repo description * .gitignore * license * README * default branch * signature trust model Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com> * Oops, rename trust_model_helper To match similar helper. trust_model_helper_intro -> trust_model_helper Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
* Export LFS & TimeTracking function status (#14753)65432021-02-201-0/+8
|
* stopwatch notif: check if timetracking is enabled (#14750)Norwin2021-02-201-0/+1
| | | fixes #14435
* Add UI to delete tracked times (#14100)Norwin2021-02-193-1/+24
| | | Co-authored-by: 6543 <6543@obermui.de>
* [API] Add Restricted Field to User (#14630)65432021-02-181-0/+9
| | | | | | | | | | | | * Expose Restricted field for User * Add Option to Change Restricted on User via adminEditUser API * Add test who change restricted & test if it changed it ... * make generate-swagger Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* #14699 Make branch names in PR description clickable (#14716)Jimmy Praet2021-02-181-6/+14
|
* Add Password Algorithm option to install page (#14701)zeripath2021-02-161-0/+14
| | | | | | | Add Password Algorithm option to install page Fix #14674 Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Fix svg spacing (#14638)Kyle D2021-02-141-1/+1
| | | | | * Add right margin to icons in menu items * Reduce padding on user profile submenu to fit in one line by default (english)
* Whitespace in commits (#14650)vnkmpf2021-02-131-10/+2
| | | | | | | | | * Add whitespace to commit view * Add whitespace to /compare/a...b * Move repeated whitespaceFlags to gitdiff * Add whitespace for wiki pages
* Show Gitea version in swagger (#14654)techknowlogick2021-02-121-1/+1
| | | | | Show Gitea version in swagger Co-authored-by: 6543 <6543@obermui.de>
* Fix truncated organization names (#14655)vnkmpf2021-02-129-54/+54
| | | | | | | * Fix truncated organization names Previous ellipsis implementation hid vertical overflow - image + descent line of letters. Organization visibility in select on dashboard was not always visible. This commit extracts classes which don't make collisions with other items on page.