tpl
This commit is contained in:
parent
91192b8a4f
commit
561a192db7
@ -2,7 +2,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Go by Example: {{.Name}}</title>
|
<title>Go в примерах: {{.Name}}</title>
|
||||||
<link rel=stylesheet href="site.css">
|
<link rel=stylesheet href="site.css">
|
||||||
</head>
|
</head>
|
||||||
<script>
|
<script>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</script>
|
</script>
|
||||||
<body>
|
<body>
|
||||||
<div class="example" id="{{.ID}}">
|
<div class="example" id="{{.ID}}">
|
||||||
<h2><a href="./">Go by Example</a>: {{.Name}}</h2>
|
<h2><a href="./">Go в примерах</a>: {{.Name}}</h2>
|
||||||
{{range .Segs}}
|
{{range .Segs}}
|
||||||
<table>
|
<table>
|
||||||
{{range .}}
|
{{range .}}
|
||||||
@ -30,7 +30,7 @@
|
|||||||
{{.DocsRendered}}
|
{{.DocsRendered}}
|
||||||
</td>
|
</td>
|
||||||
<td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}">
|
<td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}">
|
||||||
{{if .CodeRun}}<a href="http://play.golang.org/p/{{$.URLHash}}"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />{{end}}
|
{{if .CodeRun}}<a href="http://play.golang.org/p/{{$.URLHash}}" target="_blank"><img title="Run code" src="play.png" class="run" /></a><img title="Copy code" src="clipboard.png" class="copy" />{{end}}
|
||||||
{{.CodeRendered}}
|
{{.CodeRendered}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -39,7 +39,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
{{if .NextExample}}
|
{{if .NextExample}}
|
||||||
<p class="next">
|
<p class="next">
|
||||||
Next example: <a href="{{.NextExample.ID}}">{{.NextExample.Name}}</a>.
|
Следующий пример: <a href="{{.NextExample.ID}}">{{.NextExample.Name}}</a>.
|
||||||
</p>
|
</p>
|
||||||
{{end}}
|
{{end}}
|
||||||
<p class="footer">
|
<p class="footer">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user