John Olheiser
62bcb2b7f1
Add avatar and issue labels to template repositories ( #9149 )
...
* Add avatar and issue labels
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix redundant if-err
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
John Olheiser
e84326aaec
Add git hooks and webhooks to template repositories; move to services ( #8926 )
...
* Add git hooks and webhooks to template options
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update models/repo.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add tooltip if the user can't edit git hooks
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Close repositories after copying git hooks
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Wording
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Restructure for services
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Return errors
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move GenerateRepository to using a DBContext
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Wrap with models.WithTx
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove debug print
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move if-error-delete-repo outside WithTx
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Return nil if no repo generated
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
John Olheiser
74a6add4d9
Template Repositories ( #8768 )
...
* Start work on templates
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Continue work
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix IsTemplate vs IsGenerated
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tabs vs spaces
* Tabs vs Spaces
* Add templates to API & start adding tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix integration tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove unused User
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move template tests to existing repos
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Minor re-check updates and cleanup
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Test cleanup
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix optionalbool
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* make fmt
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Test fixes and icon change
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add new user and repo for tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests (finally)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update meta repo with env variables
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move generation to create page
Combine with repo create template
Modify API search to prioritize owner for repo
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix tests and coverage
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix swagger and JS lint
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix API searching for own private repos
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Change wording
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix repo search test. User had a private repo that didn't show up
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Another search test fix
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Clarify git content
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Feedback updates
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add topics WIP
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Finish adding topics
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update locale
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
John Olheiser
0118b6aaf8
Add option to initialize repository with labels ( #6061 )
...
* Add optional label sets on repo creation
* Fix CRLF
* Instead of hardcoding default, make it the helper
* Move label set init out of repo init
Add a new error for the router
Combine router label init with repo creation label init
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add issue labels to Swagger for repo creation
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update models/issue_label.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update models/issue_label.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
micw
63c40796ef
Display description of 'make this repo private' as help text, not as tooltip ( #8097 )
5 years ago
Mura Li
032c90e7c5
Add tooltip for the visibility checkbox in /repo/create ( #8025 )
...
* Add tooltip for the visibility checkbox in /repo/create
* Change the tooltip wording
* Update options/locale/locale_en-US.ini
Co-Authored-By: Lauris BH <lauris@nix.lv>
5 years ago
zeripath
bdbbd816fc
Add more title attributes on shortened names ( #6647 )
6 years ago
John Olheiser
d26d249748
Minor UI tweaks ( #5980 )
...
* Remove all CommitStatus when a repo is deleted
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Minor UI tweaks (#5782 )
Added 'No License' option
Added link and octicon change for external issue trackers
Reset password now notifies right away if the code is invalid
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* More UI tweaks
More info in PR
* Generate stylesheet for arc-green
* Make gofmt work
* Change PR integration since the button is changed
* Rebase
* Generate stylesheet
* UI updates
Made the PR button a "basic" button
Vertically centered the issue checkboxes
Labels will update only once after modal is closed
* Commit to reference related issues
Resolves #5782
Resolves #5861
Addresses original question in #5993
* Change the comment wording since PR button is no longer little and green.
* Revert changes that made Windows work
* Regenerate stylesheet
* Regenerate stylesheets
* make generate-stylesheets
* Update integration again, changed button style
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Added ID to PR button
Changed integration to use the ID to avoid breaking in the future
* Added missing semi-colons
* Added back distinction between issue actions and filters (overlooked it before)
Moved action button over next to other action dropdowns
* Remove extra tab formatting in list.tmpl
* Remove more formatting from GoLand
* Replace hardcoded "No License" with i18n license helper.
6 years ago
Matthew Richardson
2e3475f02c
Fix typos in i18n variable names. ( #4080 )
7 years ago
Bwko
38a9cda4bb
Remove unnecessary Safe tags ( #3778 )
7 years ago
Thomas Boerger
ceb920802a
Dropped link to Gogs docs from template
8 years ago
Unknwon
9e8a8867ea
#3325 use correct word for .gitignore
9 years ago
Unknwon
50422f1fc2
#3348 always use relative avatar link in the template
9 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
9 years ago
Adam Strzelecki
da2585c11e
Indent all templates with tabs
...
This commit improves templates readability, since all of them use consistent
indent with all template command blocks indented too.
1. Indents both HTML containers such as <div>, <p> and Go HTML template blocks
such as {{if}} {{with}}
2. Cleans all trailing white-space
3. Adds trailing last line-break to each file
9 years ago
Unknwon
52c8f69163
fix #650
9 years ago
Unknwon
f04d773f4f
UI: long organization name in create repository owner list
9 years ago
Unknwon
022820103d
#1657 allow forcing all private repos
9 years ago
Unknwon
cc83043edc
minor fix on template
9 years ago
Unknwon
398569f6f8
#1021 Forked repo unavailable after deleting original repo
9 years ago
Unknwon
9ef063cbb0
change checkbox ui
9 years ago
Unknwon
55ddf225bb
webhook APIs
9 years ago
Unknwon
c7a4369db9
add readme template help link
9 years ago
Unknwon
bb3b90fcd6
#1487 Readme Template
9 years ago
Unknwon
46bee50e45
complate list of gitignores and licenses
9 years ago
Unknwon
ac4a10456e
api: able to create repo and fix #726
...
- POST /user/repos
- POST /org/:org/repos
10 years ago
Unknwon
7ba9257a7f
Add suburl support
10 years ago
Martin van Beurden
0055cbd365
Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
...
Conflicts:
modules/setting/setting.go
Conflicts:
templates/repo/release/list.tmpl
templates/user/dashboard/dashboard.tmpl
Conflicts:
routers/repo/setting.go
10 years ago
Unknwon
bba707de36
Finish team list, create new team, join/leave team page
11 years ago
Unknwon
5fbf8531e6
Finish new home page of organization
11 years ago
Unknwon
9a1d5d2489
Finish new web hook pages
11 years ago
Unknwon
755eec745f
Finish new repo settings page
11 years ago
Unknwon
dabf5b057c
Finish new migrate page
11 years ago
Unknwon
9813161411
Reser repo owner to organization when error occurs in repo create page, dashboard news feed page, create organization page
11 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
11 years ago
Unknown
5dbfe3c26c
Finish organization homepage
11 years ago
Unknown
43b33440b5
Work on create organization repo and #257
11 years ago
fuxiaohei
72ba273cc9
select owner when creating repository
11 years ago
Unknown
4cf7a1fca5
Mirror update on create repo page
11 years ago
fuxiaohei
80be060735
select owner when creating repository
11 years ago
Unknown
8e6c254c03
Mirror fix on create repo
11 years ago
fuxiaohei
cc703ee663
select owner when creating repository
11 years ago
Unknown
7d656ee2e3
Update docs
11 years ago
Unknown
33aa4f7438
Support private repo
11 years ago
Unknown
8980675a9f
Fix #69
11 years ago
zhsso
a4cbe79567
fix
11 years ago
zhsso
f3ed11d177
mistakes
11 years ago
FuXiaoHei
2a2f025388
change css name style
11 years ago
slene
076fc98d98
add csrf check
11 years ago
Unknown
828c89de99
Clean code
11 years ago