Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f530b791
authored
Feb 19, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: templates for public keys
parent
71c751d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
0 deletions
+53
-0
one/templates/box/key/box.html
+26
-0
one/templates/box/key/entry.html
+27
-0
No files found.
one/templates/box/key/box.html
0 → 100644
View file @
f530b791
{% extends "box/base/box.html" %}
{% load i18n %}
{% load l10n %}
{% get_current_language as LANGUAGE_CODE %}
{% block title %}
{% trans "Public keys" %}
{% endblock title %}
{% block content %}
<ul
class=
"entry-list"
id=
"keys"
>
{% for key in keys %}
{% include "box/key/entry.html" %}
{% endfor %}
<li
class=
"entry small-row"
>
<div
class=
"summary"
id=
"new-key"
>
<div
class=
"name"
>
{% trans "Add public key" %}
</div>
<div
id=
"new-key-form"
>
<input
type=
"text"
placeholder=
"{% trans "
Public
key
in
OpenSSH
format
"
%}"
/>
<input
type=
"submit"
value=
"{% trans "
Add
key
"
%}"
/>
</div>
<div
class=
"clear"
></div>
</div>
</li>
</ul>
{% endblock content %}
one/templates/box/key/entry.html
0 → 100644
View file @
f530b791
{% extends "box/base/entry.html" %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
{% block content %}
<li
class=
"entry"
>
{{block.super}}
</li>
{% endblock content %}
{% block summary %}
<div
class=
"summary"
>
<div
class=
"name"
>
{{key}}
</div>
<div
class=
"actions"
>
<a
href=
"#"
class=
"remove"
data-id=
"{{key.id}}"
>
<img
src=
"/static/icons/minus-circle.png"
alt=
"{% trans 'Remove' %}"
/>
</a>
</div>
<div
class=
"clear"
></div>
</div>
{% endblock summary %}
{% block details %}
<textarea>
{{key.key}}
</textarea>
{% endblock details %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment