2
0
Commit Graph

6235 Commits

Author SHA1 Message Date
Lauris BH
e8ffb5b3f7 Do not allow to reuse TOTP passcode (#3878) 2018-05-02 18:02:02 +03:00
Bo-Yi Wu
ba82dbb652 test: reduce testing time. (#3885) 2018-05-02 21:56:19 +08:00
GiteaBot
692ba4830f [skip ci] Updated translations via Crowdin 2018-05-02 13:24:19 +00:00
Lauris BH
49a84e0984 Do not allow inactive users to access repositories using private keys (#3887) 2018-05-02 16:22:56 +03:00
Lauris BH
0a0bafd6fa Add "error" as reserved username (#3882) 2018-05-02 11:06:31 +03:00
GiteaBot
d69ea1dbe1 [skip ci] Updated translations via Crowdin 2018-05-02 06:11:27 +00:00
Lauris BH
702aea04ce Fix to use only needed columns from tables to get repository git paths (#3870) 2018-05-02 09:10:19 +03:00
techknowlogick
8a171523b7 pass secrets to drone build step for docker (#3879) 2018-05-02 00:33:49 +03:00
GiteaBot
74b20f3e87 [skip ci] Updated translations via Crowdin 2018-05-01 19:05:52 +00:00
kolaente
29d699581e Issue due date (#3794)
* Started adding deadline to ui

* Implemented basic issue due date managing

* Improved UI for due date managing

* Added at least write access to the repo in order to modify issue due dates

* Ui improvements

* Added issue comments creation when adding/modifying/removing a due date

* Show due date in issue list

* Added api support for issue due dates

* Fixed lint suggestions

* Added deadline to sdk

* Updated css

* Added support for adding/modifiying deadlines for pull requests via api

* Fixed comments not created when updating or removing a deadline

* update sdk (will do properly once go-gitea/go-sdk#103 is merged)

* enhanced updateIssueDeadline

* Removed unnessecary Issue.DeadlineString

* UI improvements

* Small improvments to comment creation
+ ui & validation improvements

* Check if an issue is overdue is now a seperate function

* Updated go-sdk with govendor as it was merged

* Simplified isOverdue method

* removed unessecary deadline to 0 set

* Update swagger definitions

* Added missing return

* Added an explanary comment

* Improved updateIssueDeadline method so it'll only update `deadline_unix`

* Small changes and improvements
* no need to explicitly load the issue when updating a deadline, just use whats already there
* small optimisations

* Added check if a deadline was modified before updating it

* Moved comment creating logic into its own function

* Code cleanup for creating deadline comment

* locale improvement

* When modifying a deadline, the old deadline is saved with the comment

* small improvments to xorm session handling when updating an issue deadline
+ style nitpicks

* style nitpicks

* Moved checking for if the user has write acces to middleware
2018-05-01 22:05:28 +03:00
Tris Forster
995b2d290e Symlink icons (#1416) (#3826)
* Updated vendor code for code.gitea.io/git

* Display symlinks correctly for files and directories

* Added symlink tests

* Applied silverwinds stylesheet patch

Signed-off-by: Tris Forster <tris.git@shoddynet.org>
2018-05-01 10:04:36 +03:00
GiteaBot
f5e084006b [skip ci] Updated translations via Crowdin 2018-05-01 01:46:31 +00:00
Lauris BH
b608d90eb1 Fix path cleanup in multiple places (#3871) 2018-05-01 09:46:04 +08:00
GiteaBot
368b1d546b [skip ci] Updated translations via Crowdin 2018-04-30 17:55:00 +00:00
Morgan Bazalgette
90614542e6 Fix docs site index page (#3868) 2018-04-30 20:54:38 +03:00
Bo-Yi Wu
2c375142d1 chore: simplify docker build process. (#2827)
* chore: simplify docker build process.

* chore: update docker plugin.
2018-04-30 03:47:39 +02:00
Lauris BH
97c4063511 Switch back to upstream goth repository and update govendor to latest goth version (#3863) 2018-04-30 09:05:59 +08:00
GiteaBot
d6c1decf84 [skip ci] Updated translations via Crowdin 2018-04-29 19:36:12 +00:00
Morgan Bazalgette
79a02041cb Make Generate New Token panel shown by default (#3832)
This is mostly a 'feel' change. The behaviour that is currently on the
access tokens pages is, as far as I know, not present in any other parts
of the frontend, and there's no real good reason to keep the 'Generate
New Token' panel hidden by default in my opinion.
2018-04-29 22:34:59 +03:00
Ethan Koenig
ce6375a907 API endpoint for testing webhook (#3550)
* API endpoint for testing webhook

* Empty commit to rerun CI
2018-04-29 14:21:33 +08:00
Lauris BH
48895579e9 Store OAuth2 session data in database (#3660)
* Store OAuth2 session data in database

* Rename table to `oauth2_session` and do not skip xormstorage initialization error
2018-04-29 09:09:24 +03:00
Jonas Franz
2c94879dce Shows total tracked time in issue and milestone list (#3341)
* Show total tracked time in issue and milestone list
Show total tracked time at issue page

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Optimizing TotalTimes by using SumInt

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fixing wrong total times for milestones caused by a missing JOIN
Adding unit tests for total times

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Logging error instead of ignoring it

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Correcting spelling mistakes

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Change error message to a short version

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add error handling to TotalTimes
Add variable for totalTimes

Signed-off-by: Jonas Franz <info@jonasfranz.de>

* Introduce TotalTrackedTimes as variable of issue
Load TotalTrackedTimes by loading attributes of IssueList
Load TotalTrackedTimes by loading attributes of single issue
Add Sec2Time as helper to use it in templates

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fixed test + gofmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Load TotalTrackedTimes via MilestoneList instead of single requests

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add documentation for MilestoneList

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Add documentation for MilestoneList

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix test

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Change comment from SQL query to description

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix unit test by using int64 instead of int

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix unit test by using int64 instead of int

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Check if timetracker is enabled

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Fix test by enabling timetracking

Signed-off-by: Jonas Franz <info@jonasfranz.de>
2018-04-29 13:58:47 +08:00
Morgan Bazalgette
6d91abd2fd don't reset team/repo count when updating team via API (#3831)
fixes #3600
2018-04-29 13:22:57 +08:00
PJ Eby
57877af750 Update blackfriday dependency per #2994 (#3857)
Signed-off-by: PJ Eby <pje@telecommunity.com>
2018-04-29 13:07:36 +08:00
GiteaBot
8984c89dd3 [skip ci] Updated translations via Crowdin 2018-04-29 04:48:36 +00:00
kolaente
f87e53ea4f Fix only updated_unix when adding a comment (#3855) 2018-04-29 12:48:14 +08:00
GiteaBot
b5b8b4ad4e [skip ci] Updated translations via Crowdin 2018-04-28 20:46:38 +00:00
Lauris BH
a34f40306d Fix building of docs with latest hugo version (#3856) 2018-04-28 23:46:05 +03:00
GiteaBot
2beb0cdfba [skip ci] Updated translations via Crowdin 2018-04-23 05:56:09 +00:00
Morgan Bazalgette
4b0b91e2b4 Don't force due date to current time (#3830)
Fixes #3827
2018-04-23 13:55:03 +08:00
GiteaBot
e458f31bcf [skip ci] Updated translations via Crowdin 2018-04-21 01:23:11 +00:00
Peter Hoffmann
bc270c9243 Explanation for missing releases (#3823)
Searched for missing releases/tags for some time, thought the solution might be helpful to others
2018-04-21 09:22:02 +08:00
GiteaBot
4ee0433c1a [skip ci] Updated translations via Crowdin 2018-04-20 09:15:19 +00:00
Antoine GIRARD
4de5bd4ee8 Add swagger check (#3811) 2018-04-20 17:13:50 +08:00
GiteaBot
5ff8c5222f [skip ci] Updated translations via Crowdin 2018-04-20 00:26:45 +00:00
Rodrigo Villablanca Vásquez
9fe9130ede Some small template fixes (#3820) 2018-04-20 08:25:15 +08:00
bugreport0
52cd582bfd Improve English grammar and consistency. (#3614)
* Start improving English grammar and consistency.

* Apply review comments, push translation further.

* Additional review changes; expand translation.

* Undo team/organization change, further translation.

* Add site administration; review comments; merge.

* Update hardcoded branch protection string tests.

* Update hardcoded branch deletion string test.

* Update another hardcoded translation string test.

* Add my nickname to the list of translators.

* Implement @lafriks review comments.

* Remove (now) unused branch deletion warnings.

* Remove (now) unused branch deletion warnings.
2018-04-19 17:24:31 +03:00
GiteaBot
a92b45ee24 [skip ci] Updated translations via Crowdin 2018-04-19 12:31:42 +00:00
kolaente
54dcc8347a Fix for UI broke when a repo is starred & watched (#3630) (#3810) 2018-04-19 20:30:11 +08:00
GiteaBot
09ab1821ed [skip ci] Updated translations via Crowdin 2018-04-19 01:10:26 +00:00
Michael Kuhn
8f9526ecc2 Mention the possibility of resetting the password for new accounts (#3812)
This solves the problem of administrators creating accounts for users
that then do not know their initial password (without the administrator
sending it to them via some other channel).
2018-04-19 09:08:51 +08:00
GiteaBot
9995d1b336 [skip ci] Updated translations via Crowdin 2018-04-17 09:11:59 +00:00
Lunny Xiao
9e28e49684 Add opencollective badges on READMEs (#3808) 2018-04-17 17:10:34 +08:00
GiteaBot
614288ec59 [skip ci] Updated translations via Crowdin 2018-04-17 00:57:59 +00:00
kolaente
75259b907f Added explanation for docker environment variables to docs (#3804) 2018-04-17 08:56:28 +08:00
GiteaBot
2617b600a4 [skip ci] Updated translations via Crowdin 2018-04-16 05:28:09 +00:00
Morgan Bazalgette
a8ee593664 Fixed 0 closed issues not show 50% closed on activty page (#3802)
Fixes #3656. Also adds a light grey bar when there are both 0 merged
prs/closed issues and 0 open prs/issues.
2018-04-16 08:26:53 +03:00
GiteaBot
9ef54fdf8e [skip ci] Updated translations via Crowdin 2018-04-16 04:05:22 +00:00
Liam Cottam
a411619b7e Removes extra space from the body and footer to prevent scrolling on a page that fits into the viewport (#3792)
Signed-off-by: Liam Cottam <killtheidols@hotmail.co.uk>
2018-04-16 07:04:36 +03:00
Lunny Xiao
3b60856467 Add topic support (#3711)
* 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
2018-04-11 10:51:44 +08:00