reviewed changes

This commit is contained in:
ARvind Tiwari 2017-08-03 22:00:41 +05:30
commit 0993d8c106
7 changed files with 41 additions and 206 deletions

View file

@ -85,7 +85,7 @@
<ul id="g-account-menu" class="dropdown-menu" role="menu">
<li>
<a href="{% url 'hosting:ssh_keys' %}">
<i class="fa fa-key"></i> SSH Keys
<i class="fa fa-key"></i> {% trans "SSH Keys" %}
</a>
</li>
<li>

View file

@ -53,11 +53,9 @@
window.onload = function () {
{% for user_key in keys %}
// var locale_date = new Date(document.getElementById("ssh-created_at-{{user_key.id}}").textContent).toISOString();
var locale_date = moment.utc(document.getElementById("ssh-created_at-{{user_key.id}}").textContent,'YYYY-MM-DD HH:mm').toDate();
locale_date = moment(locale_date).format("YYYY-MM-DD h:mm:ss a");
document.getElementById('ssh-created_at-{{user_key.id}}').innerHTML = locale_date;
{% endfor %}
};