tpl
This commit is contained in:
parent
91192b8a4f
commit
561a192db7
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Go by Example: {{.Name}}</title>
|
||||
<title>Go в примерах: {{.Name}}</title>
|
||||
<link rel=stylesheet href="site.css">
|
||||
</head>
|
||||
<script>
|
||||
@ -21,7 +21,7 @@
|
||||
</script>
|
||||
<body>
|
||||
<div class="example" id="{{.ID}}">
|
||||
<h2><a href="./">Go by Example</a>: {{.Name}}</h2>
|
||||
<h2><a href="./">Go в примерах</a>: {{.Name}}</h2>
|
||||
{{range .Segs}}
|
||||
<table>
|
||||
{{range .}}
|
||||
@ -30,7 +30,7 @@
|
||||
{{.DocsRendered}}
|
||||
</td>
|
||||
<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}}
|
||||
</td>
|
||||
</tr>
|
||||
@ -39,7 +39,7 @@
|
||||
{{end}}
|
||||
{{if .NextExample}}
|
||||
<p class="next">
|
||||
Next example: <a href="{{.NextExample.ID}}">{{.NextExample.Name}}</a>.
|
||||
Следующий пример: <a href="{{.NextExample.ID}}">{{.NextExample.Name}}</a>.
|
||||
</p>
|
||||
{{end}}
|
||||
<p class="footer">
|
||||
|
Loading…
x
Reference in New Issue
Block a user