Unknwon
a617d52374
2fa: initial support ( #945 )
8 years ago
Unknwon
624474386a
templates/repo/branches: fix links for mirror repository
...
Also added new pull request button for stale branches.
8 years ago
Unknwon
e0a787b5ee
Update locales
8 years ago
Unknwon
63598688e4
pkg/markup: init default sanitizer.policy
...
App would panic if user has validation error on installation and
the sanitizer is not yet built. Therefore we need a minimal valid
object for sanitizer at start.
8 years ago
Unknwon
497cdc9250
user/setting: reorder navbar
8 years ago
Unknwon
edaf14f2b6
Refactoring: remove tool.TplName
8 years ago
Unknwon
6fbb984ebf
Refactoring: rename pkg/base -> pkg/tool
8 years ago
Unknwon
ba151eda0a
css: improve fonts under Windows
8 years ago
Unknwon
c05717a5f0
models/mirror: feed git.IsRepoURLAccessible with raw mirror address
8 years ago
Unknwon
5a488b6517
models/mirror: unescape credentials at read ( #4014 )
...
If we save credentials already escaped, 'url.QueryEscape' still
escapes it and makes the credentials become incorrect.
8 years ago
Unknwon
ae1d50d19a
models/mirror: escape credentials before write mirror address ( #4014 )
...
Special characters such as '@', ';', '#' and ':' could occur in
password portion of credentials, which breaks the interpretation
and saves 'config' file in with extra characters that are not
recognized by Git (due to INI library).
8 years ago
Unknwon
fe25effe7c
repo/http: fix client is not informed to provide credentials
...
When Git client has cached credentials for a site, missing response
header 'WWW-Authenticate: Basic realm="."' will result in Git client
does not prompt user to input credentials again but plain error
message and halts push/pull process.
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
37b10666de
modules/context: add *Context. ServerError method
...
Also use constants from net/http to replace raw integers.
8 years ago
Unknwon
41c8e87be8
repo/commit: improve error detection
...
Response 404 not 500 for raw diff if object does not exist.
8 years ago
Unknwon
55afc1ad21
models/repo_diff: move core functions to gogits/git-module
8 years ago
Unknwon
16c6ca72cd
css: fix font of .ui.label.button style
8 years ago
Unknwon
b873ec2bce
templates/repo/branches: hide pull request button if not allowed ( #4377 )
8 years ago
Unknwon
1bc805bb4b
public: update Semantic UI 2.2.7 -> 2.2.10
...
[CI SKIP]
8 years ago
Unknwon
348c75c91b
issue: response wrong type of comment from AJAX
8 years ago
Unknwon
76ebdb265b
css: update fonts
...
[CI SKIP]
8 years ago
Unknwon
88ae3510ff
Prepare release
8 years ago
Unknwon
c07899701a
vendor: update github.com/gogits/git-module
8 years ago
Unknwon
ab42671c63
repo: handle git.ErrUnsupportedVersion error type
8 years ago
Unknwon
b3ac33cbcf
vendor: update github.com/gogits/git-module
8 years ago
Unknwon
3b94162803
modules/setting: set default session GC interval to 3600s
8 years ago
Unknwon
52aade232d
modes: fix test compile error
8 years ago
Unknwon
3a9276307c
modules/markup: move common functions to markup.go
8 years ago
Unknwon
ca6326c937
modules/base: move file-related functions to file.go
8 years ago
Unknwon
8da16ac302
modules/markup: rename Markdown render fucntions
...
The unified function 'Markdown' accepts both string or []byte type
input and renders to HTML with []byte type.
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
9edac05e05
templates/repo: improve README icon and font
8 years ago
Unknwon
9c1620d49c
css: font-family fixes for Chinese
8 years ago
John Behm
65bb6eb284
locale: update TRANSLATORS ( #4372 )
...
* Update TRANSLATORS
* Update TRANSLATORS
8 years ago
Unknwon
aff55ff105
vendor: update github.com/go-macaron/captcha
...
[CI SKIP]
8 years ago
Unknwon
4a67bb5806
migrations.v17: skip if table not exist
8 years ago
Unknwon
1afafde3b3
user/setting: preserve user input with validation error ( #1123 )
8 years ago
Unknwon
ab634ce61a
cmd/web: fix routes requires sign in ( #4359 )
...
Redirect user to sign in page when visit private repository with
public issues if user want to post comment or create new issue.
8 years ago
Unknwon
9d06ebd01a
markdown: improve filter of class attribute for code blocks
...
Only allow HighlightJS specific classes.
Reported by ChALkeR.
8 years ago
Kyle McCullough
09723ec0e5
migration.v17: handle mysql error ( #4361 )
8 years ago
Hassan Amouhzi
864761c2d0
js: use jQuery .find() ( #4343 )
8 years ago
Unknwon
abe7f7bc36
migration.v17: add nil error check
8 years ago
Unknwon
717bcc4ad8
migration/v17: skip if protect_branch_whitelist table not exist ( #4355 )
8 years ago
Unknwon
11ffdac3f8
org/dashboard: fix wrong repository count ( #4351 )
...
Should not include count for inaccessible repositories.
8 years ago
David Beitey
cf7d5d0c56
docker: fix heading in README.md ( #4353 )
...
The unicode non-breaking space character was breaking the heading format; this switches that character for an ASCII space.
8 years ago
Unknwon
375f1b1fde
Prepare release
...
[CI SKIP]
8 years ago
Unknwon
ad3c6ef205
Update locales
8 years ago
Unknwon
30d9e2ee3c
docker: use vendor to replace go get
8 years ago
Unknwon
1038916460
models/protect_branch: fix whitelist with invalid 'protect_branch_id' ( #4333 )
...
If user creates a protect branch for the first time (which has ID=0),
it generates invalid whitelist records with 'protect_branch_id=0'.
This prevents future updates of protect branch whitelist.
Migration: remove existing invalid protect branch whitelist records.
8 years ago