forgejo-federation/templates/user/publickey.tmpl

59 lines
3.3 KiB
Cheetah
Raw Normal View History

2014-03-10 14:24:52 +05:30
{{template "base/head" .}}
{{template "base/navbar" .}}
2014-03-25 16:14:37 +05:30
<div id="body" class="container" data-page="user">
2014-03-19 04:01:54 +05:30
{{template "user/setting_nav" .}}
2014-03-25 16:14:37 +05:30
<div id="user-setting-container" class="col-md-9">
<div id="ssh-keys">
2014-04-14 06:30:12 +05:30
<h4>SSH Keys</h4>
{{template "base/alert" .}}
2014-03-25 16:14:37 +05:30
<ul id="ssh-keys-list" class="list-group">
<li class="list-group-item"><span class="name">SSH Key's name</span></li>
{{range .Keys}}
2014-03-10 14:24:52 +05:30
<li class="list-group-item">
<span class="name">{{.Name}}</span>
2014-03-16 15:46:03 +05:30
<span class="print">({{.Fingerprint}})</span>
<button href="#" class="btn btn-danger delete pull-right" rel="{{.Id}}" data-del="{{.Id}}">Delete</button>
</li>
{{end}}
2014-03-10 14:24:52 +05:30
<li class="list-group-item">
2014-03-25 16:14:37 +05:30
<a class="btn btn-link btn-primary" href="#ssh-add-modal" id="ssh-add" data-toggle="modal">Add SSH Key</a>
2014-03-10 14:24:52 +05:30
</li>
</ul>
<div class="modal fade" id="ssh-add-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<form class="modal-content form-horizontal" id="ssh-form" method="post" action="/user/settings/ssh/">
2014-03-22 23:14:02 +05:30
{{.CsrfTokenHtml}}
2014-03-10 14:24:52 +05:30
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">Add SSH Key</h4>
</div>
2014-03-11 06:18:58 +05:30
2014-03-10 14:24:52 +05:30
<div class="modal-body">
<div class="form-group">
<label class="col-md-3 control-label">Key Name<strong class="text-danger">*</strong></label>
2014-03-10 14:24:52 +05:30
<div class="col-md-8">
<input name="keyname" class="form-control" placeholder="Type your preferred name" required="required">
</div>
</div>
2014-03-11 06:18:58 +05:30
2014-03-10 14:24:52 +05:30
<div class="form-group">
<label class="col-md-3 control-label">SSH Key<strong class="text-danger">*</strong></label>
<div class="col-md-8">
<textarea name="key_content" class="form-control" placeholder="Type your key content" required="required"></textarea>
</div>
</div>
</div>
2014-03-11 06:18:58 +05:30
2014-03-10 14:24:52 +05:30
<div class="modal-footer">
2014-03-10 18:42:49 +05:30
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary">Save SSH Key</button>
2014-03-10 14:24:52 +05:30
</div>
</form>
</div>
</div>
2014-03-11 06:18:58 +05:30
<p><strong>Need help?</strong> Check out the guide to <a href="https://help.github.com/articles/generating-ssh-keys" target="_blank">generating SSH keys</a> or troubleshoot <a href="https://help.github.com/ssh-issues/" target="_blank">common SSH Problems</a></p>
2014-03-10 14:24:52 +05:30
</div>
</div>
</div>
{{template "base/footer" .}}