mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 10:08:09 +00:00 
			
		
		
		
	Fix mirror UI style and work on #475
This commit is contained in:
		
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
				
			|||||||
	"github.com/gogits/gogs/modules/setting"
 | 
						"github.com/gogits/gogs/modules/setting"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const APP_VER = "0.5.1.0915 Beta"
 | 
					const APP_VER = "0.5.1.0916 Beta"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
						runtime.GOMAXPROCS(runtime.NumCPU())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,6 +14,7 @@ import (
 | 
				
			|||||||
	"os/exec"
 | 
						"os/exec"
 | 
				
			||||||
	"path"
 | 
						"path"
 | 
				
			||||||
	"path/filepath"
 | 
						"path/filepath"
 | 
				
			||||||
 | 
						"runtime"
 | 
				
			||||||
	"strings"
 | 
						"strings"
 | 
				
			||||||
	"sync"
 | 
						"sync"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
@@ -160,10 +161,14 @@ func saveAuthorizedKeyFile(key *PublicKey) error {
 | 
				
			|||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		return err
 | 
							return err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if finfo.Mode().Perm() > 0600 {
 | 
					
 | 
				
			||||||
		log.Error(4, "authorized_keys file has unusual permission flags: %s - setting to -rw-------", finfo.Mode().Perm().String())
 | 
						// FIXME: following command does not support in Windows.
 | 
				
			||||||
		if err = f.Chmod(0600); err != nil {
 | 
						if runtime.GOOS != "windows" {
 | 
				
			||||||
			return err
 | 
							if finfo.Mode().Perm() > 0600 {
 | 
				
			||||||
 | 
								log.Error(4, "authorized_keys file has unusual permission flags: %s - setting to -rw-------", finfo.Mode().Perm().String())
 | 
				
			||||||
 | 
								if err = f.Chmod(0600); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -686,7 +686,7 @@ ol.linenums {
 | 
				
			|||||||
  width: auto;
 | 
					  width: auto;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
The dashboard page style
 | 
					    The dashboard page style
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
#dashboard-header {
 | 
					#dashboard-header {
 | 
				
			||||||
  border-bottom: 1px solid #d6d6d6;
 | 
					  border-bottom: 1px solid #d6d6d6;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,9 +1,7 @@
 | 
				
			|||||||
@import "../ui/var";
 | 
					@import "../ui/var";
 | 
				
			||||||
 | 
					 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
The dashboard page style
 | 
					    The dashboard page style
 | 
				
			||||||
*/
 | 
					*/
 | 
				
			||||||
 | 
					 | 
				
			||||||
@dashboardHeaderBorderColor: #D6D6D6;
 | 
					@dashboardHeaderBorderColor: #D6D6D6;
 | 
				
			||||||
@dashboardHeaderLinkColor: #444;
 | 
					@dashboardHeaderLinkColor: #444;
 | 
				
			||||||
@dashboardHeaderLinkHoverColor: #D9453D;
 | 
					@dashboardHeaderLinkHoverColor: #D9453D;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
0.5.1.0915 Beta
 | 
					0.5.1.0916 Beta
 | 
				
			||||||
@@ -9,7 +9,7 @@
 | 
				
			|||||||
                <div class="avatar left">
 | 
					                <div class="avatar left">
 | 
				
			||||||
                    <img class="avatar-30" src="{{AvatarLink .GetActEmail}}" alt="">
 | 
					                    <img class="avatar-30" src="{{AvatarLink .GetActEmail}}" alt="">
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
                <div class="content left {{if eq .GetOpType 5}}push-news{{end}}">
 | 
					                <div class="content left {{if eq .GetOpType 5}}push-news{{end}} grid-4-5">
 | 
				
			||||||
                    <p class="text-bold">
 | 
					                    <p class="text-bold">
 | 
				
			||||||
                        <a href="/{{.GetActUserName}}">{{.GetActUserName}}</a>
 | 
					                        <a href="/{{.GetActUserName}}">{{.GetActUserName}}</a>
 | 
				
			||||||
                        {{if eq .GetOpType 1}}
 | 
					                        {{if eq .GetOpType 1}}
 | 
				
			||||||
@@ -30,7 +30,7 @@
 | 
				
			|||||||
                            {{ $push := ActionContent2Commits .}}
 | 
					                            {{ $push := ActionContent2Commits .}}
 | 
				
			||||||
                            {{ $repoLink := .GetRepoLink}}
 | 
					                            {{ $repoLink := .GetRepoLink}}
 | 
				
			||||||
                            {{range $push.Commits}}
 | 
					                            {{range $push.Commits}}
 | 
				
			||||||
                            <li><img class="avatar-16" src="{{AvatarLink .AuthorEmail}}?s=16"> <a href="/{{$repoLink}}/commit/{{.Sha1}}">{{ShortSha .Sha1}}</a> {{.Message}}</li>
 | 
					                            <li><img class="avatar-16" src="{{AvatarLink .AuthorEmail}}?s=16"> <a href="/{{$repoLink}}/commit/{{.Sha1}}">{{ShortSha .Sha1}}</a> <span class="text-truncate grid-4-5">{{.Message}}</span></li>
 | 
				
			||||||
                            {{end}}
 | 
					                            {{end}}
 | 
				
			||||||
                        </ul>
 | 
					                        </ul>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user