aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/wiki
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-30 20:45:55 -0500
committerUnknwon <u@gogs.io>2015-11-30 20:45:55 -0500
commit830d00066785d131413d1de11ce301bf1f0b818a (patch)
treedd22bc4ecc89692146776d335d08c04722650f3f /templates/repo/wiki
parent5d1f5f32d069ee58a9eb89072231d92dc9ec5f74 (diff)
downloadgitea-830d00066785d131413d1de11ce301bf1f0b818a.tar.gz
gitea-830d00066785d131413d1de11ce301bf1f0b818a.zip
finish wiki
Diffstat (limited to 'templates/repo/wiki')
-rw-r--r--templates/repo/wiki/view.tmpl61
1 files changed, 44 insertions, 17 deletions
diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl
index a23076ef2a..fe8b5b3b36 100644
--- a/templates/repo/wiki/view.tmpl
+++ b/templates/repo/wiki/view.tmpl
@@ -3,24 +3,51 @@
{{template "repo/header" .}}
<div class="ui container">
{{template "repo/sidebar" .}}
- <div class="choose page">
- <div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
- <div class="ui basic small button">
- <span class="text">
- {{.i18n.Tr "repo.wiki.page"}}:
- <strong>{{.title}}</strong>
- </span>
- <i class="dropdown icon"></i>
- </div>
- <div class="menu">
- <div class="ui icon search input">
- <i class="filter icon"></i>
- <input name="search" placeholder="{{.i18n.Tr "repo.wiki.filter_page"}}...">
+ <div class="ui grid">
+ <div class="ui ten wide column">
+ <div class="choose page">
+ <div class="ui floating filter dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
+ <div class="ui basic small button">
+ <span class="text">
+ {{.i18n.Tr "repo.wiki.page"}}:
+ <strong>{{.title}}</strong>
+ </span>
+ <i class="dropdown icon"></i>
+ </div>
+ <div class="menu">
+ <div class="ui icon search input">
+ <i class="filter icon"></i>
+ <input name="search" placeholder="{{.i18n.Tr "repo.wiki.filter_page"}}...">
+ </div>
+ <div class="scrolling menu" {{if .IsTag}}style="display: none"{{end}}>
+ {{range .Pages}}
+ <div class="item {{if eq $.Title .Name}}selected{{end}}" data-url="{{$.RepoLink}}/wiki/{{.URL}}">{{.Name}}</div>
+ {{end}}
+ </div>
+ </div>
</div>
- <div class="scrolling menu" {{if .IsTag}}style="display: none"{{end}}>
- {{range .Pages}}
- <div class="item {{if eq $.Title .Name}}selected{{end}}" data-url="{{$.RepoLink}}/wiki/{{.URL}}">{{.Name}}</div>
- {{end}}
+ </div>
+ </div>
+ <div class="ui six wide column">
+ <div class="ui action small input" id="clone-panel">
+ {{if not $.DisableSSH}}
+ <button class="ui blue basic clone button" id="repo-clone-ssh" data-link="{{.WikiCloneLink.SSH}}">
+ SSH
+ </button>
+ {{end}}
+ <button class="ui {{if $.DisableSSH}}blue{{end}} basic clone button" id="repo-clone-https" data-link="{{.WikiCloneLink.HTTPS}}">
+ {{if UseHTTPS}}HTTPS{{else}}HTTP{{end}}
+ </button>
+ <input id="repo-clone-url" value="{{if $.DisableSSH}}{{$.WikiCloneLink.HTTPS}}{{else}}{{$.WikiCloneLink.SSH}}{{end}}" readonly>
+ <button class="ui basic icon 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">
+ <i class="octicon octicon-clippy"></i>
+ </button>
+ <div class="ui basic jump dropdown icon button">
+ <i class="download icon"></i>
+ <div class="menu">
+ <a class="item" href="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.zip"><i class="icon octicon octicon-file-zip"></i> ZIP</a>
+ <a class="item" href="{{$.RepoLink}}/archive/{{EscapePound $.BranchName}}.tar.gz"><i class="icon octicon octicon-file-zip"></i> TAR.GZ</a>
+ </div>
</div>
</div>
</div>