summaryrefslogtreecommitdiffstats
path: root/modules/templates
Commit message (Collapse)AuthorAgeFilesLines
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-281-0/+2
| | | | | | * Update macaron * Various wiki bug fixes
* Fix over-escaped characters (#2956)Ethan Koenig2017-11-221-6/+4
|
* Update go-ini dependency and remove semicolon hack in translations (#2913)Lauris BH2017-11-151-4/+0
|
* Fix localization texts that contain semicolon (#2900)Lauris BH2017-11-131-0/+4
|
* Fix issue link rendering in commit messages (#2897)Ethan Koenig2017-11-131-19/+23
| | | | | | | | | | * Fix issue link rendering in commit messages * Update page.tmpl * No links for parens * remove comment
* Add Activity page to repository (#2674)Lauris BH2017-10-151-0/+58
| | | | | | | | | | | | | | * Add Activity page to repository * Add request data for activity * Add issue data for activity * Add user unit right checks * Add releases to activity * Log repository unit loading error
* Complete push webhooks (#2530)David Schneiderbauer2017-09-211-1/+1
| | | | | | | | | | | | | | | | | * implemented missing 'delete' push webhooks moreover created ActionDeleteBranch and ActionDeleteTag * add CommitRepoAction tests for tag/branch creation/deletion * fixed error where push webhook not called if is new branch or tag removed unnecessary code * moved prepare unit test environment into separate method to be used across unit tests * add missing if clause in pushUpdate Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Use named ActionType constants in template helper (#2545)Ethan Koenig2017-09-201-12/+11
|
* Restructure markup & markdown to prepare for multiple markup language… (#2411)Lunny Xiao2017-09-161-3/+3
| | | | | | | | | | * restructure markup & markdown to prepare for multiple markup languages support * adjust some functions between markdown and markup * fix tests * improve the comments
* Disable custom Git Hooks globally via configuration file (#2450)techknowlogick2017-09-121-0/+3
| | | | | | | | * Create option to disable githooks globally via configuration file * Update comment in app.ini to align with @ethantkoenig's suggestion Signed-off-by: Matti Ranta <matti@mdranta.net>
* Moved vendored js/css into `public/vendor` and documented sources (#1484) ↵Michael Lustfield2017-08-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#2241) * Cleaning up public/ and documenting js/css libs. This commit mostly addresses #1484 by moving vendor'ed plugins into a vendor/ directory and documenting their upstream source and license in vendor/librejs.html. This also proves gitea is using only open source js/css libraries which helps toward reaching #1524. * Removing unused css file. The version of this file in use is located at: vendor/plugins/highlight/github.css * Cleaned up librejs.html and added javascript header A SafeJS function was added to templates/helper.go to allow keeping comments inside of javascript. A javascript comment was added in the header of templates/base/head.tmpl to mark all non-inline source as free. The librejs.html file was updated to meet the current librejs spec. I have now verified that the librejs plugin detects most of the scripts included in gitea and suspect the non-free detections are the result of a bug in the plugin. I believe this commit is enough to meet the C0.0 requirement of #1534. * Updating SafeJS function per lint suggestion * Added VERSIONS file, per request
* Sanitation fix from Gogs (#1461)Kim "BKC" Carlbäcker2017-04-131-1/+1
| | | | | | | | | | | | | | | | * Santiation fix from Gogs * Linting * Fix build-errors * still not working * Fix all the things! * gofmt * Add code-injection checks
* Repo size in admin panel (#1482)Jonas2017-04-111-0/+3
| | | | | | | | | | | | | | | * Implementation of the feature to view repository size in admin panel * Move GetRepoSize to git module * Repository.RepoSize -> Repository.Size * RepoSize -> Size in template * Redo a few bits and pieces * Update size when syncing mirror or forking * Remove GetRepoSize * Changed fatal errors to error message * Copy migration code from Gogs * make fmt
* Support for custom html meta (#1423)Jonas2017-03-311-0/+9
| | | | | | * Support for custom html meta * Changed html meta description default
* Log config pretty printer (#1097)Jonas2017-03-021-0/+9
| | | Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
* Fixed custom templates for static builds (#1087)Thomas Boerger2017-03-012-15/+89
|
* Fix for #828: Embed build tags (#1051)Jonas2017-02-281-0/+3
| | | | | | | | | | | | | | | | | | | | | * Fix for #828 Add build tags to ldflags and print in version output Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Reworked formatBuiltWith function Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Add tags to version information in admin panel Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Added new variable for use on admin page. Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Fixed incorrect indentation
* Security: prevent XSS attach on wiki pageUnknwon2017-02-161-0/+2
| | | | Reported by Miguel Ángel Jimeno.
* refactor: Remove unnecessary type conversions (#772)Bo-Yi Wu2017-01-271-2/+2
|
* Implementation of Folder JumpingSl@ny2016-12-281-0/+11
|
* Integrate templates into bindata optionally (#314)Thomas Boerger2016-12-064-0/+521
Integrated optional bindata for the templates