29 Commits

Author SHA1 Message Date
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
2017-09-20 13:26:49 +08:00
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
2017-01-15 22:57:00 +08:00
cd339263d9 Allow updating draft releases while keeping them as draft
Closes #162
2016-11-14 18:02:21 +01:00
63ca42d17f Fix bug that tries to load mistyped templates 2016-11-10 11:54:20 +01:00
562f9b6eae Merge all pagination-templates into 'base/paginate'
to reduce code-duplicity
2016-11-07 12:44:29 +01:00
86fb1a0cb1 Add Pagination to Releases-page 2016-11-07 11:41:09 +01:00
50422f1fc2 #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
c912494609 #3076 detect invalid tag name git error 2016-07-23 15:59:19 +08:00
971e2c3bd6 Upgrade octicon to 4.3.0 2016-07-16 12:45:13 +08:00
a5b0400be7 #1146 finish new access rights for collaborators 2016-03-05 20:45:23 -05:00
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
2015-12-08 00:57:46 +01:00
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.
2015-12-03 02:16:18 +01:00
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.
2015-12-02 22:40:22 +01:00
987dcc5372 fix #1383 2015-11-20 02:38:41 -05:00
1db3ae6601 UI fix 2015-11-16 00:03:23 -05:00
612d0d6d25 minor HTML fix 2015-11-15 23:59:39 -05:00
18de67380c fix #1958 2015-11-15 23:52:46 -05:00
f432f1f41c #1604 suburl for release md preview 2015-09-08 10:05:57 -04:00
4447a20f87 UI: issues - finish basic frame 2015-07-24 04:50:05 +08:00
8061447f0e #1114 'New Release' always visible 2015-03-24 19:20:36 -04:00
8e384ce46c fix #828, may cause unintentional break in other features, but security is no.1 2015-01-20 13:08:49 +08:00
2f3a7e53cb fix #735 2014-12-12 01:29:36 -05:00
bc8721fb6c Finish new UI for release page 2014-12-10 16:37:54 -05:00
4d123d0a93 Fix user links 2014-11-28 11:53:00 -07:00
25268577a5 Fix download archive issue 2014-09-24 17:43:33 -04:00
7ba9257a7f Add suburl support 2014-09-19 20:11:34 -04:00
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
2014-09-18 20:50:48 +02:00
cff3ca23a5 Fix TimeSince arguments error. 2014-09-16 15:55:41 +08:00
9924e65ca1 In progress of name template name constant 2014-06-22 13:14:03 -04:00