new quick start page

This commit is contained in:
Unknwon committed 2015-10-02 19:58:36 -04:00
1 parent e5310cdbc1
commit 4465c58f4b
15 files changed
+2662 -1821

No files matched your search

+2 -2
View File
@@ -13,7 +13,7 @@ watch_dirs = [
watch_exts = [".go"] watch_exts = [".go"]
build_delay = 1500 build_delay = 1500
cmds = [ cmds = [
["go", "install", "-tags", "sqlite tidb"],# redis memcache cert pam ["go", "install", "-tags", "sqlite"],# redis memcache cert pam tidb
["go", "build", "-tags", "sqlite tidb"], ["go", "build", "-tags", "sqlite"],
["./gogs", "web"] ["./gogs", "web"]
] ]
+1 -1
View File
@@ -5,7 +5,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
![](public/img/gogs-large-resize.png) ![](public/img/gogs-large-resize.png)
##### Current version: 0.6.15 Beta ##### Current version: 0.6.16 Beta
<table> <table>
<tr> <tr>
+4
View File
@@ -364,6 +364,8 @@ migrate.invalid_local_path = Invalid local path, it does not exist or not a dire
forked_from = forked from forked_from = forked from
fork_from_self = You cannot fork repository you already owned! fork_from_self = You cannot fork repository you already owned!
copy_link = Copy copy_link = Copy
copy_link_success = Copied!
copy_link_error = Press ⌘-C or Ctrl-C to copy
click_to_copy = Copy to clipboard click_to_copy = Copy to clipboard
copied = Copied OK copied = Copied OK
clone_helper = Need help cloning? Visit <a target="_blank" href="%s">Help</a>! clone_helper = Need help cloning? Visit <a target="_blank" href="%s">Help</a>!
@@ -378,6 +380,8 @@ quick_guide = Quick Guide
clone_this_repo = Clone this repository clone_this_repo = Clone this repository
create_new_repo_command = Create a new repository on the command line create_new_repo_command = Create a new repository on the command line
push_exist_repo = Push an existing repository from the command line push_exist_repo = Push an existing repository from the command line
repo_is_empty = This repository is empty, please come back later!
branch = Branch branch = Branch
tree = Tree tree = Tree
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )
const APP_VER = "0.6.15.0926 Beta" const APP_VER = "0.6.16.1002 Beta"
func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())
+2 -2
View File
@@ -4364,7 +4364,7 @@ func confLocaleLocale_deDeIni() (*asset, error) {
return a, nil return a, nil
} }
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x7d\xfd\x72\xdc\xc6\xae\xe7\xff\x7c\x0a\xc6\xb7\xbc\x4e\xaa\xe4\x49\x25\xd9\xaf\x4a\xc5\xc9\xca\x56\xfc\x71\xaf\x65\xe9\x5a\xca\x39\x7b\xd6\xe5\x62\xa8\x21\x35\xc3\xeb\x19\x72\x42\x72\x2c\xeb\xdc\xba\x55\xfb\x1a\xfb\x7a\xfb\x24\x0b\xfc\x00\xf4\x17\x39\x92\x7d\xce\xa9\xfd\x47\xe2\x74\xa3\xbf\xd0\x68\x34\x80\x46\xa3\xcb\xdd\xae\xa8\xea\x61\x99\x3f\xc9\x8f\xf3\x5d\xd9\xb4\x9b\x7a\x18\xf2\xa1\xde\x5c\x3f\x5e\x77\xc3\x58\x57\xf9\x8b\x66\xa4\xdf\xfd\xc7\x66\x59\x67\xd9\xba\xdb\xd6\x04\xfa\x92\xfe\x65\x55\x39\xac\xaf\xba\xb2\xaf\x28\xe1\xc4\xbe\xb3\xfa\xd3\x6e\xd3\xf5\x0c\xf4\xab\x7c\x65\xeb\x7a\xb3\xe3\x32\xf4\x2f\x1b\x9a\x55\x5b\x34\x2d\xfd\xbc\xa0\xaf\xfc\x55\x2b\x29\xdd\x7e\xb4\xa4\xb3\xfd\x28\x69\xfb\x9d\x25\xfd\xb6\xcb\xfa\x7a\xd5\x50\x6f\x7a\x4a\x7a\xab\x9f\xd9\x4d\x7d\x35\x34\x23\xb7\xf4\x67\xf9\xca\x3e\xd6\xfd\xd0\x74\x5c\xfb\x9f\xe4\x2b\xdb\x95\x2b\x06\x38\xa7\x7f\xd9\x58\x6f\x77\x9b\x12\x05\x2e\xf5\x33\xdb\x94\xed\x6a\x2f\x30\xaf\xf5\x33\x5b\xf6\x35\x65\x15\x6d\x7d\x43\xa9\xcf\xf0\x63\xb1\x58\x64\x7b\x42\x42\xb1\xeb\xbb\xeb\x66\x53\x17\x65\x5b\x15\x5b\x19\xe6\x6f\x94\x9e\x6b\x7a\x4e\xe9\x39\xa7\x63\x08\x75\x45\x43\x2d\xca\x41\xc7\x41\xb8\xa4\x91\x97\x43\x86\xaa\xda\x72\x6b\xa5\xf9\x33\xab\xb7\x65\xb3\x61\xac\x3d\xe6\x0f\xea\xf8\x30\xdc\x74\xc0\xed\xb9\x7e\x12\x12\x8a\xf1\x76\x57\x03\x07\x8f\x2f\xe9\x2b\x5b\x96\xbb\x71\xb9\x2e\xb9\x9f\xf2\x95\x11\xd0\xae\x23\x64\x74\xfd\x2d\xe0\xec\x47\xd6\xf5\xab\xb2\x6d\xfe\x5a\x8e\x82\xa0\xb3\xe0\x67\xb6\x6d\xfa\xbe\x63\xdc\x9e\xe2\x23\xa3\xa1\x17\x5c\x0f\xa5\xbc\x21\x2c\x04\xb5\x70\xce\xb6\x59\xf5\x82\x46\xce\x3c\xc5\x2f\xae\x85\xf3\xae\xbb\xfe\x83\x66\x3c\xe7\xcf\xa4\x28\x75\x42\x73\xe3\xf6\xcb\x96\x10\xaf\xb9\xa7\xf8\x11\x01\x0c\x59\x59\x6d\x09\x95\xbb\xb2\xad\x19\x47\xc7\xfc\x8b\xf0\x42\xbf\xb2\x72\xb9\xec\xf6\xed\x58\x0c\xf5\x38\x36\xed\x8a\x91\x7d\x2c\x49\xf9\x85\x26\x65\x41\x9e\x4b\xbb\xed\xf6\x6e\x3a\x29\xfd\x2f\xf4\x33\x3f\x97\x9f\x92\x17\x14\x42\xa6\x2b\xc9\x23\x19\x8a\xeb\xba\xae\x64\x2c\x43\xfe\x9c\xbe\xb3\xdd\x7e\xb3\x21\xac\xfd\xb1\xaf\x87\x91\x0b\x9d\xd3\x6f\x1a\xbf\xfc\xce\x9a\x61\xa0\x0f\x4a\x7e\x85\x8f\x8c\xa6\xae\x5d\x62\x30\xcf\xf0\x91\x65\xef\x86\xba\xec\x97\xeb\xf7\x99\xfc\x47\x5f\xf9\x83\x69\xef\xd0\xa4\x32\x21\x29\x11\x49\x0b\xd6\x40\xb6\xec\x2a\xfe\xf1\x8c\xfe\x51\xd5\x4d\x3b\x8c\xe5\x66\xf3\x3e\xd3\x0f\x06\x93\x2f\x99\x80\xb1\x19\x81\x05\x4d\xcc\x2f\xc6\x7a\x37\xf0\x0c\xe6\xcf\x9b\x7e\x18\x1f\x8f\x0d\x11\xeb\xdb\x7d\x9b\x55\xdd\xf2\x03\x2d\x03\x5e\xd2\x68\xf9\xd5\x75\x4e\xc8\x7a\x44\x0b\xa1\xdf\xb7\x2d\xa1\x27\x7f\xd1\x11\xca\xa8\x99\x86\xda\x3f\x01\xf4\x51\xbe\xdb\xd4\xe5\x40\x20\x75\x59\xe5\x3f\x95\xf9\x58\xf6\xab\x7a\x7c\xf2\xa0\xb8\xa2\xe5\xf7\xe1\x41\xbe\xee\xeb\xeb\x27\x0f\x1e\x0e\x0f\x7e\x7e\xb1\xa7\x62\x9b\xa6\xad\x87\x9f\xbe\x2d\x7f\xce\x97\x25\xe5\x10\x1a\x6f\xf3\xab\xfa\x9a\x57\x1b\xb5\x95\x13\x95\xb7\x2b\x5e\x69\xb7\xe3\x9a\x1b\x24\x4a\xa0\x8f\x21\xe7\xa5\xfe\x55\xc6\x13\x40\xac\xa0\xa8\xae\x8c\xad\xa1\x43\x48\xee\x69\x02\x4e\x6f\x2f\xfe\xf5\xf5\x51\x7e\x4e\xbc\x6d\xd5\xd7\xf8\xa6\x3f\x54\xe2\x87\x9c\x46\x7b\xd9\x9c\x3c\x5d\x64\x54\xd6\x10\x72\x52\x8e\xe5\x15\xf7\xdd\xcd\x3e\x67\xca\x22\x74\x79\x58\x8a\xcc\x2d\xc1\x19\x87\x31\x9a\x96\xb9\x85\x4c\x75\xe8\xf2\x77\x75\xbc\x61\x1e\x40\xe9\x0e\xb3\xe7\x82\x33\xaa\x2a\x7f\xf5\xe6\xcd\xd9\xc9\xd3\xbc\x6e\x57\x84\x99\xfc\xa6\x19\xd7\xf9\x7e\xbc\xfe\xef\xc5\xaa\x6e\xeb\xbe\xdc\x14\xcb\x86\x91\xd2\x13\xc1\xe6\x84\x25\x19\xe2\x22\x1b\x86\x0d\xb1\x28\x50\xc1\xc5\xc5\xeb\xfc\x94\x29\x61\x57\x8e\x6b\x74\x64\x5c\x67\xc3\x1f\x1b\x46\x94\x6b\xf0\x72\x5d\xe7\x58\x0c\x00\xea\xae\x53\xbc\xe4\x95\xf6\x75\x91\xd5\x7d\x5f\x10\x07\x1d\x6f\x19\xcd\x5a\xe7\x21\x68\xa9\x8e\xa8\xbd\xed\x46\x9a\xc6\x1c\xe5\xa4\x8a\xa6\xfd\x58\x6e\x9a\x8a\x90\xed\x11\x12\x97\x45\x62\xd5\xd1\xbc\x71\x69\xa2\xcc\xee\x06\x43\x2d\x97\xb4\x01\x0c\xf9\x83\xc5\x03\x70\xdc\x07\x8f\x1f\x2c\xb2\xb6\x2b\x84\x4b\x30\x6f\xae\x9a\xa1\xbc\x22\x3e\x2d\xfb\x46\x6f\x5c\xef\x2f\x4c\x3f\xd2\x15\x85\xc8\x23\x08\xc6\x2d\xef\x45\xd8\x02\x98\xb8\x4a\x62\xd8\x60\x36\xca\x66\xc2\xb1\x1b\x4f\x72\xf3\x2b\x6c\xc9\x25\x4c\xc6\x9c\xd9\x84\x19\x75\x1d\xef\x76\x9b\x66\x29\x4d\xbf\x90\x3c\x4f\x68\xbc\x33\x2b\x52\x42\x38\x10\x8a\xe5\x05\xe4\x42\xbd\x66\xb6\x95\x47\x7c\x1e\xe5\xd7\x35\xad\x9c\xf5\x7e\x25\xbb\xd3\xa6\xdb\x57\x5f\x81\xa1\xd8\xcc\x79\x7e\x92\xbf\xed\xa8\xc3\xa0\x0e\x07\xe0\x9b\x38\x26\xc6\xc0\xc2\x40\x5f\x6f\xbb\x91\x11\xa7\xc5\x1a\x9a\x9e\x9b\x86\x32\x69\xa4\x43\xf9\x91\xd8\xe2\xd8\xc9\x92\xac\x68\xc9\x2d\xb9\x62\xe2\x60\x7b\xda\xd1\x65\x59\x10\x1f\x91\xa5\x61\x69\x31\x0d\x02\x6a\xbb\xa7\xd5\xb4\xa6\xca\x18\xf1\x2c\x91\x50\x95\x73\xfd\xc4\x90\xa8\x1e\xac\x72\x5a\xb9\x1d\x6d\x9e\x3c\xd1\x27\xf8\xd0\xdf\x61\xfd\xd4\xab\xf2\xfa\x9a\x7a\x35\xd0\xaa\x78\x99\x2f\x37\x1d\x2d\xa9\xdf\xde\xbe\x1e\x78\xc1\xac\x8b\x5d\xd7\x43\x12\xa1\xac\x73\xfa\x74\x69\x01\xa2\x19\xa2\xdd\x6f\xaf\xe8\xd7\xcd\xba\x21\x46\x0d\xb4\x73\x09\x96\x92\x28\x95\x9a\xd8\x0f\x34\x85\x47\x39\x2d\x61\x1Line truncated var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\xbd\xeb\x72\xdc\xc6\x92\x27\xfe\x1d\x4f\x01\x6b\x42\x7f\xd9\x11\x54\x3b\x6c\xff\xf7\x12\x0e\xcb\x5e\x8a\xb4\x2e\x33\xa2\xc8\x11\xe9\x73\xf6\xac\x42\x01\x83\x0d\xb0\x1b\xa3\x6e\xa0\x0d\xa0\x45\xf1\x4c\x4c\xc4\x3e\xc0\x3e\xc0\xee\xeb\xcd\x93\x6c\xe6\x2f\x33\xeb\x06\x34\x25\x9d\x39\xb1\x5f\x48\x74\x55\xd6\x2d\x2b\x2b\x2b\x33\x2b\x2b\xab\xdc\xed\x8a\xaa\x1e\x96\xf9\x93\xfc\x38\xdf\x95\x4d\xbb\xa9\x87\x21\x1f\xea\xcd\xcd\xe3\x75\x37\x8c\x75\x95\x3f\x6f\x46\xfa\xdd\x7f\x68\x96\x75\x96\xad\xbb\x6d\x4d\xa0\x2f\xe8\x5f\x56\x95\xc3\xfa\xba\x2b\xfb\x8a\x12\x4e\xed\x3b\xab\x3f\xee\x36\x5d\xcf\x40\xbf\xca\x57\xb6\xae\x37\x3b\x2e\x43\xff\xb2\xa1\x59\xb5\x45\xd3\xd2\xcf\x4b\xfa\xca\x5f\xb6\x92\xd2\xed\x47\x4b\x3a\xdf\x8f\x92\xb6\xdf\x59\xd2\x6f\xbb\xac\xaf\x57\x0d\xf5\xa6\xa7\xa4\x37\xfa\x99\xdd\xd6\xd7\x43\x33\x72\x4b\x7f\x96\xaf\xec\x43\xdd\x0f\x4d\xc7\xb5\xff\x49\xbe\xb2\x5d\xb9\x62\x80\x0b\xfa\x97\x8d\xf5\x76\xb7\x29\x51\xe0\x4a\x3f\xb3\x4d\xd9\xae\xf6\x02\xf3\x4a\x3f\xb3\x65\x5f\x53\x56\xd1\xd6\xb7\x94\x7a\x82\x1f\x8b\xc5\x22\xdb\x13\x12\x8a\x5d\xdf\xdd\x34\x9b\xba\x28\xdb\xaa\xd8\xca\x30\x7f\xa3\xf4\x5c\xd3\x73\x4a\xcf\x39\x1d\x43\xa8\x2b\x1a\x6a\x51\x0e\x3a\x0e\xc2\x25\x8d\xbc\x1c\x32\x54\xd5\x96\x5b\x2b\xcd\x9f\x59\xbd\x2d\x9b\x0d\x63\xed\x31\x7f\x50\xc7\x87\xe1\xb6\x03\x6e\x2f\xf4\x93\x90\x50\x8c\x77\xbb\x1a\x38\x78\x7c\x45\x5f\xd9\xb2\xdc\x8d\xcb\x75\xc9\xfd\x94\xaf\x8c\x80\x76\x1d\x21\xa3\xeb\xef\x00\x67\x3f\xb2\xae\x5f\x95\x6d\xf3\xd7\x72\x14\x04\x9d\x07\x3f\xb3\x6d\xd3\xf7\x1d\xe3\xf6\x0c\x1f\x19\x0d\xbd\xe0\x7a\x28\xe5\x35\x61\x21\xa8\x85\x73\xb6\xcd\xaa\x17\x34\x72\xe6\x19\x7e\x71\x2d\x9c\x77\xd3\xf5\xef\x35\xe3\x19\x7f\x26\x45\xa9\x13\x9a\x1b\xb7\x5f\xb6\x84\x78\xcd\x3d\xc3\x8f\x08\x60\xc8\xca\x6a\x4b\xa8\xdc\x95\x6d\xcd\x38\x3a\xe6\x5f\x84\x17\xfa\x95\x95\xcb\x65\xb7\x6f\xc7\x62\xa8\xc7\xb1\x69\x57\x8c\xec\x63\x49\xca\x2f\x35\x29\x0b\xf2\x5c\xda\x5d\xb7\x77\xd3\x49\xe9\x7f\xa1\x9f\xf9\x85\xfc\x94\xbc\xa0\x10\x32\x5d\x49\x1e\xc9\x50\xdc\xd4\x75\x25\x63\x19\xf2\x67\xf4\x9d\xed\xf6\x9b\x0d\x61\xed\x8f\x7d\x3d\x8c\x5c\xe8\x82\x7e\xd3\xf8\xe5\x77\xd6\x0c\x03\x7d\x50\xf2\x4b\x7c\x64\x34\x75\xed\x12\x83\x39\xc1\x47\x96\xbd\x1d\xea\xb2\x5f\xae\xdf\x65\xf2\x1f\x7d\xe5\x0f\xa6\xbd\x43\x93\xca\x84\xa4\x44\x24\x2d\x58\x03\xd9\xb2\xab\xf8\xc7\x09\xfd\xa3\xaa\x9b\x76\x18\xcb\xcd\xe6\x5d\xa6\x1f\x0c\x26\x5f\x32\x01\x63\x33\x02\x0b\x9a\x98\x5f\x8e\xf5\x6e\xe0\x19\xcc\x9f\x35\xfd\x30\x3e\x1e\x1b\x22\xd6\x37\xfb\x36\xab\xba\xe5\x7b\x5a\x06\xbc\xa4\xd1\xf2\xcb\x9b\x9c\x90\xf5\x88\x16\x42\xbf\x6f\x5b\x42\x4f\xfe\xbc\x23\x94\x51\x33\x0d\xb5\x7f\x0a\xe8\xa3\x7c\xb7\xa9\xcb\x81\x40\xea\xb2\xca\x7f\x2a\xf3\xb1\xec\x57\xf5\xf8\xe4\x41\x71\x4d\xcb\xef\xfd\x83\x7c\xdd\xd7\x37\x4f\x1e\x3c\x1c\x1e\xfc\xfc\x7c\x4f\xc5\x36\x4d\x5b\x0f\x3f\x7d\x5b\xfe\x9c\x2f\x4b\xca\x21\x34\xde\xe5\xd7\xf5\x0d\xaf\x36\x6a\x2b\x27\x2a\x6f\x57\xbc\xd2\xee\xc6\x35\x37\x48\x94\x40\x1f\x43\xce\x4b\xfd\xab\x8c\x27\x80\x58\x41\x51\x5d\x1b\x5b\x43\x87\x90\xdc\xd3\x04\x9c\xdd\x5d\xfe\xf3\xab\xa3\xfc\x82\x78\xdb\xaa\xaf\xf1\x4d\x7f\xa8\xc4\x0f\x39\x8d\xf6\xaa\x39\x7d\xba\xc8\xa8\xac\x21\xe4\xb4\x1c\xcb\x6b\xee\xbb\x9b\x7d\xce\x94\x45\xe8\xf2\xb0\x14\x99\x5b\x82\x33\x0e\x63\x34\x2d\x73\x0b\x99\xea\xd0\xe5\xef\xea\x78\xcd\x3c\x80\xd2\x1d\x66\x2f\x04\x67\x54\x55\xfe\xf2\xf5\xeb\xf3\xd3\xa7\x79\xdd\xae\x08\x33\xf9\x6d\x33\xae\xf3\xfd\x78\xf3\x5f\x8b\x55\xdd\xd6\x7d\xb9\x29\x96\x0d\x23\xa5\x27\x82\xcd\x09\x4b\x32\xc4\x45\x36\x0c\x1b\x62\x51\xa0\x82\xcb\xcb\x57\xf9\x19\x53\xc2\xae\x1c\xd7\xe8\xc8\xb8\xce\x86\x3f\x36\x8c\x28\xd7\xe0\xd5\xba\xce\xb1\x18\x00\xd4\xdd\xa4\x78\xc9\x2b\xed\xeb\x22\xab\xfb\xbe\x20\x0e\x3a\xde\x31\x9a\xb5\xce\x43\xd0\x52\x1d\x51\x7b\xdb\x8d\x34\x8d\x39\xca\x49\x15\x4d\xfb\xa1\xdc\x34\x15\x21\xdb\x23\x24\x2e\x8b\xc4\xaa\xa3\x79\xe3\xd2\x44\x99\xdd\x2d\x86\x5a\x2e\x69\x03\x18\xf2\x07\x8b\x07\xe0\xb8\x0f\x1e\x3f\x58\x64\x6d\x57\x08\x97\x60\xde\x5c\x35\x43\x79\x4d\x7c\x5a\xf6\x8d\xde\xb8\xde\x5f\x98\x7e\xa4\x2b\x0a\x91\x47\x10\x8c\x5b\xde\x8b\xb0\x05\x30\x71\x95\xc4\xb0\xc1\x6c\x94\xcd\x84\x63\x37\x9e\xe4\xe6\x57\xd8\x92\x4b\x98\x8c\x39\xb3\x09\x33\xea\x3a\xde\xed\x36\xcd\x52\x9a\x7e\x2e\x79\x9e\xd0\x78\x67\x56\xa4\x84\x70\x20\x14\xcb\x0b\xc8\x85\x7a\xcd\x6c\x2b\x8f\xf8\x3c\xca\xaf\x6b\x5a\x39\xeb\xfd\x4a\x76\xa7\x4d\xb7\xaf\xbe\x02\x43\xb1\x99\xf3\xfc\x24\x7f\xd3\x51\x87\x41\x1d\x0e\xc0\x37\x71\x4c\x8c\x81\x85\x81\xbe\xde\x76\x23\x23\x4e\x8b\x35\x34\x3d\xb7\x0d\x65\xd2\x48\x87\xf2\x03\xb1\xc5\xb1\x93\x25\x59\xd1\x92\x5b\x72\xc5\xc4\xc1\xf6\xb4\xa3\xcb\xb2\x20\x3e\x22\x4b\xc3\xd2\x62\x1a\x04\xd4\x76\x4f\xab\x69\x4d\x95\x31\xe2\x59\x22\xa1\x2a\xe7\xfa\x89\x21\x51\x3d\x58\xe5\xb4\x72\x3b\xda\x3c\x79\xa2\x4f\xf1\xa1\xbf\xc3\xfa\xa9\x57\xe5\xcd\x0d\xf5\x6a\xa0\x55\xf1\x22\x5f\x6e\x3a\x5a\x52\xbf\xbd\x79\x35\xf0\x82\x59\x17\xbb\xae\x87\x24\x42\x59\x17\xf4\xe9\xd2\x02\x44\x33\x44\xbb\xdf\x5e\xd3\xaf\xdb\x75\x43\x8c\x1a\x68\xe7\x12\x2c\x25\x51\x2a\x35\xb1\x1f\x68\x0a\x8Line truncated
func confLocaleLocale_enUsIniBytes() ([]byte, error) { func confLocaleLocale_enUsIniBytes() ([]byte, error) {
return bindataRead( return bindataRead(
@@ -4379,7 +4379,7 @@ func confLocaleLocale_enUsIni() (*asset, error) {
return nil, err return nil, err
} }
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 43908, mode: os.FileMode(420), modTime: time.Unix(1443223910, 0)} info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 44051, mode: os.FileMode(420), modTime: time.Unix(1443830222, 0)}
a := &asset{bytes: bytes, info: info} a := &asset{bytes: bytes, info: info}
return a, nil return a, nil
} }
+8 -5
View File
@@ -350,22 +350,25 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler {
ctx.Data["GoGetImport"] = fmt.Sprintf("%s/%s/%s", setting.Domain, u.Name, repo.Name) ctx.Data["GoGetImport"] = fmt.Sprintf("%s/%s/%s", setting.Domain, u.Name, repo.Name)
} }
if ctx.IsSigned {
ctx.Data["IsWatchingRepo"] = models.IsWatching(ctx.User.Id, repo.ID)
ctx.Data["IsStaringRepo"] = models.IsStaring(ctx.User.Id, repo.ID)
}
// repo is bare and display enable // repo is bare and display enable
if ctx.Repo.Repository.IsBare { if ctx.Repo.Repository.IsBare {
log.Debug("Bare repository: %s", ctx.Repo.RepoLink) log.Debug("Bare repository: %s", ctx.Repo.RepoLink)
// NOTE: to prevent templating error // NOTE: to prevent templating error
ctx.Data["BranchName"] = "" ctx.Data["BranchName"] = ""
if displayBare { if displayBare {
if !ctx.Repo.IsAdmin() {
ctx.Flash.Info(ctx.Tr("repo.repo_is_empty"), true)
}
ctx.HTML(200, "repo/bare") ctx.HTML(200, "repo/bare")
} }
return return
} }
if ctx.IsSigned {
ctx.Data["IsWatchingRepo"] = models.IsWatching(ctx.User.Id, repo.ID)
ctx.Data["IsStaringRepo"] = models.IsStaring(ctx.User.Id, repo.ID)
}
ctx.Data["TagName"] = ctx.Repo.TagName ctx.Data["TagName"] = ctx.Repo.TagName
brs, err := ctx.Repo.GitRepo.GetBranches() brs, err := ctx.Repo.GitRepo.GetBranches()
if err != nil { if err != nil {
+14 -3
View File
@@ -204,6 +204,17 @@
"outputStyle": 1, "outputStyle": 1,
"syntaxCheckerStyle": 1 "syntaxCheckerStyle": 1
}, },
"\/js\/libs\/clipboard-1.3.1.min.js": {
"fileType": 64,
"ignore": 0,
"ignoreWasSetByUser": 0,
"inputAbbreviatedPath": "\/js\/libs\/clipboard-1.3.1.min.js",
"outputAbbreviatedPath": "\/js\/libs\/min\/clipboard-1.3.1.min-min.js",
"outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 0,
"outputStyle": 1,
"syntaxCheckerStyle": 1
},
"\/js\/libs\/dropzone-4.0.1.js": { "\/js\/libs\/dropzone-4.0.1.js": {
"fileType": 64, "fileType": 64,
"ignore": 0, "ignore": 0,
@@ -548,12 +559,12 @@
"fileType": 1, "fileType": 1,
"ieCompatibility": 1, "ieCompatibility": 1,
"ignore": 0, "ignore": 0,
"ignoreWasSetByUser": 0, "ignoreWasSetByUser": 1,
"inputAbbreviatedPath": "\/less\/gogs.less", "inputAbbreviatedPath": "\/less\/gogs.less",
"outputAbbreviatedPath": "\/css\/gogs.min.css", "outputAbbreviatedPath": "\/css\/gogs.css",
"outputPathIsOutsideProject": 0, "outputPathIsOutsideProject": 0,
"outputPathIsSetByUser": 1, "outputPathIsSetByUser": 1,
"outputStyle": 1, "outputStyle": 0,
"relativeURLS": 0, "relativeURLS": 0,
"shouldRunAutoprefixer": 0, "shouldRunAutoprefixer": 0,
"shouldRunBless": 0, "shouldRunBless": 0,
+2518 -1758
View File
File diff suppressed because it is too large. Load diff
+35 -1
View File
@@ -396,6 +396,22 @@ function initRepository() {
}); });
} }
// Quick start
if ($('.repository.quickstart').length > 0) {
$('#repo-clone-ssh').click(function () {
$('.clone-url').text($(this).data('link'));
$('#repo-clone-url').val($(this).data('link'));
$(this).addClass('blue');
$('#repo-clone-https').removeClass('blue');
});
$('#repo-clone-https').click(function () {
$('.clone-url').text($(this).data('link'));
$('#repo-clone-url').val($(this).data('link'));
$(this).addClass('blue');
$('#repo-clone-ssh').removeClass('blue');
});
}
// Pull request // Pull request
if ($('.repository.compare.pull').length > 0) { if ($('.repository.compare.pull').length > 0) {
var $branch_dropdown = $('.choose.branch .dropdown'); var $branch_dropdown = $('.choose.branch .dropdown');
@@ -478,7 +494,7 @@ function initAdmin() {
$('.local').show(); $('.local').show();
$('#user_name').focus(); $('#user_name').focus();
if($(this).data('password')=="required"){ if ($(this).data('password') == "required") {
$('#password').attr('required', 'required'); $('#password').attr('required', 'required');
} }
@@ -608,6 +624,24 @@ $(document).ready(function () {
emojify.run($(this)[0]); emojify.run($(this)[0]);
}); });
// Clipboard JS
var clipboard = new Clipboard('.clipboard');
clipboard.on('success', function (e) {
e.clearSelection();
$('#' + e.trigger.getAttribute('id')).popup('destroy');
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-success'))
$('#' + e.trigger.getAttribute('id')).popup('show');
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-original'))
});
clipboard.on('error', function (e) {
$('#' + e.trigger.getAttribute('id')).popup('destroy');
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-error'))
$('#' + e.trigger.getAttribute('id')).popup('show');
e.trigger.setAttribute('data-content', e.trigger.getAttribute('data-original'))
});
// Helpers. // Helpers.
$('.delete-button').click(function () { $('.delete-button').click(function () {
var $this = $(this); var $this = $(this);
+1
View File
@@ -0,0 +1 @@
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.Clipboard=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){var d=a("closest"),e=a("component-event"),f=["focus","blur"];c.bind=function(a,b,c,g,h){return-1!==f.indexOf(c)&&(h=!0),e.bind(a,c,function(c){var e=c.target||c.srcElement;c.delegateTarget=d(e,b,!0,a),c.delegateTarget&&g.call(a,c)},h)},c.unbind=function(a,b,c,d){-1!==f.indexOf(b)&&(d=!0),e.unbind(a,b,c,d)}},{closest:2,"component-event":4}],2:[function(a,b,c){var d=a("matches-selector");b.exports=function(a,b,c){for(var e=c?a:a.parentNode;e&&e!==document;){if(d(e,b))return e;e=e.parentNode}}},{"matches-selector":3}],3:[function(a,b,c){function d(a,b){if(f)return f.call(a,b);for(var c=a.parentNode.querySelectorAll(b),d=0;d<c.length;++d)if(c[d]==a)return!0;return!1}var e=Element.prototype,f=e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;b.exports=d},{}],4:[function(a,b,c){var d=window.addEventListener?"addEventListener":"attachEvent",e=window.removeEventListener?"removeEventListener":"detachEvent",f="addEventListener"!==d?"on":"";c.bind=function(a,b,c,e){return a[d](f+b,c,e||!1),c},c.unbind=function(a,b,c,d){return a[e](f+b,c,d||!1),c}},{}],5:[function(a,b,c){function d(){}d.prototype={on:function(a,b,c){var d=this.e||(this.e={});return(d[a]||(d[a]=[])).push({fn:b,ctx:c}),this},once:function(a,b,c){var d=this,e=function(){d.off(a,e),b.apply(c,arguments)};return this.on(a,e,c)},emit:function(a){var b=[].slice.call(arguments,1),c=((this.e||(this.e={}))[a]||[]).slice(),d=0,e=c.length;for(d;e>d;d++)c[d].fn.apply(c[d].ctx,b);return this},off:function(a,b){var c=this.e||(this.e={}),d=c[a],e=[];if(d&&b)for(var f=0,g=d.length;g>f;f++)d[f].fn!==b&&e.push(d[f]);return e.length?c[a]=e:delete c[a],this}},b.exports=d},{}],6:[function(a,b,c){"use strict";function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}c.__esModule=!0;var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),f=function(){function a(b){d(this,a),this.resolveOptions(b),this.initSelection()}return a.prototype.resolveOptions=function(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action=a.action,this.emitter=a.emitter,this.target=a.target,this.text=a.text,this.trigger=a.trigger,this.selectedText=""},a.prototype.initSelection=function(){if(this.text&&this.target)throw new Error('Multiple attributes declared, use either "target" or "text"');if(this.text)this.selectFake();else{if(!this.target)throw new Error('Missing required attributes, use either "target" or "text"');this.selectTarget()}},a.prototype.selectFake=function(){var a=this;this.removeFake(),this.fakeHandler=document.body.addEventListener("click",function(){return a.removeFake()}),this.fakeElem=document.createElement("input"),this.fakeElem.style.position="absolute",this.fakeElem.style.left="-9999px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.selectedText=this.text,document.body.appendChild(this.fakeElem),this.fakeElem.select(),this.copyText()},a.prototype.removeFake=function(){this.fakeHandler&&(document.body.removeEventListener("click"),this.fakeHandler=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},a.prototype.selectTarget=function(){if("INPUT"===this.target.nodeName||"TEXTAREA"===this.target.nodeName)this.target.select(),this.selectedText=this.target.value;else{var a=document.createRange(),b=window.getSelection();a.selectNodeContents(this.target),b.addRange(a),this.selectedText=b.toString()}this.copyText()},a.prototype.copyText=function(){var a=void 0;try{a=document.execCommand(this.action)}catch(b){a=!1}this.handleResult(a)},a.prototype.handleResult=function(a){a?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},a.prototype.clearSelection=function(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},e(a,[{key:"action",set:function(){var a=arguments.lLine truncated
+21
View File
@@ -591,7 +591,28 @@
overflow-x: auto; overflow-x: auto;
overflow-y: hidden; overflow-y: hidden;
} }
&.quickstart {
.guide {
.item {
padding: 1em;
small {
font-weight: normal;
}
}
.clone.button:first-child {
border-radius: .28571429rem 0 0 .28571429rem;
}
#repo-clone-url {
border-radius: 0;
width: 100%;
padding: 5px 10px;
font-size: 1.2em;
}
}
}
} }
// End of .repository
.issue.list { .issue.list {
list-style: none; list-style: none;
+1 -1
View File
@@ -1 +1 @@
0.6.15.0926 Beta 0.6.16.1002 Beta
+1
View File
@@ -44,5 +44,6 @@
<script src="{{AppSubUrl}}/js/libs/dropzone-4.0.1.js"></script> <script src="{{AppSubUrl}}/js/libs/dropzone-4.0.1.js"></script>
{{end}} {{end}}
<script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script> <script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script>
<script src="{{AppSubUrl}}/js/libs/clipboard-1.3.1.min.js"></script>
</html> </html>
+1 -1
View File
@@ -20,7 +20,7 @@
<!-- Stylesheet --> <!-- Stylesheet -->
<link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.1.3.min.css"> <link rel="stylesheet" href="{{AppSubUrl}}/css/semantic-2.1.3.min.css">
<link rel="stylesheet" href="{{AppSubUrl}}/css/gogs.min.css?v={{AppVer}}"> <link rel="stylesheet" href="{{AppSubUrl}}/css/gogs.css?v={{AppVer}}">
<!-- JavaScript --> <!-- JavaScript -->
<script src="{{AppSubUrl}}/js/semantic-2.1.3.min.js"></script> <script src="{{AppSubUrl}}/js/semantic-2.1.3.min.js"></script>
+52 -46
View File
@@ -1,55 +1,61 @@
{{template "ng/base/head" .}} {{template "base/head" .}}
{{template "ng/base/header" .}} <div class="repository quickstart">
<div id="repo-wrapper" class="repo-bare"> {{template "repo/header" .}}
<div id="repo-header" class="clear"> <div class="ui container">
<div class="container clear"> <div class="ui grid">
<h1 id="repo-header-name" class="left public"> <div class="sixteen wide column content">
<i class="mega-octicon octicon-{{if .Repository.IsPrivate}}lock{{else}}repo{{end}}"></i> {{template "base/alert" .}}
<a class="author" href="{{AppSubUrl}}/{{.Repository.Owner.Name}}">{{.Repository.Owner.Name}}</a> {{if .IsRepositoryAdmin}}
<span class="divider">/</span> <h4 class="ui top attached header">
<a class="repo text-bold" href="{{.RepoLink}}">{{.Repository.Name}}</a> {{.i18n.Tr "repo.quick_guide"}}
</h1> <div class="ui right">
</div> <a class="ui black tiny button" href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings"}}</a>
</div> </div>
<div id="repo-content" class="clear container"> </h4>
<div id="repo-bare"> <div class="ui attached guide table segment">
<div id="repo-bare-start" class="panel panel-radius"> <div class="item">
<div class="panel-header"> <h3>{{.i18n.Tr "repo.clone_this_repo"}} <small>{{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</small></h3>
<a class="btn btn-small btn-black btn-header btn-radius right" href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings"}}</a> <div class="ui action small input">
<strong>{{.i18n.Tr "repo.quick_guide"}}</strong> {{if not $.DisableSSH}}
</div> <button class="ui blue basic clone button" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}">
<div class="panel-content"> SSH
<div id="repo-clone" class="clear text-center"> </button>
<h2>{{.i18n.Tr "repo.clone_this_repo"}}</h2> {{end}}
{{if not $.DisableSSH}} <button class="ui {{if $.DisableSSH}}blue{{end}} basic clone button" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}">
<button class="btn btn-blue btn-first current left btn-left-radius" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}">SSH</button> HTTPS
{{end}} </button>
<button class="btn {{if $.DisableSSH}}btn-first btn-blue current{{else}}btn-gray{{end}} left" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}">HTTPS</button> <input id="repo-clone-url" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" readonly>
<input id="repo-clone-url" type="text" class="ipt ipt-disabled left" value="{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}" onclick="this.select()" readonly /> <button class="ui basic button poping up clipboard" id="clipboard-btn" data-original="{{.i18n.Tr "repo.copy_link"}}" data-success="{{.i18n.Tr "repo.copy_link_success"}}" data-error="{{.i18n.Tr "repo.copy_link_error"}}" data-content="{{.i18n.Tr "repo.copy_link"}}" data-variation="inverted tiny" data-clipboard-target="#repo-clone-url">
<button class="btn btn-black left btn-right-radius" id="repo-clone-copy" data-copy-val="val" data-copy-from="#repo-clone-url">{{.i18n.Tr "repo.copy_link"}}</button> <i class="octicon octicon-clippy"></i>
<p class="text-center" id="repo-clone-help">{{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}</p> </button>
<hr/> </div>
</div> </div>
<div id="repo-bare-cmd" class="text-center"> <div class="ui divider"></div>
<h2>{{.i18n.Tr "repo.create_new_repo_command"}}</h2>
<pre class="text-left radius"><code>touch README.md <div class="item">
<h3>{{.i18n.Tr "repo.create_new_repo_command"}}</h3>
<div class="markdown">
<pre><code>touch README.md
git init git init
git add README.md git add README.md
git commit -m "first commit" git commit -m "first commit"
git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span> git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span>
git push -u origin master</code></pre> git push -u origin master</code></pre>
<br/>
<hr/>
</div>
<div id="repo-bare-remote" class="text-center">
<h2>{{.i18n.Tr "repo.push_exist_repo"}}</h2>
<pre class="text-left radius"><code>git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span>
git push -u origin master</code></pre>
<br/>
</div>
</div>
</div> </div>
</div>
<div class="ui divider"></div>
<div class="item">
<h3>{{.i18n.Tr "repo.push_exist_repo"}}</h3>
<div class="markdown">
<pre><code>git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span>
git push -u origin master</code></pre>
</div>
</div>
{{end}}
</div> </div>
</div>
</div> </div>
</div>
</div> </div>
{{template "ng/base/footer" .}} {{template "base/footer" .}}