aboutsummaryrefslogtreecommitdiff
path: root/linaro_lava_ldap/templates/linaro_lava_ldap/index.html
diff options
context:
space:
mode:
authorSenthil Kumaran S <senthil.kumaran@linaro.org>2015-02-12 14:33:12 +0530
committerSenthil Kumaran S <senthil.kumaran@linaro.org>2015-02-12 14:33:12 +0530
commit608252b0b7afc524fdd4b79575842061fbb824b9 (patch)
tree20b4e90e7265990cc8351f6eb71a7bbc1961da9e /linaro_lava_ldap/templates/linaro_lava_ldap/index.html
Initial commit.
Diffstat (limited to 'linaro_lava_ldap/templates/linaro_lava_ldap/index.html')
-rw-r--r--linaro_lava_ldap/templates/linaro_lava_ldap/index.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/linaro_lava_ldap/templates/linaro_lava_ldap/index.html b/linaro_lava_ldap/templates/linaro_lava_ldap/index.html
new file mode 100644
index 0000000..5ce9ceb
--- /dev/null
+++ b/linaro_lava_ldap/templates/linaro_lava_ldap/index.html
@@ -0,0 +1,59 @@
+{% extends "layouts/content-bootstrap.html" %}
+{% load i18n %}
+
+{% block styles %}
+ <style>
+ .modal-lg
+ {
+ width: 1100px;
+ }
+ </style>
+{% endblock %}
+
+{% block content %}
+<h2>Hi {% firstof user.first_name user.username %}</h2>
+<div class="row">
+ <div class="col-md-12">
+ <h4 class="modal-header">Profile information from LDAP</h4>
+ <dl class="dl-horizontal">
+ <dt>Timezone</dt>
+ <dd>UTC {{ profile.time_zone|default:"??" }}</dd>
+ </dl>
+ </div>
+ <div class="col-md-12">
+ <h5 class="modal-header">SSH Keys</h5>
+ <table class="table table-striped table-hover">
+ <thead>
+ <th>No.</th>
+ <th>Type</th>
+ <th>Name</th>
+ <th>View</th>
+ </thead>
+ <tbody>
+ {% for key in ssh_keys %}
+ <tr>
+ <td>{{ key.0 }}</td>
+ <td>{{ key.1 }}</td>
+ <td>{{ key.3 }}</td>
+ <td><button class="btn btn-xs btn-success" data-toggle="modal" data-target="#hashModal{{ key.0 }}" title="View SSH Key"><span class="glyphicon glyphicon-eye-open"></span></button>
+ <div class="modal fade" id="hashModal{{ key.0 }}" tabindex="-1" role="dialog" aria-labelledby="hashModal{{ key.0 }}Label" aria-hidden="true">
+ <div class="modal-dialog modal-lg">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
+ <h3 class="modal-title" id="hashModal{{ key.0 }}Label">SSH Key {{ key.3 }}</h3>
+ </div>
+ <div class="modal-body">
+ <code>{{ key.2 }}</code>
+ </div>
+ </div>
+ </div>
+ </div>
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+</div>
+{% endblock %}