aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/view.go
Commit message (Collapse)AuthorAgeFilesLines
* Improve LFS tests + fix lfs url refs + keep path upper/lowercase in db. (#3092)Antoine GIRARD2017-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Add failing test * Fix urls * Improve url in tests * improve testing * Remove debug code * Add deps * LFS corner-case : Search on lower but store with case * Temporary comment of blocking action * fix hooks * Use temporary repo for git client test * Use userPassword in place of hard-coded password
* Memory usage improvements (#3013)Duncan Ogilvie2017-11-291-10/+19
| | | | | | | | | | * govendor update code.gitea.io/git Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com> * Greatly improve memory usage Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Make URL scheme unambiguous (#2408)Ethan Koenig2017-10-301-2/+2
| | | | | | | | | | * Make URL scheme unambiguous Redirect old routes to new routes * Fix redirects to new URL scheme, and update template * Fix branches/_new endpoints, and update integration test
* Render plain text README.txt monospaced (#2721)Jonas Franz2017-10-171-2/+3
| | | Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix plain readme didn't render correctly on repo home page (#2705)Lunny Xiao2017-10-161-12/+7
| | | | | | | | * fix plain readme didn't render correctly on repo home page * fix missing render * remove unused template variables
* Fix implementation of repo Home func (#2601)Morlinest2017-10-011-8/+13
| | | | | | * Fix implementation of repo Home func * Make fixture changes for testing
* fix readme view bug (#2566)Lunny Xiao2017-09-211-1/+3
|
* Add init support of orgmode document type on file view and readme (#2525)Lunny Xiao2017-09-211-6/+4
| | | | | | | | | | | | | | * add init support of orgmode document type on file view and readme * fix imports * fix imports and readmeExist * fix imports order * fix format * remove unnecessary convert
* Sort repository tree entries in natural way (#2506)Lauris BH2017-09-191-1/+1
| | | | | | | | | | | | * Sort repository tree entries in natural way * Fix sort for different length strings with first parts equal * Improve test case * Refactor return statements * Update gitea/git dependency
* Restructure markup & markdown to prepare for multiple markup language… (#2411)Lunny Xiao2017-09-161-3/+2
| | | | | | | | | | * restructure markup & markdown to prepare for multiple markup languages support * adjust some functions between markdown and markup * fix tests * improve the comments
* Display commit status on landing page of repo (#1784)Rémy Boulanouar2017-09-141-0/+8
| | | | | | | | * Display commit status on landing page of repo * improve last status of commits and add link to ci * fix last commit status since the order of ids are desc
* Support CRLF when splitting code lines for display (#1862)silverwind2017-06-101-1/+5
| | | | | | | | | | | | * Support CRLF when splitting code lines for display * refactor, fix mixed match * fmt * split on both LF and CRLF, use raw literals in regexes * simplify
* feat: add check misspelling (#1877)Bo-Yi Wu2017-06-051-1/+1
|
* Add units to team (#947)Lunny Xiao2017-05-181-0/+19
| | | | | | | | | | | | | | | | | | * add units to team * fix lint * finish team setting backend * finished permission controll on routes * fix import blank line * add unit check on ssh/http pull and push and fix test failed * fix fixtures data * remove unused code
* Remove sha1 hash display in repository table and add latest commit GPG check ↵Lauris BH2017-05-051-0/+1
| | | | (#1678)
* fix multiple readme file rendering and fix #1657 (#1658)Lunny Xiao2017-05-021-3/+9
| | | | | | * fix multiple readme file rendering and fix #1657 * remove unnecessary loop
* Add markup package to prepare for org markup format (#1493)Lunny Xiao2017-04-211-13/+14
|
* feat: Only use issue and wiki on repo. (#1297)Bo-Yi Wu2017-03-181-1/+8
|
* fix some typos (#1082)Lunny Xiao2017-02-281-1/+1
|
* Cleanup log messagingGabriel Jackson2017-02-021-3/+3
| | | | | | | | | This change corrects a few logging issues: * Standardized formatting errors with '%v'. * Standardized failure warning word usage. * Corrected an instance of using the standard log library when the gitea log library should be used instead.
* Git LFS support v2 (#122)Fabian Zaremba2016-12-261-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Import github.com/git-lfs/lfs-test-server as lfs module base Imported commit is 3968aac269a77b73924649b9412ae03f7ccd3198 Removed: Dockerfile CONTRIBUTING.md mgmt* script/ vendor/ kvlogger.go .dockerignore .gitignore README.md * Remove config, add JWT support from github.com/mgit-at/lfs-test-server Imported commit f0cdcc5a01599c5a955dc1bbf683bb4acecdba83 * Add LFS settings * Add LFS meta object model * Add LFS routes and initialization * Import github.com/dgrijalva/jwt-go into vendor/ * Adapt LFS module: handlers, routing, meta store * Move LFS routes to /user/repo/info/lfs/* * Add request header checks to LFS BatchHandler / PostHandler * Implement LFS basic authentication * Rework JWT secret generation / load * Implement LFS SSH token authentication with JWT Specification: https://github.com/github/git-lfs/tree/master/docs/api * Integrate LFS settings into install process * Remove LFS objects when repository is deleted Only removes objects from content store when deleted repo is the only referencing repository * Make LFS module stateless Fixes bug where LFS would not work after installation without restarting Gitea * Change 500 'Internal Server Error' to 400 'Bad Request' * Change sql query to xorm call * Remove unneeded type from LFS module * Change internal imports to code.gitea.io/gitea/ * Add Gitea authors copyright * Change basic auth realm to "gitea-lfs" * Add unique indexes to LFS model * Use xorm count function in LFS check on repository delete * Return io.ReadCloser from content store and close after usage * Add LFS info to runWeb() * Export LFS content store base path * LFS file download from UI * Work around git-lfs client issue with unauthenticated requests Returning a dummy Authorization header for unauthenticated requests lets git-lfs client skip asking for auth credentials See: https://github.com/github/git-lfs/issues/1088 * Fix unauthenticated UI downloads from public repositories * Authentication check order, Finish LFS file view logic * Ignore LFS hooks if installed for current OS user Fixes Gitea UI actions for repositories tracking LFS files. Checks for minimum needed git version by parsing the semantic version string. * Hide LFS metafile diff from commit view, marking as binary * Show LFS notice if file in commit view is tracked * Add notbefore/nbf JWT claim * Correct lint suggestions - comments for structs and functions - Add comments to LFS model - Function comment for GetRandomBytesAsBase64 - LFS server function comments and lint variable suggestion * Move secret generation code out of conditional Ensures no LFS code may run with an empty secret * Do not hand out JWT tokens if LFS server support is disabled
* serve video files using the HTML5 video tag (#418)Nico Mandery2016-12-201-0/+2
| | | | | | * serve video files using the HTML5 video tag * lint fix: add comment to IsVideoFile
* Integrate templates into bindata optionally (#314)Thomas Boerger2016-12-061-3/+3
| | | Integrated optional bindata for the templates
* Golint fixed for modules/templateLunny Xiao2016-11-251-1/+1
|
* golint fixed for routers/repo/view.go (#205)Lunny Xiao2016-11-211-7/+12
|
* Normalize files with gofmtThibault Meyer2016-11-111-2/+2
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-9/+9
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Fix rendering of non-markdown readme filesOdin Ugedal2016-11-061-2/+4
|
* Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* Merge branch 'master' into feature/goimportsSandro Santilli2016-11-051-5/+0
|\
| * Refactor editorconfig middlewareAndrey Nering2016-11-051-5/+0
| |
* | Fix imports found by goimports.Matthias Loibl2016-11-051-3/+1
|/
* Fix 500 when repo has invalid .editorconfigAndrey Nering2016-11-051-4/+2
| | | | Creating a notice instead
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-8/+8
|
* #3559 fix template errorUnknwon2016-08-311-6/+3
|
* Web editor: support upload filesUnknwon2016-08-301-5/+2
|
* router/repo: code refactoringUnknwon2016-08-301-185/+186
|
* Web editor: improve delete file processUnknwon2016-08-281-14/+12
|
* Web editor: improve edit file tooltipUnknwon2016-08-271-53/+39
|
* Web editor: improve code qualityUnknwon2016-08-241-1/+1
|
* Web editor: temporarily disable upload and quick fix for edit and newUnknwon2016-08-151-1/+0
| | | | Try to merge into develop branch ASAP, then continue minor fixes afterwards.
* Web editor: improve delete fileUnknwon2016-08-141-3/+1
|
* Web editor: improve edit file and diff previewUnknwon2016-08-141-83/+85
|
* Code clean up for new config optionsUnknwon2016-08-141-1/+1
|
* Squashed commit of the following:Richard Mahn2016-08-141-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
* On showing diff/file, use the tab_width specified on .editorconfig, if any ↵Andrey Nering2016-08-111-0/+6
| | | | | (#3241) Closes #3182
* Little code refactoringUnknwon2016-08-091-15/+16
|
* Render the Code view on the server (minus syntax highlighting) (#2942)Rory McNamara2016-08-091-2/+18
| | | | | | | | | | | | | | | | * render code view server side * remove debug print * fix multiline selection bug * change string concatenation to bytes.Buffer for efficiency * Fix newlines added by previous for hljs * fix selection highlighting * make css changes in .less
* Use struct for UI settingsUnknwon2016-07-241-1/+1
|
* [Fix] Don't display way too large files #1513 (#3253)Kim Carlbäcker2016-07-121-12/+18
| | | | | | | | | | * Add MaxDisplayFileSize setting * Don't show files that are too large * Localized FileTooLarge * Change IsFileTooBig => IsFileTooLarge