Show hostname in history page.

This commit is contained in:
Imran Sobir 2017-04-24 10:59:11 +05:00
parent 38294c1ca6
commit 18082526f4
2 changed files with 11 additions and 0 deletions

View File

@ -47,6 +47,13 @@ table {
text-align: center;
}
.hostname {
color: #858585;
font-size: 0.9em;
margin-left: 10px;
text-decoration: none;
}
{% endblock %}
{% block content %}
<h1>Browsing history</h1>

View File

@ -111,7 +111,11 @@ window.loadHistory = (function() {
var link = document.createElement("a");
link.href = itemUrl;
link.innerHTML = itemTitle;
var host = document.createElement("span");
host.className = "hostname";
host.innerHTML = link.hostname;
title.appendChild(link);
title.appendChild(host);
var time = document.createElement("td");
time.className = "time";