vnkmpf
51fb0463a3
Fix truncated organization names ( #14655 )
...
* Fix truncated organization names
Previous ellipsis implementation hid vertical overflow - image + descent line of letters.
Organization visibility in select on dashboard was not always visible.
This commit extracts classes which don't make collisions with other items on page.
4 years ago
vnkmpf
3a4801d195
Truncated organisations name #14583 ( #14615 )
...
- truncate to max length 40
- add CSS ellipsis
4 years ago
silverwind
9269a038a4
Direct avatar rendering ( #13649 )
...
* Direct avatar rendering
This adds new template helpers for avatar rendering which output image
elements with direct links to avatars which makes them cacheable by the
browsers.
This should be a major performance improvment for pages with many avatars.
* fix avatars of other user's profile pages
* fix top border on user avatar name
* uncircle avatars
* remove old incomplete avatar selector
* use title attribute for name and add it back on blame
* minor refactor
* tweak comments
* fix url path join and adjust test to new result
* dedupe functions
4 years ago
silverwind
b1cf7f4df1
Add class to page content to unify top margin ( #13766 )
...
* Add class to page content to unify top margin
Previously pages would individually set this margin but some didn't so
content would stick to the header without any space. Resolve this by
adding a new class that is added on all pages. The only place where we
remove this margin again is on the pages with menu or wrapper in the
header.
* fix admin notices
* fix team pages
* fix loading segment on gitgraph for arc-green
* fix last missing case
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
silverwind
2ac112d84e
Comment box tweaks and SVG dropdown triangles ( #13376 )
...
* Comment box tweaks and SVG dropdown triangles
- Change all dropdown triangles to SVG
- Bring inline review comment box closer to regular comment boxes
- Enhance arc-green checkbox contrast
- Minor reaction tweaks
- Flexbox the diff file header
* remove a border
* fix type marker in arc-green
* add small code padding
* fix position regression and remove useless rules
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
silverwind
ffddf3f8a6
Make SVG size argument optional ( #12814 )
...
Now defaults to 16 on both frontend and backend.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
Lunny Xiao
e153cf07c3
Add a migrate service type switch page ( #12697 )
...
* Add a migrat service type switch page
* Improve translations
* remove images
* Fix images
* remove extra create repo button on dashboard
* Follow reviewers' opinions
* Fix frontend lint
* Remove wrong submit file
* Fix tests
* Adjust the size of image
* Apply suggestions from code review
Co-authored-by: 赵智超 <1012112796@qq.com>
* Remove username and password from migration of github/gitlab
* Improve docs
* Improve interface docs
Co-authored-by: 赵智超 <1012112796@qq.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
John Olheiser
211321fb93
Git migration UX ( #12619 )
...
* Initial work
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Implementation
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix gitlab and token cloning
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Imports and JS
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix test
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Linting
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Generate swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move mirror toggle and rename options
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
John Olheiser
a6fd2f23f7
Allow site admin to disable mirrors ( #11740 )
...
* Allow site admin to disable mirrors
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* No need to run through Safe
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Clarify only disabling NEW mirrors
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Apply suggestions from @guillep2k
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
Lunny Xiao
08069dc465
Improve migrations to support migrating milestones/labels/issues/comments/pullrequests ( #6290 )
...
* add migrations
* fix package dependency
* fix lints
* implements migrations except pull requests
* add releases
* migrating releases
* fix bug
* fix lint
* fix migrate releases
* fix tests
* add rollback
* pull request migtations
* fix import
* fix go module vendor
* add tests for upload to gitea
* more migrate options
* fix swagger-check
* fix misspell
* add options on migration UI
* fix log error
* improve UI options on migrating
* add support for username password when migrating from github
* fix tests
* remove comments and fix migrate limitation
* improve error handles
* migrate API will also support migrate milestones/labels/issues/pulls/releases
* fix tests and remove unused codes
* add DownloaderFactory and docs about how to create a new Downloader
* fix misspell
* fix migration docs
* Add hints about migrate options on migration page
* fix tests
6 years ago
zeripath
bdbbd816fc
Add more title attributes on shortened names ( #6647 )
6 years ago
Matthew Richardson
2e3475f02c
Fix typos in i18n variable names. ( #4080 )
6 years ago
Fabian Zaremba
f1d2f16b54
Add notice that LFS mirroring is not supported ( #1251 )
...
* Add notice that LFS mirroring is not supported
* Drop German translation
8 years ago
Bwko
74ed6dc3ad
Add option to app.ini to enable local import paths ( #724 )
8 years ago
Unknwon
50422f1fc2
#3348 always use relative avatar link in the template
8 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
8 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
022820103d
#1657 allow forcing all private repos
9 years ago
Unknwon
cc83043edc
minor fix on template
9 years ago
Unknwon
9ef063cbb0
change checkbox ui
9 years ago
Unknwon
2493454587
new delete account UI and password confirmation
9 years ago
Unknwon
c8bb475abb
fix autocomplete on migration
9 years ago
Unknwon
e633425f27
#1180 and #1250 : migration
9 years ago
Unknwon
34102f7889
remove unused scripts and simplify migrate form definition
10 years ago
Unknwon
059338139c
routers: able to migrate repo from local path
...
- modules/middleware/context.go: add HandleAPI method
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
81287ba022
Mirror issue fix
10 years ago
Unknwon
755eec745f
Finish new repo settings page
10 years ago
Unknwon
dabf5b057c
Finish new migrate page
10 years ago
Unknown
32b09681b2
Migrate repository by organization
11 years ago
Unknown
90f6aa8cd1
Add repo mirror and import
11 years ago
Unknown
8980675a9f
Fix #69
11 years ago
zhsso
a4cbe79567
fix
11 years ago
zhsso
f3ed11d177
mistakes
11 years ago
FuXiaoHei
6b30d9b0f2
fix mirror typo
11 years ago
Unknown
9f7bd5007b
Work on mirror repo
11 years ago
FuXiaoHei
c72e1b5c2a
repo-import page ui
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
Unknown
fdc4151ff3
Finish create repo
11 years ago
FuXiaoHei
63d2f74c21
begin dashboard ui
11 years ago
Unknown
76ce6f9848
Update repo.Create
11 years ago
Unknown
a2a59f8ad1
Change /user/profile URL to /user/:username
11 years ago
Unknown
ba5c7ea771
Add SignInRequire and SignOutRequire middleware
11 years ago
Lunny Xiao
e246f2188e
add list for repo basic
11 years ago
FuXiaoHei
71bae3ebd3
ui for repo/create page
11 years ago
Lunny Xiao
f7826d4ed7
create repository from web
11 years ago