2
0
Commit Graph

279 Commits

Author SHA1 Message Date
GiteaBot
692ba4830f [skip ci] Updated translations via Crowdin 2018-05-02 13:24:19 +00:00
GiteaBot
d69ea1dbe1 [skip ci] Updated translations via Crowdin 2018-05-02 06:11:27 +00: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
GiteaBot
f5e084006b [skip ci] Updated translations via Crowdin 2018-05-01 01:46:31 +00:00
GiteaBot
368b1d546b [skip ci] Updated translations via Crowdin 2018-04-30 17:55:00 +00:00
GiteaBot
d6c1decf84 [skip ci] Updated translations via Crowdin 2018-04-29 19:36:12 +00: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
GiteaBot
8984c89dd3 [skip ci] Updated translations via Crowdin 2018-04-29 04:48:36 +00:00
GiteaBot
b5b8b4ad4e [skip ci] Updated translations via Crowdin 2018-04-28 20:46:38 +00:00
GiteaBot
2beb0cdfba [skip ci] Updated translations via Crowdin 2018-04-23 05:56:09 +00:00
GiteaBot
e458f31bcf [skip ci] Updated translations via Crowdin 2018-04-21 01:23:11 +00:00
GiteaBot
4ee0433c1a [skip ci] Updated translations via Crowdin 2018-04-20 09:15:19 +00:00
GiteaBot
5ff8c5222f [skip ci] Updated translations via Crowdin 2018-04-20 00:26:45 +00: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
GiteaBot
09ab1821ed [skip ci] Updated translations via Crowdin 2018-04-19 01:10:26 +00:00
GiteaBot
9995d1b336 [skip ci] Updated translations via Crowdin 2018-04-17 09:11:59 +00:00
GiteaBot
614288ec59 [skip ci] Updated translations via Crowdin 2018-04-17 00:57:59 +00:00
GiteaBot
2617b600a4 [skip ci] Updated translations via Crowdin 2018-04-16 05:28:09 +00:00
GiteaBot
9ef54fdf8e [skip ci] Updated translations via Crowdin 2018-04-16 04:05:22 +00: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
GiteaBot
801993fb94 [skip ci] Updated translations via Crowdin 2018-04-10 12:40:23 +00:00
Bwko
7b8f026800 Add EnableTimetracking option to app settings (#3719) 2018-04-09 23:15:32 +08:00
GiteaBot
8b9670f815 [skip ci] Updated translations via Crowdin 2018-04-04 21:09:19 +00:00
GiteaBot
8bad3f5c7d [skip ci] Updated translations via Crowdin 2018-04-04 12:01:02 +00:00
GiteaBot
1caf5877da [skip ci] Updated translations via Crowdin 2018-03-29 13:34:02 +00:00
GiteaBot
7ce5610efc [skip ci] Updated translations via Crowdin 2018-03-29 01:41:06 +00:00
GiteaBot
5377305d54 [skip ci] Updated translations via Crowdin 2018-03-27 14:14:57 +00:00
Allen Wild
c515dbdb87 Add repository setting to enable/disable health checks (#3607)
New Feature:
  * Repository struct field for IsFsckEnabled (default true of course)
  * Admin Settings section on repo options page, accessible only by
    admin users

Possible Enhancements:
  * There's no way to force running health checks on all repos
    regardless of their IsFsckEnabled setting. This would be useful if
    there were an admin API or dashboard button to run fsck immediately.

Issue: https://github.com/go-gitea/gitea/issues/1712
Signed-off-by: Allen Wild <allenwild93@gmail.com>
2018-03-27 22:13:20 +08:00
Chri-s
635569aea2 Add protected branch whitelists for merging (#3689)
* Add database migrations for merge whitelist

* Add merge whitelist settings for protected branches

* Add checks for merge whitelists
2018-03-25 13:01:32 +03:00
GiteaBot
2d6dffd810 [skip ci] Updated translations via Crowdin 2018-03-23 14:12:13 +00:00
GiteaBot
6bcd32ddfc [skip ci] Updated translations via Crowdin 2018-03-20 21:40:24 +00:00
GiteaBot
765cc43cd8 [skip ci] Updated translations via Crowdin 2018-03-19 14:30:44 +00:00
GiteaBot
25a35a18d4 [skip ci] Updated translations via Crowdin 2018-03-18 01:33:53 +00:00
kolaente
f6a7d77918 Codesearch message fix (#3684) 2018-03-18 03:32:36 +02:00
GiteaBot
e76da580e1 [skip ci] Updated translations via Crowdin 2018-03-17 03:55:24 +00:00
GiteaBot
319657a31c [skip ci] Updated translations via Crowdin 2018-03-16 14:05:58 +00:00
Lunny Xiao
cdc860a9ea Global code search support (#3664)
* add global code search on explore

* fix bug when no anyone public repos

* change the icon

* fix typo and add UnitTypeCode check for login non-admin user

* fix ui description when no match
2018-03-16 22:04:33 +08:00
GiteaBot
6ff3e326af [skip ci] Updated translations via Crowdin 2018-03-15 21:14:38 +00:00
Lauris BH
63cc22eb77 Add label descriptions (#3662)
* Add label descriptions

* Add default descriptions to label template
2018-03-13 10:03:55 +08:00
GiteaBot
4c41c90ff9 [skip ci] Updated translations via Crowdin 2018-03-12 10:00:16 +00:00
bugreport0
0c48f08523 Add separate string for the 'Create Team' button. (#3647)
* Add separate string for the 'Create Team' button.

* Add separate string for the 'Create Team' button.
2018-03-09 19:37:24 +02:00
GiteaBot
a6c9000f4f [skip ci] Updated translations via Crowdin 2018-03-09 01:22:23 +00:00
GiteaBot
e5d181a5aa [skip ci] Updated translations via Crowdin 2018-03-07 06:45:23 +00:00
bugreport0
19fc0cee12 Add string to confirm wiki data erasure (#3629)
* Add a string to confirm wiki data erasure.

* Add a string to confirm wiki data erasure.
2018-03-06 15:25:21 +08:00
GiteaBot
e85470ca52 [skip ci] Updated translations via Crowdin 2018-03-04 02:46:24 +00:00
GiteaBot
edc8feda5b [skip ci] Updated translations via Crowdin 2018-03-02 20:32:20 +00:00
GiteaBot
eda80eaa76 [skip ci] Updated translations via Crowdin 2018-03-02 09:11:11 +00:00
Allen Wild
738484900b Add admin dashboard option to run health checks (#3606)
There's one for git gc, why not git fsck too?

Also add a couple more trace logs to GitFsck to see progress
2018-03-02 11:09:43 +02:00