summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/branch_selector_field.tmpl
diff options
context:
space:
mode:
authorZsombor <gzsombor@users.noreply.github.com>2017-08-24 14:30:27 +0200
committerLauris BH <lauris@nix.lv>2017-08-24 15:30:27 +0300
commitda230a287264d38156e950a3149e43f65599e65b (patch)
tree4c5f4d16186f2d201515f77fdf99e9d3fc90df95 /templates/repo/issue/branch_selector_field.tmpl
parent174255e74ee2c07e685913ab8bce08fc046569f0 (diff)
downloadgitea-da230a287264d38156e950a3149e43f65599e65b.tar.gz
gitea-da230a287264d38156e950a3149e43f65599e65b.zip
Add possibility to record branch or tag information in an issue (#780)
Diffstat (limited to 'templates/repo/issue/branch_selector_field.tmpl')
-rw-r--r--templates/repo/issue/branch_selector_field.tmpl41
1 files changed, 41 insertions, 0 deletions
diff --git a/templates/repo/issue/branch_selector_field.tmpl b/templates/repo/issue/branch_selector_field.tmpl
new file mode 100644
index 0000000000..72b953b666
--- /dev/null
+++ b/templates/repo/issue/branch_selector_field.tmpl
@@ -0,0 +1,41 @@
+<input id="ref_selector" name="ref" type="hidden" value="{{.Issue.Ref}}">
+<div class="ui {{if .ReadOnly}}disabled{{end}} floating filter select-branch dropdown" data-no-results="{{.i18n.Tr "repo.pulls.no_results"}}">
+ <div class="ui basic small button">
+ <span class="text branch-name">{{if .Issue.Ref}}{{.Issue.Ref}}{{else}}{{.i18n.Tr "repo.issues.no_ref"}}{{end}}</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.filter_branch_and_tag"}}...">
+ </div>
+ <div class="header">
+ <div class="ui grid">
+ <div class="two column row">
+ <a class="reference column" href="#" data-target="#branch-list">
+ <span class="text black">
+ <i class="octicon octicon-git-branch"></i> {{.i18n.Tr "repo.branches"}}
+ </span>
+ </a>
+ <a class="reference column" href="#" data-target="#tag-list">
+ <span class="text">
+ <i class="reference tags icon"></i> {{.i18n.Tr "repo.tags"}}
+ </span>
+ </a>
+ </div>
+ </div>
+ </div>
+ <div id="branch-list" class="scrolling menu reference-list-menu">
+ {{range .Branches}}
+ <div class="item" data-id="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
+ {{end}}
+ </div>
+ <div id="tag-list" class="scrolling menu reference-list-menu" style="display: none">
+ {{range .Tags}}
+ <div class="item" data-id="{{.}}" data-id-selector="#ref_selector">{{.}}</div>
+ {{end}}
+ </div>
+ </div>
+</div>
+
+<div class="ui divider"></div>