zhoupzh
d804161b77
fix issue
4 years ago
Sorien
097dce68a4
Prettify timeline 3 ( #11139 )
* Fix timeline comments sections borders
* Fix files dropzone right alignment
* Update review comment form and controls
* Clear segment style from comment form tabs
* Remove segment class from pulls tab
* Fix Time Tracker - Add Time button border
* Fix buttons right alignment
* Markdown tab minimal height
* Fix DropZone hover effect
* Fix Lint + remove unused controls class
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
5 years ago
John Olheiser
121d6e2f1b
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>
6 years ago
John Olheiser
89543dad52
Add accordion to release list and compact non-latest ( #10910 )
Signed-off-by: jolheiser <john.olheiser@gmail.com>
6 years ago
John Olheiser
dd3a8e419d
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>
6 years ago
Lauris BH
83b5e8be25
Show download count info in release list ( #10124 )
* Show download count info in release list
* Use go-humanize
6 years ago
6543
027afccf79
[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
6 years ago
Lauris BH
7e00115d91
Fix max length check and limit in multiple repo forms ( #9148 )
* Fix input field max length for release, label and milestone forms
* Add max length for isseu and PR title
6 years ago
Lunny Xiao
869c8e00fe
Add extra user information when migrating release ( #8331 )
* add extra user information when migrating release
* add migrations
* fix tests
6 years ago
mrsdizzie
0d0d45edcd
Properly escape release attachment URL ( #6512 )
Make sure file attachments on a release get a properly escaped URL when
linking.
Fixes #6506
7 years ago
gdeverlant
fe63d73b35
Added URL mapping for Release attachments like on github.com ( #1707 )
7 years ago
Lunny Xiao
1c80f31f40
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
7 years ago
nubenum
b9d77c0d84
Fix some issues with special chars in branch names ( #3767 )
Signed-off-by: Robin Durner <github@nubenum.de>
7 years ago
kolaente
51f9c1e87a
Responsive design fixes ( #4508 )
* reset to master
* build css
* Fixed spacing
7 years ago
cezar97
fa45520109
Add `noreferrer` to rel='noopener` for <a> tags ( #4328 )
7 years ago
Jonas Franz
64daaca8f8
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>
8 years ago
Jonas Franz
1d145b0e78
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>
8 years ago
Lunny Xiao
779736ae0f
fix source download link when no code unit allowed ( #3166 )
8 years ago
Lunny Xiao
a5c212cd1e
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
8 years ago
Ethan Koenig
6700a0b12a
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
8 years ago
Lauris BH
94ad100bdf
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
8 years ago
Philip Couling
7f6c2c538f
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
9 years ago
Sandro Santilli
68e1a9e246
Allow updating draft releases while keeping them as draft
Closes #162
9 years ago
Matthias Loibl
8e74e86f7d
Fix bug that tries to load mistyped templates
9 years ago
Kim "BKC" Carlbäcker
ce897d65f9
Merge all pagination-templates into 'base/paginate'
to reduce code-duplicity
9 years ago
Kim "BKC" Carlbäcker
a35f849f28
Add Pagination to Releases-page
9 years ago
Unknwon
ad3b586d6e
#3348 always use relative avatar link in the template
9 years ago
Unknwon
41c8e6c524
#3076 detect invalid tag name git error
9 years ago
Unknwon
98aaf604c5
Upgrade octicon to 4.3.0
9 years ago
Unknwon
2e4c412e20
#1146 finish new access rights for collaborators
10 years ago
Adam Strzelecki
69427c6115
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
10 years ago
Adam Strzelecki
51df440502
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.
10 years ago
Adam Strzelecki
4d6b9a4736
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.
10 years ago
Unknwon
a0a4125989
fix #1383
10 years ago
Unknwon
ee416648b2
UI fix
10 years ago
Unknwon
af869bafc6
minor HTML fix
10 years ago
Unknwon
c0b841a766
fix #1958
10 years ago
Unknwon
a0d3e741a8
#1604 suburl for release md preview
10 years ago
Unknwon
baffb343a6
UI: issues - finish basic frame
10 years ago
Unknwon
a773e1800e
#1114 'New Release' always visible
11 years ago
Unknwon
8e384ce46c
fix #828 , may cause unintentional break in other features, but security is no.1
11 years ago
Unknwon
2f3a7e53cb
fix #735
11 years ago
Unknwon
bc8721fb6c
Finish new UI for release page
11 years ago
James Cracknell
4d123d0a93
Fix user links
11 years ago
Unknwon
25268577a5
Fix download archive issue
11 years ago
Unknwon
7ba9257a7f
Add suburl support
11 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
11 years ago
Benjamin Peng
cff3ca23a5
Fix TimeSince arguments error.
11 years ago
Unknown
9924e65ca1
In progress of name template name constant
11 years ago