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 )
7 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
Unknown
a0a95d797e
Fix ui
11 years ago
Unknown
956f011dd3
Fix #186
11 years ago
Unknown
62d23e9154
HTTP no follow and offline mode
11 years ago
Unknown
f644cefa86
Finish release
11 years ago
Unknown
190b83e05e
push tag support
11 years ago
zhsso
a4cbe79567
fix
11 years ago
zhsso
f3ed11d177
mistakes
11 years ago