summaryrefslogtreecommitdiffstats
path: root/routers/repo/view.go
Commit message (Collapse)AuthorAgeFilesLines
...
* Detect charset and convert non UTF-8 files for display (#4950)Lauris BH2018-09-291-2/+4
| | | | | | | | | | | | | | * Detect charset and convert non UTF-8 files for display * Refactor and move function to correct module * Revert unrelated changes * More unrelated changes * Duplicate content for small text to have better encoding detection * Check if original content is valid before duplicating it
* Add file name and branch to page title (#4902)Lanre Adelowo2018-09-101-0/+2
|
* HTML-escape text READMEs (#4192)nickolas3602018-06-101-2/+6
|
* Added deletion of an empty line at the end of the file (#4050) (#4054)Alexey Terentyev2018-05-291-0/+4
| | | Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
* Add topic support (#3711)Lunny Xiao2018-04-111-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | * add topic models and unit tests * fix comments * fix comment * add the UI to show or add topics for a repo * show topics on repositories list * fix test * don't show manage topics link when no permission * use green basic as topic label * fix topic label color * remove trace content * remove debug function
* Handle refactor (#3339)Morgan Bazalgette2018-01-101-9/+9
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* 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
|