Wim
fb756e7738
Add missing full names when DEFAULT_SHOW_FULL_NAME is enabled ( #13417 )
...
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
4 years ago
a1012112796
b687707014
Add the tag list page to the release page ( #12096 )
...
* Add the tag list page to the release page
* Add the tags list view
* Add the delete tag way on ui
* Not delete tag and clear message when delete a release
Signed-off-by: a1012112796 <1012112796@qq.com>
* Apply suggestions from code review
Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: zeripath <art27@cantab.net>
* fix ui
* Add to header
* ui
* permission
* ui
* Update options/locale/locale_en-US.ini
Co-authored-by: Lauris BH <lauris@nix.lv>
* tweaks
* monospace commit hashes
* Add read permission check
* fix permission
* fix nit
* Update web_src/less/_base.less
Co-authored-by: silverwind <me@silverwind.io>
* ui fixes
* title tweaks
* fix lint
* fix test
* fix test and some ui nits
* Apply suggestions from code review
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: silverwind <me@silverwind.io>
4 years ago
silverwind
4617bb689b
Misc UI fixes, add secondary color ( #13378 )
...
* Misc UI fixes, add secondary color
- Add secondary color, primarily used in arc-green currently
- Convert icons on release page to SVG
- Improve resolved conversation placeholder
- Diff fixes on arc-green
- Misc color tweaks
* fix comment header, adjust arc-green dropzone
* label margin, sidebar margin
* flexbox commits table and add primary button styles
* tooltip styles
* file header fixes
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
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
Lanre Adelowo
e918636283
Enhance release list ( #6025 )
...
* show author for releases created outside Gitea UI.
Also show the number of commits behind the default branch for tags created outside the UI
don't show the tag date again for tags pushed to the repo. Since it is already on the sidebar and looks like duplication
* add migration for already existing tags
* update as per review
* fix build
* add space
* fix import statments
* Update models/migrations/v113.go
Co-Authored-By: zeripath <art27@cantab.net>
* Update models/migrations/v114.go
Co-authored-by: 6543 <6543@obermui.de>
* Update services/release/release.go
Co-authored-by: 6543 <6543@obermui.de>
* impruve
* remove dependency on models package
* Close the gitrepos in a defer to ensure that they are closed.
* gofmt
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
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
John Olheiser
ac07418011
Add compare link to releases ( #11752 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
5 years ago
John Olheiser
4f597b1866
Add single release page and latest redirect ( #11102 )
...
* Add single release and latest release routes
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update API and move latest search to models
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix swagger
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
5 years ago
John Olheiser
36d9237e60
Add accordion to release list and compact non-latest ( #10910 )
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 years ago
John Olheiser
86fdba177a
Add Octicon SVG spritemap ( #10107 )
...
* Add octicon SVG sprite
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Static prefix
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* SVG for all repo icons
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* make vendor
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Swap out octicons
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move octicons to top of less imports
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix JS
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Definitely not a search/replace
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Missed regex
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Move to more generic calls and webpack
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* make svg -> make webpack
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove svg-sprite
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Missed a test
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove svg from makefile
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Suggestions
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Attempt to fix test
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update tests
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert timetracking test
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Swap .octicon for .svg in less
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add aria-hidden
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Replace mega-octicon
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix webpack globbing on Windows
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Revert
Co-Authored-By: silverwind <me@silverwind.io>
* Fix octions from upstream
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix Vue and missed JS function
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add JS helper and PWA
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Preload SVG
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <matti@mdranta.net>
5 years ago
Lauris BH
20c513be6e
Show download count info in release list ( #10124 )
...
* Show download count info in release list
* Use go-humanize
5 years ago
6543
261c3a56a2
[Fix] Release attachment should use DownloadURL() not Name ( #9529 )
...
* Handle if two or more attachments have the same name
* previously only the first could be downloaded - now each is downloadable
* dos also take care of #6506 (fix was: #6512 )
* use func DownloadURL() at issue attatchments too
5 years ago
Lunny Xiao
bd41a04a56
Add extra user information when migrating release ( #8331 )
...
* add extra user information when migrating release
* add migrations
* fix tests
5 years ago
mrsdizzie
0bdd81df9d
Properly escape release attachment URL ( #6512 )
...
Make sure file attachments on a release get a properly escaped URL when
linking.
Fixes #6506
6 years ago
gdeverlant
d3dc07f282
Added URL mapping for Release attachments like on github.com ( #1707 )
6 years ago
Lunny Xiao
eabbddcd98
Restrict permission check on repositories and fix some problems ( #5314 )
...
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
6 years ago
nubenum
756eafaaf6
Fix some issues with special chars in branch names ( #3767 )
...
Signed-off-by: Robin Durner <github@nubenum.de>
6 years ago
cezar97
51ba3df5ff
Add `noreferrer` to rel='noopener` for <a> tags ( #4328 )
6 years ago
Jonas Franz
3e06490d38
Add Size column to attachment ( #3734 )
...
* Add size column to attachment
Migrate attachments by calculating file sizes
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Calculate attachment size on creation
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Log error instead of returning error
Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Jonas Franz
43fc430c07
Improve release page UI ( #3693 )
...
* Improve release page ui by adding size
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add documentation to a.MustSize()
Signed-off-by: Jonas Franz <info@jonasfranz.software>
7 years ago
Lunny Xiao
e3f88719ab
fix source download link when no code unit allowed ( #3166 )
7 years ago
Lunny Xiao
f2e20c81b6
Refactor struct's time to remove unnecessary memory usage ( #3142 )
...
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
7 years ago
Ethan Koenig
513375c429
Make URL scheme unambiguous ( #2408 )
...
* Make URL scheme unambiguous
Redirect old routes to new routes
* Fix redirects to new URL scheme, and update template
* Fix branches/_new endpoints, and update integration test
7 years ago
Lauris BH
7a0297819d
Sync releases table with tags on push and for mirrors ( #2459 )
...
* Sync releases table with tags on push and for mirrors
* Code style fixes
* Fix api to return only releases
* Optimize release creation and update
Minimize posibility of race conditions
* Fix release lower tag name updating
* handle tag reference update by addionally comparing commit id
7 years ago
Philip Couling
64375d875b
Attach to release ( #673 )
...
* Moved attachaments POST url from /issues/attachments to /attachments
* Implemented attachment upload on release page
* Implemented downloading attachments on the release page
* Added zip and gzip files to default allowed attachments
* Implemented uploading attachments on edit release
* Renamed UploadIssueAttachment to UploadAttachment
8 years ago
Matthias Loibl
63ca42d17f
Fix bug that tries to load mistyped templates
8 years ago
Kim "BKC" Carlbäcker
562f9b6eae
Merge all pagination-templates into 'base/paginate'
...
to reduce code-duplicity
8 years ago
Kim "BKC" Carlbäcker
86fb1a0cb1
Add Pagination to Releases-page
8 years ago
Unknwon
50422f1fc2
#3348 always use relative avatar link in the template
8 years ago
Unknwon
971e2c3bd6
Upgrade octicon to 4.3.0
8 years ago
Unknwon
a5b0400be7
#1146 finish new access rights for collaborators
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
Adam Strzelecki
2580e7b57e
UI: Always show menu on repo pages
...
Merges repo/sidebar.tmpl with repo/header.tmpl and makes every repo page use
middleware.RepoRef() necessary to display information on this menu.
9 years ago
Adam Strzelecki
3eae4ecde7
UI: Make repository menu divide header and content
...
This is more inline with way GitHub looks like and feels much more natural and
in style with rest of the interface.
9 years ago
Unknwon
987dcc5372
fix #1383
9 years ago
Unknwon
1db3ae6601
UI fix
9 years ago
Unknwon
612d0d6d25
minor HTML fix
9 years ago
Unknwon
18de67380c
fix #1958
9 years ago
Unknwon
4447a20f87
UI: issues - finish basic frame
9 years ago
Unknwon
8061447f0e
#1114 'New Release' always visible
10 years ago
Unknwon
8e384ce46c
fix #828 , may cause unintentional break in other features, but security is no.1
10 years ago
Unknwon
bc8721fb6c
Finish new UI for release page
10 years ago
James Cracknell
4d123d0a93
Fix user links
10 years ago
Unknwon
25268577a5
Fix download archive issue
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
Benjamin Peng
cff3ca23a5
Fix TimeSince arguments error.
10 years ago
Unknown
9924e65ca1
In progress of name template name constant
11 years ago
Unknown
e07674bff1
Support edit release and save as draft
11 years ago
Unknown
9961f9a53c
Fix #197
11 years ago