Joe Chen
ce25881c88
refactor(db): move some methods off `user.go` ( #7199 )
2022-10-22 20:01:38 +08:00
ᴜɴᴋɴᴡᴏɴ
6437d0180b
git: migrate to github.com/gogs/git-module@v1.0.0 ( #5958 )
...
* WIP
* Finish `internal/db/git_diff.go`
* FInish internal/db/mirror.go
* Finish internal/db/pull.go
* Finish internal/db/release.go
* Finish internal/db/repo.go
* Finish internal/db/repo_branch.go
* Finish internal/db/repo_editor.go
* Finish internal/db/update.go
* Save my work
* Add license header
* Compile!
* Merge master
* Finish internal/cmd/hook.go
* Finish internal/conf/static.go
* Finish internal/context/repo.go
* Finish internal/db/action.go
* Finish internal/db/git_diff.go
* Fix submodule URL inferring
* Finish internal/db/mirror.go
* Updat to beta.4
* css: update fonts
* Finish internal/db/pull.go
* Finish internal/db/release.go
* Finish internal/db/repo_branch.go
* Finish internal/db/wiki.go
* gitutil: enhance infer submodule UR
* Finish internal/route/api/v1/repo/commits.go
* mirror: only collect branch commits after sync
* mirror: fix tag support
* Finish internal/db/repo.go
* Finish internal/db/repo_editor.go
* Finish internal/db/update.go
* Finish internal/gitutil/pull_request.go
* Make it compile
* Finish internal/route/repo/setting.go
* Finish internal/route/repo/branch.go
* Finish internal/route/api/v1/repo/file.go
* Finish internal/route/repo/download.go
* Finish internal/route/repo/editor.go
* Use helper
* Finish internal/route/repo/issue.go
* Finish internal/route/repo/pull.go
* Finish internal/route/repo/release.go
* Finish internal/route/repo/repo.go
* Finish internal/route/repo/wiki.go
* Finish internal/route/repo/commit.go
* Finish internal/route/repo/view.go
* Finish internal/gitutil/tag.go
* go.sum
2020-03-08 19:09:31 +08:00
Unknwon
db3f0048d8
templates: rename template function Str2html -> Str2HTML
2018-12-10 22:23:56 -05:00
Unknwon
d3d8284985
templates: sanitize special links in commit message ( #5545 )
...
Reported by @cezar97.
2018-12-10 22:21:42 -05:00
rokuu
c68fc4f31a
templates: fixes broken UI under supported resolution (1024x768) #5179 ( #5182 )
...
* Update view_list.tmpl
* Update commits_table.tmpl
* Update dashboard.tmpl
* Update list.tmpl
* Update list.tmpl
* Update list.tmpl
* Update list.tmpl
* Update notice.tmpl
* Update monitor.tmpl
* Update view_file.tmpl
* Update diff_preview.tmpl
* Update box.tmpl
2018-04-24 09:54:22 -04:00
Simon Dann
bf060387af
ui: fix emoji not rendered in commits table ( #4440 )
2017-05-29 23:46:43 -04:00
Unknwon
90b9f7e08c
pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}
2017-04-06 17:27:57 -04:00
Unknwon
0e271799f2
Refactoring: rename and simplify pkg/tool functions
2017-04-06 17:13:53 -04:00
Unknwon
8fa6d0d302
repo/pull: handle head repository of merged pull requests deleted
2017-03-10 16:58:41 -05:00
Unknwon
c69900325d
commits: able to specify pageSize dynamically ( #3965 )
...
Usage: <url>?page={page}&pageSize={pageSize}
Also avoid/removed getting total commits count for pagination,
users are only allowed navigation by 'newer' and 'older'.
2017-02-18 18:37:47 -05:00
Unknwon
50422f1fc2
#3348 always use relative avatar link in the template
2016-08-05 12:12:54 -07:00
Unknwon
c6277cce51
Minor fixes for #2761
2016-03-11 17:57:44 -05:00
Steven Oud
1d3ec27cb7
Put if statement of grey merge commits on one line
2016-03-05 17:59:07 +01:00
Steven Oud
a0cd59bd0e
Grey out merge commits
2016-03-05 17:00:38 +01:00
Andrey Nering
13e71acadf
Render emojis in more places.
2016-03-02 21:54:05 -03:00
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
2015-12-08 00:57:46 +01:00
Adam Strzelecki
e2ca53029e
Render commit msg as header + verbatim description
...
Most commit in Git are expected to follow standard of single header line,
followed by description paragraphs, separated by empty line from previous block.
Previously Gogs were treating everything as single header. Now we are trying to
render only first line as header, but following lines (description chunks) as a
verbatim.
2015-12-07 01:50:45 +01:00
Unknwon
e538ff2770
fix #1829 and fix #890
2015-12-04 21:30:33 -05:00
Adam Strzelecki
edbb67cb3f
UI: Use more subtle grey SHA1 labels
...
Current green SHA1 labels are more pronounced than other UI elements attracting
attention as if they were most important thing in the UI, while they are not as
important, especially without real Git client.
Using grey SHA1 labels makes the UI more balanced, less aggressive and lets
user to focus on other content elements.
NOTE: Neither GitHub or Bitbucket uses so heavy pronunciation as Gogs.
2015-12-03 14:21:20 +01:00
Unknwon
ec2423ad7c
more UI minor fixes
2015-12-02 20:56:26 -05:00
Unknwon
3d3498bda1
clean test data
2015-12-02 20:10:47 -05:00
Unknwon
29375059e1
minor CSS fix
2015-12-02 20:10:00 -05:00
Adam Strzelecki
61fdd8c571
Commits & files UI: SUI fixed single line table
...
Instead using own ellipsis, uses Semantic UI fixed single line table which
effectively applies ellipsis to all overflowing table cells.
NOTE: File list cannot use colspan="2" for 1st "Last commit" elements,
otherwise layout breaks with fixed table.
2015-12-02 21:57:39 +01:00
Unknwon
3b62a0fe0e
fix #1572 fix file histrory paging issue
2015-11-10 16:46:17 -05:00
Unknwon
1b5e1bebc2
fix #1886
2015-11-04 00:32:25 -05:00
Unknwon
8c046073a8
work on PR conversation
2015-09-01 19:07:02 -04:00
Unknwon
1ca257ad9f
rename fields
2015-08-31 16:24:28 +09:00
Unknwon
6821527c95
fix style
2015-08-21 00:32:46 +08:00
Unknwon
4275b3720a
finsih diff and compare
2015-08-21 00:18:30 +08:00
Unknwon
aa65761d81
new commits table
2015-08-20 20:18:49 +08:00
Unknwon
37fcc8daf2
modules/base: add RenderCommitMessage with XSS-safe and special links
...
- update russian locale
2015-01-30 18:05:20 -05:00
dennis-smurf
528c075ad6
Added issue link rendering in commit messages
2014-12-05 11:02:52 +01:00
Unknwon
55dfe2c978
custom avatar upload
2014-11-21 10:58:08 -05:00
Unknwon
1aa12c7452
Fix #572
2014-10-15 16:28:38 -04:00
Unknwon
b2632dec09
Page: Compare 2 commits
2014-10-10 21:40:51 -04:00
Unknwon
5bbeeb0f1b
Page: Commits and fix #249
2014-09-23 15:30:04 -04:00
Unknwon
7ba9257a7f
Add suburl support
2014-09-19 20:11:34 -04:00
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
2014-09-18 20:50:48 +02:00
Christopher Brickley
00a864e693
add commit compare functionality
2014-09-01 14:56:19 -04:00