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
Unknwon
761bb3cf53
modules/markup: protect sanitizer from possible modification
...
Only expose public APIs for 'Sanitize' and 'SanitizeBytes' to
eliminate unintentional modifications to sanitizer policy. Also
use 'sync.Once' to make sure multiple calls of 'NewSanitizer' is
safe (although should never happen, but this is a better way).
8 years ago
Unknwon
c1c269d9ef
modules: rename markdown -> markup
...
To further support more markup languages (e.g. Org-mode, AsciiDoc,
reStructuredText), the name 'markdown' is inappropriate.
This is the first step towards more markup language support.
8 years ago
Unknwon
b06f299748
webhook: add fork event
8 years ago
Unknwon
beea014343
template: add more icons for news feed
8 years ago
Unknwon
1083c0cd9a
admin/config: display repository related settings ( #3816 )
8 years ago
Unknwon
f97b250509
Security: prevent XSS attach on wiki page
...
Reported by Miguel Ángel Jimeno.
8 years ago
Unknwon
eb66060cd7
log: start using gopkg.in/clog.v1
8 years ago
Unknwon
67380cf47b
Minor code fix
8 years ago
LefsFlare
39fdb0f9c4
Fixed 404 caused by unexpected question mark ( #3668 )
...
This fixes 404 caused when creating new files or wiki pages with question marks.
8 years ago
Thibault Meyer
bc902b8f74
Feature #3492 : Add option to hide footer load times ( #3562 )
...
* Add option to hide footer load times
* Rename option variable + minor changes
8 years ago
Unknwon
643142acab
Web editor: support upload files
8 years ago
Unknwon
13c106af77
label: adjust forecolor boundary
8 years ago
Unknwon
a00c932bbc
General code quality improvement
8 years ago
Andrey Nering
dbed39ba05
On showing diff/file, use the tab_width specified on .editorconfig, if any ( #3241 )
...
Closes #3182
8 years ago
Andrey Nering
25b23c4bc9
Do not show non-image attachment in a <img> tag. Fixes #3215 ( #3311 )
8 years ago
Unknwon
f70343660d
Little code refactoring
9 years ago
Unknwon
46e96c008c
Use struct for UI settings
9 years ago
Unknwon
971e2c3bd6
Upgrade octicon to 4.3.0
9 years ago
Unknwon
ac53bb593d
#2878 print error of JSON unmarshal and always returns a valid object
9 years ago
Nikko Miu
9a43fcb61c
Changed EscapePound function with string replace function
9 years ago
Unknwon
58f0c68151
Some minor changes
9 years ago
Unknwon
414eb22ef9
#1597 fix activitity feeds for pull requests
9 years ago
Unknwon
912f7b51e9
#1821 add actions for close and reopen issues
9 years ago
Unknwon
d5a3021a7d
Make markdown as an independent module
9 years ago
Andrey Nering
e40d94bb4f
Implementing the "theme-color" meta tag.
...
Used by Android >= 5.0 to make the top bar colored.
Reference: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
9 years ago
Kim "BKC" Carlbäcker
1ab8a60d73
Not working, but slightly better...
9 years ago
Kim "BKC" Carlbäcker
3a9fd81f59
Custom URL-Schemas for Markdown
9 years ago
Unknwon
4993ab1a76
#2185 fall back to use custom chardet lib
9 years ago
Unknwon
44637f03cc
#2282 fast detection of utf-8
9 years ago
Unknwon
85af36332b
#2282 fix utf-8 recognized as windows-1252
9 years ago
Unknwon
ea375c0dcc
new template func
9 years ago
Unknwon
95f9c85bcc
#2185 use Go sub-repo to detect encoding
9 years ago
Adam Strzelecki
e2ca53029e
Render commit msg as header + verbatim description
...
Most commit in Git are expected to follow standard of single header line,
followed by description paragraphs, separated by empty line from previous block.
Previously Gogs were treating everything as single header. Now we are trying to
render only first line as header, but following lines (description chunks) as a
verbatim.
9 years ago
Unknwon
e538ff2770
fix #1829 and fix #890
9 years ago
Unknwon
7f9598141b
fix #2020
9 years ago
Unknwon
b2fb7e3fd2
more HTTP clone word fix
9 years ago
Unknwon
efaf60ba5a
fix #2013
9 years ago
Unknwon
bb1fbe4e70
octicon fix in feeds
9 years ago
Unknwon
679af4ddea
clean up
9 years ago