Explorar o código

Add commit link for file list

Unknown %!s(int64=11) %!d(string=hai) anos
pai
achega
f31151e681
Modificáronse 2 ficheiros con 10 adicións e 14 borrados
  1. 1 1
      README.md
  2. 9 13
      templates/repo/single.tmpl

+ 1 - 1
README.md

@@ -5,7 +5,7 @@ Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language.
 
 Since we choose to use pure Go implementation of Git manipulation, Gogs certainly supports **ALL platforms**  that Go supports, including Linux, Max OS X, and Windows with **ZERO** dependency.
 
-##### Current version: 0.0.9 Alpha
+##### Current version: 0.1.0 Alpha
 
 ## Purpose
 

+ 9 - 13
templates/repo/single.tmpl

@@ -60,23 +60,19 @@
                     <i class="fa {{if .IsDir}}fa-folder{{else}}fa-file-text-o{{end}}"></i>
                 </td>
                 <td class="name">
-                            <span class="wrap">
-                                {{if .IsDir}}
-                                <a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{.Path}}">{{.Name}}</a>
-                                {{else}}
-                                <a href="/{{$username}}/{{$reponame}}/blob/{{$branchname}}/{{.Name}}">{{.Name}}</a>
-                                {{end}}
-                            </span>
+                    <span class="wrap">
+                        {{if .IsDir}}
+                        <a href="/{{$username}}/{{$reponame}}/tree/{{$branchname}}/{{.Path}}">{{.Name}}</a>
+                        {{else}}
+                        <a href="/{{$username}}/{{$reponame}}/blob/{{$branchname}}/{{.Name}}">{{.Name}}</a>
+                        {{end}}
+                    </span>
                 </td>
                 <td class="text">
-                            <span class="wrap">
-                                {{.Message}}
-                            </span>
+                    <span class="wrap"><a href="/{{$username}}/{{$reponame}}/commit/{{.LastCommit}}">{{.Message}}</a></span>
                 </td>
                 <td class="date">
-                            <span class="wrap">
-                                {{TimeSince .Created}}
-                            </span>
+                    <span class="wrap">{{TimeSince .Created}}</span>
                 </td>
                 </tr>
                 {{end}}