summaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* Fix wording when user is unassigned from an issue (#5769)Lanre Adelowo2019-01-191-1/+5
| | | | Previous Gitea would display that the user had unassigned themselves even if the actor was not the user. Fixes #4418
* Refactor repo.isBare to repo.isEmpty #5629 (#5714)zeripath2019-01-175-8/+8
| | | | | | | | * Refactor repo.isBare to repo.isEmpty #5629 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove Sync call
* api: Add missing GET teams endpoints (#5382)Harshit Bansal2019-01-161-0/+52
| | | | | | | | | | | | | | | | | | | | * api: Add an endpoint to list a particular member of team. * models: Rename `GetUserTeams()` to `GetUserOrgTeams()` in `org_team` model. `GetUserTeams()` sounds a bit misnomer since it actually returns the teams that user belongs to in a given organization rather than all the teams across all the organization that the user has joined. * models: Add `GetUserTeams()`. Returns all the teams that a user belongs to. * api: Add an endpoint for GET '/user/teams'. A GET request to this endpoint lists all the teams that a user belongs to.
* Don't list an issue on its own dependency list UI. (#5658)Harshit Bansal2019-01-151-1/+1
| | | Fixes: #4684.
* Discord Oauth2 support (#4476)techknowlogick2019-01-131-0/+2
| | | | | | | | | | | | | | * add discord auth * add vendor for discord * fix syntax error * make fmt * update version of goth in use * update markbates/goth
* fix: use correct value for "MSpan Structures Obtained" #4742 (#5706)Julian2019-01-121-1/+1
| | | Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
* allow user fork repo even when as a guest.. This will prompt the user to ↵Lanre Adelowo2019-01-101-1/+1
| | | | login and if authentication was successful, the user will be redirected to fork the repo (#5690)
* Allow for user specific themes (#5668)Lanre Adelowo2019-01-093-5/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | * add migration and basic UI for changing a user's theme * update user themem * use right text on button * load theme based on users' selection * load theme based on users' selection in pwa too * update sample config * delete older theme loading * implement AfterLoad to set users' theme properly * set up default theme when creating a user. This uses the installation wide theme * use flash messages for error * set default theme when creating a user from the cli * fix @lunny review
* Translate home template to Czech (#5665)Jan Breuer2019-01-081-0/+37
| | | Signed-off-by: Jan Breuer <jan.breuer@jaybee.cz>
* Added URL mapping for Release attachments like on github.com (#1707)gdeverlant2019-01-061-9/+9
|
* Display branch name in delete branch confirmation modal. (#5654)Harshit Bansal2019-01-062-4/+4
| | | Fixes: #5630.
* Issue is not overdue when it is on the same date #5566 (#5568)Rodrigo Villablanca Vásquez2019-01-011-3/+3
| | | | | | | | | | * Due date time of issues and milestones is set to 23:59:59 * Add docs * make gen swagger * fix swagger gen
* Fix wrong text getting saved on editing second comment on an issue. (#5608)Harshit Bansal2018-12-312-2/+2
| | | | | | | | | | | | | | | | * comments: Fix an incorrent DOM element selection. This commit fixes a bug that was causing text from previously edited comment to get saved when two comments were edited one after other. Text area with id of `#content` isn't unique on the page but it was being treated as unique by the event handling code. Fixes: #5581. * templates: Remove `id` from textarea in commit edit form. An element is assigned an `id` only if it is unique for the whole page but in this case there can be multiple textarea so it should have one.
* LDAP via simple auth separate bind user and search base (#5055)Tony Homrich2018-12-272-4/+4
|
* Delete organization endpoint added (#5601)Shashvat Kedia2018-12-271-0/+24
| | | | | | | | | | * Delete organization endpoint added * Parameters added in comment * Typo fix * Newline character removed
* Add rebase with merge commit merge style (#3844) (#4052)Julian2018-12-272-1/+32
| | | Signed-off-by: Julian Tölle <julian.toelle97@gmail.com>
* Fix route in swagger (#5598)Shashvat Kedia2018-12-261-26/+26
|
* fix bug when a read perm user to edit his issue (#5516)Lunny Xiao2018-12-121-3/+0
|
* Approvals at Branch Protection (#5350)Jonas Franz2018-12-112-1/+48
| | | | | | | | | | | | | | | | | | | | | | * Add branch protection for approvals Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add required approvals Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add missing comments and fmt Signed-off-by: Jonas Franz <info@jonasfranz.software> * Add type = approval and group by reviewer_id to review * Prevent users from adding negative review limits * Add migration for approval whitelists Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Improve team members and repositories settings UI (#5457)Lunny Xiao2018-12-094-10/+15
| | | | | | | | | | | | * improve team members and repositories settings UI * use tab on team pages * add default description on team members and repos * add blank on numbers and texts * improve translation
* Allow link verification for services like Mastodon (#5481)koyu2018-12-061-1/+1
|
* word-break the WebHook url to prevent a ui-break (#5432)romankl2018-11-301-1/+1
| | | | | | | | | | | | | | | right now, the url is displayed with an anchor tag with no classes. If the url is really really long, the url will break out of the containing div and (depending on the url length) the browser shows the horizontal scrollbar. This pr makes use of the already existing css class `dont-break-out` which gives all the anchor the necessary properties to prevent the break. Another solution could be to introduce some classes like `text text-break-word`, but that would duplicate the `dont-break-out` class just for text elements that use the `text` class. fixes: https://github.com/go-gitea/gitea/issues/5416 Signed-off-by: Roman <romaaan.git@gmail.com>
* Remove the required class from optional ssh port in installation page (#5428)romankl2018-11-291-1/+1
| | | | | | | | | | the ssh port is optional during the installation process. The translations even mention that it is optional and can be blank. Right now it has the `required` class which creates the red `*` behind the field caption - used for required fields. If you leave it blank, the SSH option is disabled (not touched by this PR) Signed-off-by: Roman <romaaan.git@gmail.com>
* Milestone issues and pull requests (#5293)Lunny Xiao2018-11-292-1/+234
| | | | | | | | | | | | * add milestone issues and pulls page instead of redirecting issues page * add milestone when creating issue from milestone page * refactor to merge similiar codes as a new function issues * remove milestone info on milestone issues list * fix missing params
* Restrict permission check on repositories and fix some problems (#5314)Lunny Xiao2018-11-2819-49/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix units permission problems * fix some bugs and merge LoadUnits to repoAssignment * refactor permission struct and add some copyright heads * remove unused codes * fix routes units check * improve permission check * add unit tests for permission * fix typo * fix tests * fix some routes * fix api permission check * improve permission check * fix some permission check * fix tests * fix tests * improve some permission check * fix some permission check * refactor AccessLevel * fix bug * fix tests * fix tests * fix tests * fix AccessLevel * rename CanAccess * fix tests * fix comment * fix bug * add missing unit for test repos * fix bug * rename some functions * fix routes check
* Implement git refs API for listing references (branches, tags and other) (#5354)Lauris BH2018-11-271-0/+131
| | | | | | | | | | | | | | | | * Inital routes to git refs api * Git refs API implementation * Update swagger * Fix copyright * Make swagger happy add basic test * Fix test * Fix test again :)
* Create Progressive Web App (#4730)SohnyBohny2018-11-273-0/+120
| | | | | | | | | | | | | | | | | | | | | | * Create manifest and serviceworker * Create templates and add AppSubUrl * Add JSRenderer * fix ctx type * Add JSRenderer to static.go * Complete adding {{AppSubUrl}} * Add more fonts to urlsToCache * Add 512px and 192px icons * Hardcode font MD5 * Default theme doesn't have a specific CSS file
* Refactor heatmap to vue component (#5401)Lauris BH2018-11-274-27/+22
|
* show only opened milestones on issues page milestone filter (#5051)Lanre Adelowo2018-11-261-1/+1
| | | | | | | | | | | | | | * show only opened milestones on issues page milestone filter * update Godoc * update Godoc everywhere * update swagger * use false instead of 0 * Add seccond ordering by ID for milestones where no deadline is set
* Fix dependent issue searching when gitea is run in subpath (#5392)Lauris BH2018-11-251-1/+1
|
* Show review summary in pull requests (#5132)kolaente2018-11-221-0/+35
|
* add api for user to create org (#5268)Lunny Xiao2018-11-201-0/+36
| | | | | | | | | | | | | | | | * add api for user to create org * remove unused blank line on the swagger file end * fix create and add test * fix tests * fix routes of create org API * fix bug * add copyright heads
* Fix create team, update team missing units (#5188)Lunny Xiao2018-11-101-0/+48
|
* Fix file edit change preview functionality (#5300)Lauris BH2018-11-092-4/+2
|
* Keys API changes (#4960)zeripath2018-10-311-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add private information to the deploy keys api This commit adds more information to the deploy keys to allow for back reference in to the main keys list. It also adds information about the repository that the key is referring to. Signed-off-by: Andrew Thornton <art27@cantab.net> * Add private information to the user keys API This adjusts the keys API to give out private information to user keys if the current user is the owner or an admin. Signed-off-by: Andrew Thornton <art27@cantab.net> * Add ability to search keys by fingerprint This commit adds the functionality to search ssh-keys by fingerprint of the ssh-key. Deploy keys per repository can also be searched. There is no current clear API point to allow search of all deploy keys by fingerprint or keyID. Signed-off-by: Andrew Thornton <art27@cantab.net> * Add integration test
* Serve audio files using HTML5 audio tag (#5221)Jonas Bröms2018-10-301-0/+4
| | | | | | * Serve audio files using HTML5 audio tag * Correct copy paste error
* Fix emojis not showing in commit messages (#5168)James Anderson2018-10-291-1/+1
| | | | | Fixes #5150 Signed-off-by: James Anderson <james@jamesa.me>
* UX of link account (Step 1) (#5006)AJ ONeal2018-10-283-11/+49
| | | | | | | | | | | | | | * Show either sign up OR sign in * disambiguate fresh start from adding recovery options * use tabs to switch between account link flows * add active to tab body as well * changes as per discussion * handle specific error; fix missing err typo
* fix: Add secret to all webhook's payload where it has been missing (#5199)Peter Hoffmann2018-10-281-0/+27
| | | | | | | | | | * fix: Add secret to all webhook's payload where it has been missing affects webhooks for: * Delete * Fork * IssueComment * Release
* Fix to 3819 - Filtering issues by tags on main screen issues (#3824)Rodrigo Villablanca Vásquez2018-10-281-1/+1
| | | | | | | | | | * Fix to 3819 * Changes suggested * Empty line removed * Fix error: non-name opts.Labels on left side of :=
* Set heatmap color range configurable (#5165)Antoine GIRARD2018-10-241-1/+1
|
* User action heatmap (#5131)kolaente2018-10-235-0/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added basic heatmap data * Added extra case for sqlite * Built basic heatmap into user profile * Get contribution data from api & styling * Fixed lint & added extra group by statements for all database types * generated swagger spec * generated swagger spec * generated swagger spec * fixed swagger spec * fmt * Added tests * Added setting to enable/disable user heatmap * Added locale for loading text * Removed UseTiDB * Updated librejs & moment.js * Fixed import order * Fixed heatmap in postgresql * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: kolaente <konrad@kola-entertainments.de> * Added copyright header * Fixed a bug to show the heatmap for the actual user instead of the currently logged in * Added integration test for heatmaps * Added a heatmap on the dashboard * Fixed timestamp parsing * Hide heatmap on mobile * optimized postgresql group by query * Improved sqlite group by statement
* Add comment replies (#5104)Jonas Franz2018-10-224-9/+9
| | | | | | * Add comment replies * Replace reviewID with review.ID
* Fix Swagger JSON autogeneration issues. (#4845)zeripath2018-10-201-44/+177
| | | | | | | | | | | | | | | | | | | | | * Fix Swagger JSON. Remove unnecessary schema references for the forbidden and empty responses Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix swagger API for CreateAccessToken * Fix admin create org swagger * Fix swagger for adminCreateRepo * More swagger fixes Set int64 format for those which are int64 Some more form fixes * Fix swagger description of GET /repos/{owner}/{repo}/pulls
* Fix home page template regression (#5102)Tohka2018-10-181-1/+1
| | | | | | | Commit 7bb4d610e5cca7ad514e377d2b36254a4cfee5b9 tries to take the app_name from the locale, however, it is a user defined setting. This causes the app name to simply display as `app_name` instead of the correct value. templates/helper.go automatically injects the AppName variable into every template, so we can safely use that instead. Signed-off-by: Daniel Derzsi <daniel@tohka.us>
* Add support for search by uid (#4876)zeripath2018-10-181-0/+6
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Use APP_NAME on home page (#5048)mcnesium2018-10-181-1/+1
| | | Would it make sense to actually use the configured app name on the home page?
* Fix adding review comment in split view (#5038)Lauris BH2018-10-091-3/+2
|
* Remove links from topics in edit mode (#5026)SagePtr2018-10-061-1/+1
|
* Fix missing AppSubUrl in few more templates (#5021)SagePtr2018-10-052-2/+2
|