summaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* 1148: Take up the full width when viewing the diff in split view. (#8114)pmdematagoda2019-09-071-1/+1
| | | This replicates how the commit view works in split view.
* Move git diff codes from models to services/gitdiff (#7889)Lunny Xiao2019-09-051-1/+1
| | | | | | | | | | * move git diff codes from models to services/gitdiff * fix template * fix test * fix template
* Display description of 'make this repo private' as help text, not as tooltip ↵micw2019-09-051-1/+2
| | | | (#8097)
* Add API endpoint for accessing repo topics (#7963)David Svantesson2019-09-031-2/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create API endpoints for repo topics. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Generate swagger Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add documentation to functions Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Grammar fix Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix function comment Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Can't use FindTopics when looking for a single repo topic, as it doesnt use exact match Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add PUT ​/repos​/{owner}​/{repo}​/topics and remove GET ​/repos​/{owner}​/{repo}​/topics * Ignore if topic is sent twice in same request, refactoring. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix topic dropdown with api changes. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Style fix Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Update API documentation Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Better way to handle duplicate topics in slice Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make response element TopicName an array of strings, instead of using an array of TopicName Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test cases for API Repo Topics. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix format of tests Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix comments Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix unit tests after adding some more topics to the test fixture. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Update models/topic.go Limit multiple if else if ... Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Engine as first parameter in function Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Replace magic numbers with http status code constants. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix variable scope Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Test one read with login and one with token Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add some more tests Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Apply suggestions from code review Use empty struct for efficiency Co-Authored-By: Lauris BH <lauris@nix.lv> * Add test case to check access for user with write access Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Fix access, repo admin required to change topics Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Correct first test to be without token Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Any repo reader should be able to access topics. * No need for string pointer Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Add merged commit id on pull view when it's merged (#8062)Lunny Xiao2019-09-031-1/+6
|
* Add tooltip for the visibility checkbox in /repo/create (#8025)Mura Li2019-09-021-1/+1
| | | | | | | | | | * Add tooltip for the visibility checkbox in /repo/create * Change the tooltip wording * Update options/locale/locale_en-US.ini Co-Authored-By: Lauris BH <lauris@nix.lv>
* Add Ability for User to Customize Email Notification Frequency (#7813)Gary Kim2019-08-291-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Backend Logic for Toggling Email Notification This commit adds the backend logic for allowing users to enable or disable email notifications. The implementation ensures that only issue notification emails get disabled and important emails are still sent regardless of the setting. The UI to toggle this setting has not yet been implemented. * Add UI and complete user email notification enable This commit completes the functionality to allow users to disable their own email notifications. Signed-off-by: Gary Kim <gary@garykim.dev> * Add Third Option for Only Email on Mention Signed-off-by: Gary Kim <gary@garykim.dev> * Readd NOT NULL to new preference string Signed-off-by: Gary Kim <gary@garykim.dev> * Add Tests and Rewrite Comment Signed-off-by: Gary Kim <gary@garykim.dev> * Allow admin to set default email frequency Signed-off-by: Gary Kim <gary@garykim.dev> * Add new config option to docs Signed-off-by: Gary Kim <gary@garykim.dev> * Fix a few mistakes Signed-off-by: Gary Kim <gary@garykim.dev> * Only update required columns Signed-off-by: Gary Kim <gary@garykim.dev> * Simplify an error check Signed-off-by: Gary Kim <gary@garykim.dev> * Make email_notification_preference column in DB be VARCHAR(20) Signed-off-by: Gary Kim <gary@garykim.dev> * Handle errors Signed-off-by: Gary Kim <gary@garykim.dev> * Update models/migrations/v93.go Co-Authored-By: Lauris BH <lauris@nix.lv>
* Changed black to white for (read) number label on issue list (#8000)jaqra2019-08-281-1/+1
| | | | | | * Changed black color to blue for read number label on issue list page * Change color to white
* Update swagger to 0.20.1 (#8010)Antoine GIRARD2019-08-281-2/+35
| | | | | | * update swagger to 0.20.1 * fiw swagger version for validate
* keep blame view buttons sequence consistent with normal view when view a ↵Lunny Xiao2019-08-271-1/+1
| | | | file (#8007)
* Fix adding default Telegram webhook (#7972)Gary Kim2019-08-261-0/+3
| | | | | | | | | | | | * Fix adding default Telegram webhook Fixes #7932 Signed-off-by: Gary Kim <gary@garykim.dev> * Run goimports Signed-off-by: Gary Kim <gary@garykim.dev>
* Adds details about what tags can use the Git tags API (#7989)Richard Mahn2019-08-261-2/+2
|
* swagger/fix: []string are not enum by swagger definition (#7916)Antoine GIRARD2019-08-261-18/+18
| | | | | | | | * []string are not enum by swagger definition * apply suggestion of @guillep2k * re-generate swagger file
* API method to list all commits of a repository (#6408)Mike Schwörer2019-08-261-0/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added API endpoint ListAllCommits (/repos/{owner}/{repo}/git/commits) Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Fixed failing drone build Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Implemented requested changes (PR reviews) Signed-off-by: Mike Schwörer <mailport@mikescher.de> * gofmt Signed-off-by: Mike Schwörer <mailport@mikescher.de> * Changed api route from "/repos/{owner}/{repo}/git/commits" to "/repos/{owner}/{repo}/commits" * Removed unnecessary line * better error message when git repo is empty * make generate-swagger * fixed removed return * Update routers/api/v1/repo/commits.go Co-Authored-By: Lauris BH <lauris@nix.lv> * Update routers/api/v1/repo/commits.go Co-Authored-By: Lauris BH <lauris@nix.lv> * go fmt * Refactored common code into ToCommit() * made toCommit not exported * added check for userCache == nil
* [Branch View] show "New Pull Request" Button only if posible (#7977)65432019-08-263-24/+19
| | | | | | | | * add check Commits Ahead is gt 0 * code format to start drone-ci test again and formate code is also nice :)
* Include description in repository search. (#7942)David Svantesson2019-08-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add description in repository search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Refactor SearchRepositoryByName with a general function SearchRepository Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Allow to specify if description shall be included in API repo search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add new app.ini setting for whether to search within repo description. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Search keyword in description (if setting enabled) on: - Explore page - Organization profile page - User profile page - Admin repo page Do not search keyword in description on: - Any non-keyword search (not relevant) - Incremental search (uses API) Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Put parameters related to keyword directly after it Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test cases for including (and not including) repository description in search. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Rename test function from TestSearchRepositoryByName to TestSearchRepository. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Make setting SEARCH_REPO_DESCRIPTION default to true Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Document possibility to limit API Repo search to topics only. (#7957)David Svantesson2019-08-231-0/+6
| | | Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
* Revert RenderCommitMessageLink part of #7659 (#7923)Gary Kim2019-08-201-1/+1
| | | | | | | | | | | | | | RenderCommitMessageLink may have the potential for issues and is overall not very intuitive for the user in its current state. This commit will revert the usage of RenderCommitMessageLink that was added in #7659 to work on addressing some of those issues to and merge this feature again in a more polished state. Signed-off-by: Gary Kim <gary@garykim.dev>
* Provide links in commit summaries in commits table/view list (#7659)Gary Kim2019-08-202-4/+4
| | | | | | | | | | | | | | | | | | * Provide links in commit summaries in commits table/view list Signed-off-by: Gary Kim <gary@garykim.dev> * Check that hashes are commits before making them links Signed-off-by: Gary Kim <gary@garykim.dev> * Revert "Check that hashes are commits before making them links" This reverts commit a88564b8bc9872d4bf11062a4ebcb2f42b702200. * Add Commit Message Links to Files List Signed-off-by: Gary Kim <gary@garykim.dev>
* Evaluate emojis in commit messages in list view (#7906)Mario Lubenka2019-08-181-2/+2
| | | Signed-off-by: Mario Lubenka <mario.lubenka@googlemail.com>
* Extract the username and password from the mirror url (#7651)zeripath2019-08-161-1/+18
| | | | | | | | | | | | * Explode out mirror username and password * Update models/repo_mirror.go * Just roundtrip the password * remove unused declaration * Update templates/repo/settings/options.tmpl
* Detect delimiter in CSV rendering (#7869)Norwin2019-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | * detect csv delimiter in csv rendering fixes #7868 * make linter happy * fix failing testcase & use ints where possible * expose markup type to template previously all markup had the .markdown class, which is incorrect, as it applies markdown CSS & JS logic to CSV rendering * fix build (missing `make css`) * ignore quoted csv content for delimiter scoring also fix html generation
* Display ui time with customize time location (#7792)Lunny Xiao2019-08-151-1/+1
| | | | | | | | | | | | | | | | | | * display ui time with customize time location * fix lint * rename UILocation to DefaultUILocation * move time related functions to modules/timeutil * fix tests * fix tests * fix build * fix swagger
* gpg/bugfix: Use .ExpiredUnix.IsZero to display green color of forever valid ↵Antoine GIRARD2019-08-141-1/+1
| | | | | | | | gpg key (#7846) * Use .ExpiredUnix.IsZero for display green color of gpg key * remove useless parentheses
* Prevent Commit Status and Message From Overflowing On Branch Page (#7800)Gary Kim2019-08-091-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent Commit Status From Overflowing On Branch Page It is possible for the commit ci status on the branches page for a repository to become an ellipsis due to overflowing. This commit will fix that issue by using flex. Signed-off-by: Gary Kim <gary@garykim.dev> * Fix multiple overflowing issues in commits table It was possible that the commit message would overflow hiding the expand commits button and commit status. This change ensures that the correct elements overflow without hiding anything else. This change also reverts using flex in the commits list because it was causing issues in Blink based browsers. Signed-off-by: Gary Kim <gary@garykim.dev> * Remove unnecessary html element and fix indentation issues
* add pagination for admin api get orgs and fix only list public orgs bug (#7742)Lunny Xiao2019-08-041-0/+14
|
* Apply emoji on commit graph page (#7743)jaqra2019-08-041-1/+1
|
* org/members: display 2FA members states + optimize sql requests (#7621)Antoine GIRARD2019-08-021-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * org/members: display 2FA state * fix comment typo * lay down UserList bases * add basic test for previous methods * add comment for UserList type * add valid two-fa account * test new UserList methods * optimize MembersIsPublic by side loading info on GetMembers + fix integrations tests * respect fmt rules * use map for data * Optimize GetTwoFaStatus * rewrite by using existing sub func * Optimize IsUserOrgOwner * remove un-used code * tests: cover empty org + fix import order * tests: add ErrTeamNotExist path * tests: fix wrong expected result
* sugestion to use range .Branches (#7674)65432019-07-301-2/+2
| | | https://github.com/go-gitea/gitea/pull/7668/files/d57973a8041a741fdb7e77bc6ab18431bbf95ba4
* hide delete/restor button on archived repos (#7658)65432019-07-291-1/+1
| | | close issue #7653
* [Branch View] add download button (#7604)65432019-07-291-9/+27
| | | | | | | | | | | | | | | | | | | | | | | | | * add download-button info message * add overflow-visible css for table colum class * right colum is always there * add download button for default branch * add download button for all other branchs * resize table colum so two buttons fit in * code indent avter rebase * show commit divergence corect https://github.com/go-gitea/gitea/issues/7625 * changes because of merge master into ... * optimize if statement for protected branches * dont downloat a deleted branch - fix error 404
* [Branch View] Protection Symbole (delete dublicate) (#7624)65432019-07-271-5/+3
| | | | | | * delet protectin symbol on "action column" * code format
* [Branch View] Delete Table Header (#7622)65432019-07-261-14/+4
| | | | | | * add class trom table header to table body * remove table header
* [Branch View] icons to buttons (#7602)65432019-07-261-2/+2
| | | | | | | | * add restore-button info message * branch deltete undo icon to button * branch deltete icon to button
* Fix #7136: Add paging and extend API GetCommitStatuses (#7141)zeripath2019-07-251-0/+38
| | | | | | | | | | | | | | | | | | | | * Fix #7136: Add paging and extend API GetCommitStatuses * update swagger * Update routers/api/v1/repo/status.go Co-Authored-By: techknowlogick <matti@mdranta.net> * Update routers/api/v1/repo/status.go Co-Authored-By: techknowlogick <matti@mdranta.net> * Update routers/api/v1/repo/status.go Co-Authored-By: techknowlogick <matti@mdranta.net> * Apply suggestions from code review
* Swagger: Add information to API Token header (#7585)zeripath2019-07-241-0/+1
| | | * Add a description to the API Token header for swagger
* Fix file header overflow in file and blame views (#7562)silverwind2019-07-232-5/+5
|
* Make default branch name link to default branch (#7519)Gary Kim2019-07-181-1/+1
| | | | | | | | | | The default branch's name on the branches page for a repo was previously simply text and did not link anywhere. The name is now a link to the default branch just like the non-default branch names. Signed-off-by: Gary Kim <gary@garykim.dev>
* Add Extra Info to Branches Page (#7461)Gary Kim2019-07-171-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add branch protection information to branches page This change will add a tag on the ui that indicates whether a branch is protected on the repository branches page. Signed-off-by: Gary Kim <gary@garykim.dev> * Add last commit information to repo branches page This change adds the ID and commit message of the last commit on a branch to the branches page for repositories. Signed-off-by: Gary Kim <gary@garykim.dev> * Make branch page commit message truncate in css rather then template The truncating of commit messages shown under branches in the repository branches page has been moved to using css rather then the Go template as the template was causing some issues when the commit messaged had a link when rendered. This commit also makes the commit message paragraph itself use flex in order to make managing its elements easier. Signed-off-by: Gary Kim <gary@garykim.dev>
* Fixes #7474 - Handles all redirects for Web UI File CRUD (#7478)Richard Mahn2019-07-171-4/+4
| | | | | | | | | | | | | | | | * Fixes #7474 - Handles all redirects for Web UI File CRUD * Fixes lint errors * Typo fix * Adds unit tests for a few helper functions * Fixes per review * Fix for new branch creation and to unit test * Fixes the template used for errors on delete
* Fix typo in home.tmpl (#7452)vadim s. sabinich2019-07-151-1/+1
|
* create class for inlie positioned lists (#7393)Cherrg2019-07-121-17/+13
| | | | | | | replace org create alignment hack fix #6464 Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Diff: Fix indentation on unhighlighted code (#7435)silverwind2019-07-122-3/+3
| | | | There was a missing space before the `nohighlight` class which made the previous class concatenate wrongly as `wrapnohighlight` in the template.
* jQuery 3 (#7425)techknowlogick2019-07-122-2/+4
| | | | | | | | | | * jquery 3 * use most recent version of migrate plugin * Delete .DS_Store * update service worker in case anyone has old version of jquery cached
* Only show "New Pull Request" button if repo allows pulls (#7426)Gary Kim2019-07-111-1/+1
| | | Signed-off-by: Gary Kim <gary@garykim.dev>
* wiki history improvements (#7391)Cherrg2019-07-111-3/+13
| | | | | | | | | | | | | | | | | * add history comments to detect page delete Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix too much history entries - caused by --follow flag - if files with same contents exists Signed-off-by: Michael Gnehr <michael@gnehr.de> * style imprevements wiki - history - wrap long author names Signed-off-by: Michael Gnehr <michael@gnehr.de>
* ui fixes - compare view and archieved repo issues (#7345)Cherrg2019-07-083-7/+21
| | | | | | | | | | | | | | | | * add 'repo archived - comment/pull not possible' message affects #7304 Signed-off-by: Michael Gnehr <michael@gnehr.de> * add navbar to compare view Signed-off-by: Michael Gnehr <michael@gnehr.de> * remove wrong if else Signed-off-by: Michael Gnehr <michael@gnehr.de>
* wiki - page revisions list (#7369)Cherrg2019-07-082-0/+105
| | | | | | | | | | | | | | fix #7 * add wiki page revision list * mobile improvements * css improvements for long usernames * split renderWikiPage into 3 functions Signed-off-by: Michael Gnehr <michael@gnehr.de>
* Display original author and URL information when showing migrated ↵mrsdizzie2019-07-086-8/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | issues/comments (#7352) * Store original author info for migrated issues and comments Keep original author name for displaying in Gitea interface and also store original author user ID for potential future use in linking accounts from old location. * Add original_url for repo Store the original URL for a migrated repo Clean up migrations/tests * fix migration * fix golangci-lint * make 'make revive' happy also * Modify templates to use OriginalAuthor if set Use the original author name in templates if it is set rather than the user who migrated/currently owns the issues * formatting fixes * make generate-swagger * Use default avatar for imported comments * Remove no longer used IgnoreIssueAuthor option * Add OriginalAuthorID to swagger also
* ui - issue view - fix icon position (#7354)Cherrg2019-07-061-55/+53
| | | | | | | | | | | | | | | | | | | | | | | | | * issue view - fix icon position - move style from template to css - add bullets to: key, circle-slash, comment Signed-off-by: Michael Gnehr <michael@gnehr.de> * add border to symbols Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix circle slash position Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix top margin Signed-off-by: Michael Gnehr <michael@gnehr.de> * changed mixed space/tab indent to tabindent only Signed-off-by: Michael Gnehr <michael@gnehr.de>