capsul-flask/capsulflask/templates/ssh-public-keys.html

60 lines
2.1 KiB
HTML
Raw Permalink Normal View History

{% extends 'base.html' %}
2020-05-11 16:57:39 +00:00
{% block title %}SSH Public Keys{% endblock %}
{% block content %}
2020-05-13 05:28:53 +00:00
<div class="row third-margin">
<h1>SSH PUBLIC KEYS</h1>
</div>
2020-05-13 05:28:53 +00:00
<div class="row third-margin"><div>
{% if has_ssh_public_keys %} <hr/> {% endif %}
2020-05-11 16:57:39 +00:00
{% for ssh_public_key in ssh_public_keys %}
<form method="post">
<input type="hidden" name="method" value="DELETE"></input>
<input type="hidden" name="name" value="{{ ssh_public_key['name'] }}"></input>
<input type="hidden" name="csrf-token" value="{{ csrf_token }}"/>
2020-05-11 16:57:39 +00:00
<div class="row">
<span class="code">{{ ssh_public_key['name'] }}</span>
<span class="dim">{{ ssh_public_key['content'] }}</span>
<input type="submit" value="Delete">
</div>
</form>
{% endfor %}
{% if has_ssh_public_keys %} <hr/> {% endif %}
2020-05-11 16:57:39 +00:00
<div class="third-margin">
<h1>UPLOAD A NEW SSH PUBLIC KEY</h1>
2020-05-11 16:57:39 +00:00
</div>
<form method="post">
<input type="hidden" name="method" value="POST"></input>
<input type="hidden" name="csrf-token" value="{{ csrf_token }}"/>
2020-05-11 16:57:39 +00:00
<div class="row justify-start">
<label class="align" for="content">File Contents</label>
<textarea class="expand" id="content" name="content"></textarea>
2020-05-11 16:57:39 +00:00
</div>
<div class="row justify-start">
<label class="align" for="name">Key Name</label>
<input type="text" id="name" name="name"></input> (defaults to key comment)
2020-05-11 16:57:39 +00:00
</div>
<div class="smalltext">
<p>Paste the contents of your SSH public key file here.
( Something like <span class='code'>~/.ssh/id_rsa.pub</span> )
</p><p>
The contents of this file should look similar to
<span class='code'>ssh-rsa AAAAC3NzaC1l...Yqv== me@my-computer</span>
</p><p>
If you wish, you can <a href="https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key">
generate a new SSH key pair using the ssh-keygen utility</a>.
</p>
</div>
<div class="row justify-end">
<input type="submit" value="Upload">
</div>
</form>
2020-05-13 05:28:53 +00:00
</div></div>
2020-05-11 16:57:39 +00:00
{% endblock %}
{% block pagesource %}/templates/ssh-public-keys.html{% endblock %}