tso
fa32faf1a4
Add a Language Statistics Bar to repo/view
...
With the usage of a port of github's linguist functionality to Go,
which I have made as a separate library and is hosted here:
https://github.com/generaltso/linguist
And a quick design I made, I have hacked a language statistics bar
into gogs
I wasn't sure where to put everything so it's sitting directly
on the view router and the CSS is inlined into a new template file
Based on the structure of this project I would fully expect this
feature to belong in its own sub-package
Also, even though determining language stats on-the-fly is pretty
fast, caching the results in the database for large codebases
would probably be a much better strategy, especially if the top
language were to be displayed in the "Explore" view like GitHub has
I also had difficulty trying to figure out how to do:
if len(something) == 1 ? '' : 's'
with go templates for plurals (1 Commit vs 2 Commits), and I kinda
gave up there...
9 years ago
Unknwon
a576224d0e
unified name: IsViewBranch, IsViewCommit and IsViewTag
9 years ago
Unknwon
120cd4e471
#1984 Better mirror repo management
9 years ago
Unknwon
dce2a9e7e1
fix wrong slack webhook payload URL
9 years ago
Unknwon
ca8ce793d1
#2063 Ability to delete repo from admin panel
9 years ago
Unknwon
404867f206
fix #2105 and fix #1857
9 years ago
Unknwon
e538ff2770
fix #1829 and fix #890
9 years ago
Unknwon
4d9499c2d3
fix broken link
9 years ago
Unknwon
cc8f5add6e
fix #976
9 years ago
Unknwon
ec2423ad7c
more UI minor fixes
9 years ago
Unknwon
830d000667
finish wiki
9 years ago
Unknwon
5d1f5f32d0
wiki: finish pages
9 years ago
Unknwon
e42fcb033d
wiki: finish edit
9 years ago
Unknwon
392f3ee210
wiki: finish new
9 years ago
Unknwon
c50a3503e6
introduce git-shell
9 years ago
Unknwon
2b10fdc4dc
Wiki: UI for page new
9 years ago
Unknwon
0128036514
#1681 some fixes for builtin SSH server on Windows
9 years ago
Unknwon
b2fb7e3fd2
more HTTP clone word fix
9 years ago
Unknwon
b80e848d02
upgrade libs
9 years ago
Unknwon
987dcc5372
fix #1383
9 years ago
Unknwon
6a66e5fc98
better error message
9 years ago
Unknwon
c0b0ce7b1a
#1971 more general rule to detect error
9 years ago
Unknwon
f455125d4d
fix #878
9 years ago
Unknwon
2c653141a8
#1742 Update default branch in git repository while change in web view
9 years ago
Unknwon
81d7359fdd
fix #1981
9 years ago
Unknwon
9a0902523b
fix #1987
9 years ago
Unknwon
ab9411be2a
clean up code
9 years ago
Unknwon
9ab96172fc
new watchers, stars and forks UI
9 years ago
Unknwon
d370effca5
minor fix for #1961
9 years ago
Unknwon
29ed7872f8
repo sidebar active class
9 years ago
Unknwon
134d8e7681
work on #1961
9 years ago
Unknwon
18de67380c
fix #1958
9 years ago
Unknwon
84a43b38cf
remove unused code
9 years ago
Unknwon
7c80eba77f
minor UI fix and fix ssh race
9 years ago
Unknwon
7b1c10ea7e
new repo ui
...
- copy link button: #1396 , #1168 , #1668 ,
- synxtax highlight: #1712 , #1549 , #1315 , #670
- z-index: #1942
9 years ago
Unknwon
1d57f0d64f
Show custom avatars in commits
9 years ago
Unknwon
3b62a0fe0e
fix #1572 fix file histrory paging issue
9 years ago
Unknwon
0d4498429c
work on #1904
9 years ago
Unknwon
b55499d039
go vet and fix #1890
9 years ago
Unknwon
e7aabf70dc
#1905 Triming the issue title
9 years ago
Unknwon
00eb2b221f
fix #1876
9 years ago
Unknwon
3a81fdf092
rename fields
9 years ago
Unknwon
6f0a41b8b2
#1511 Allow local import only for admin users
9 years ago
Unknwon
fad31ca302
work on #1748
9 years ago
Unknwon
706b0f72e2
fix issue comment mention and autofix count when start
9 years ago
Unknwon
022820103d
#1657 allow forcing all private repos
9 years ago
Unknwon
c3ba5590c9
Reopen PR need retest patch
9 years ago
Unknwon
0fbb8c8826
New push to head repo of head branch: regenerate patch and retest apply
9 years ago
Unknwon
e0aab4a7f6
#1830 new comment with status change overwrites issue content
9 years ago
Unknwon
c6ce6bd4c2
work on #1830
9 years ago