Unknwon
0d66b1cc1c
pkg/context: apply EscapePound at context level
...
Always escape template variable {{.Link}} variable and redirect calls.
Relates to #5442
6 years ago
Unknwon
fbecc18e2e
*: use jsoniter to replace encoding/json
7 years ago
Unknwon
e25fe22f9d
pkg/template: fix NewLine2br return type to string
7 years ago
Unknwon
775919c129
mirror: show sync feeds on dashboard ( #2017 )
7 years ago
Sergey Dryabzhinsky
b5a1daa756
template: simple html filter for repository description ( #5242 )
...
* Add markdown renderer function to templates, use it for description in repo template
* Fix function call
* Define function Md2html in template namespace
* Change filter from Md2html to nl2br
* Change filter name to NewLine2br as suggested
* Update description output:
- just replace `\n` by `<br>`
- sanitize html after replace
7 years ago
Unknwon
aff4208244
*: rename "gogits" to "gogs"
7 years ago
Unknwon
5c2de3a9ea
pkg/template: fix Gravatar URLs are badly generated ( #5157 )
7 years ago
Unknwon
6bc11c4450
hook: fix email not sent after push ( #4430 )
...
Turns out mail service was not initialized at all, also mail must
be sent in sync in hook mode before program exits.
8 years ago
Unknwon
90b9f7e08c
pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}
8 years ago
Unknwon
0e271799f2
Refactoring: rename and simplify pkg/tool functions
8 years ago
Unknwon
6fbb984ebf
Refactoring: rename pkg/base -> pkg/tool
8 years ago
Unknwon
d05395fe90
Refactoring: rename modules -> pkg
...
Reasons to change:
1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
8 years ago