summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-22 14:47:47 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-22 14:47:47 -0400
commit063aacd436da24c2616d68a838959300978afaa5 (patch)
treee2f08f0371b88cc63bc5b226c632bcdaf9378b62 /templates
parent196efecaaabca797832e62287732a77f02b6b594 (diff)
downloadgitea-063aacd436da24c2616d68a838959300978afaa5.tar.gz
gitea-063aacd436da24c2616d68a838959300978afaa5.zip
UI: Use tooltip not alert when copy clone URL
Diffstat (limited to 'templates')
-rw-r--r--templates/ng/base/head.tmpl4
-rw-r--r--templates/repo/header.tmpl2
2 files changed, 4 insertions, 2 deletions
diff --git a/templates/ng/base/head.tmpl b/templates/ng/base/head.tmpl
index efdc965358..f2348c2483 100644
--- a/templates/ng/base/head.tmpl
+++ b/templates/ng/base/head.tmpl
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<html>
- <head{{if AppSubUrl}} data-suburl="{{AppSubUrl}}"{{end}}>
+ <head data-suburl="{{AppSubUrl}}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="author" content="Gogs - Go Git Service" />
@@ -23,12 +23,14 @@
<!-- Stylesheet -->
<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/ui.css">
<link rel="stylesheet" href="{{AppSubUrl}}/ng/css/gogs.css">
+ <link rel="stylesheet" href="{{AppSubUrl}}/ng/css/tipsy.css">
<link rel="stylesheet" href="{{AppSubUrl}}/ng/fonts/octicons.css">
<link rel="stylesheet" href="{{AppSubUrl}}/css/github.min.css">
<!-- JavaScript -->
<script src="{{AppSubUrl}}/ng/js/lib/tabs.js"></script>
<script src="{{AppSubUrl}}/ng/js/lib/lib.js"></script>
+ <script src="{{AppSubUrl}}/ng/js/lib/jquery.tipsy.js"></script>
<script src="{{AppSubUrl}}/ng/js/gogs.js"></script>
<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 524bfd11e2..699e90461e 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -19,7 +19,7 @@
<button class="btn btn-blue left left btn-left-radius" id="repo-clone-ssh" data-link="{{.CloneLink.SSH}}">SSH</button>
<button class="btn btn-gray left" id="repo-clone-https" data-link="{{.CloneLink.HTTPS}}">HTTPS</button>
<input id="repo-clone-url" class="ipt ipt-disabled left" value="{{.CloneLink.SSH}}" readonly />
- <button id="repo-clone-copy" class="btn btn-black left btn-right-radius" data-copy-val="val" data-copy-from="#repo-clone-url">{{.i18n.Tr "repo.copy_link"}}</button>
+ <button id="repo-clone-copy" class="btn btn-black left btn-right-radius" data-copy-val="val" data-copy-from="#repo-clone-url" original-title="{{.i18n.Tr "repo.click_to_copy"}}" data-original-title="{{.i18n.Tr "repo.click_to_copy"}}" data-after-title="{{.i18n.Tr "repo.copied"}}">{{.i18n.Tr "repo.copy_link"}}</button>
<p class="text-center" id="repo-clone-help">{{.i18n.Tr "repo.clone_helper" | Str2html}}</p>
<hr/>
<div class="text-center" id="repo-clone-zip">