Merge commit 'fe7d21dfbe0b9dabcb66eaa61c20a5d16c9e175c'
This commit is contained in:
commit
95b866e4f4
@ -311,7 +311,8 @@ def qute_history(url):
|
|||||||
start_time = time.mktime(next_date.timetuple()) - 1
|
start_time = time.mktime(next_date.timetuple()) - 1
|
||||||
history = [
|
history = [
|
||||||
(i["url"], i["title"],
|
(i["url"], i["title"],
|
||||||
datetime.datetime.fromtimestamp(i["time"]/1000))
|
datetime.datetime.fromtimestamp(i["time"]/1000),
|
||||||
|
QUrl(i["url"]).host())
|
||||||
for i in history_data(start_time) if "next" not in i
|
for i in history_data(start_time) if "next" not in i
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -46,7 +46,6 @@ table {
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>Browsing history</h1>
|
<h1>Browsing history</h1>
|
||||||
|
@ -42,9 +42,12 @@ table {
|
|||||||
<table>
|
<table>
|
||||||
<caption class="date">{{curr_date.strftime("%a, %d %B %Y")}}</caption>
|
<caption class="date">{{curr_date.strftime("%a, %d %B %Y")}}</caption>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for url, title, time in history %}
|
{% for url, title, time, host in history %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="title"><a href="{{url}}">{{title}}</a></td>
|
<td class="title">
|
||||||
|
<a href="{{url}}">{{title}}</a>
|
||||||
|
<span class="hostname">{{host}}</span>
|
||||||
|
</td>
|
||||||
<td class="time">{{time.strftime("%X")}}</td>
|
<td class="time">{{time.strftime("%X")}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -38,4 +38,11 @@ td {
|
|||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hostname {
|
||||||
|
color: #858585;
|
||||||
|
font-size: 0.9em;
|
||||||
|
margin-left: 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -111,7 +111,11 @@ window.loadHistory = (function() {
|
|||||||
var link = document.createElement("a");
|
var link = document.createElement("a");
|
||||||
link.href = itemUrl;
|
link.href = itemUrl;
|
||||||
link.innerHTML = itemTitle;
|
link.innerHTML = itemTitle;
|
||||||
|
var host = document.createElement("span");
|
||||||
|
host.className = "hostname";
|
||||||
|
host.innerHTML = link.hostname;
|
||||||
title.appendChild(link);
|
title.appendChild(link);
|
||||||
|
title.appendChild(host);
|
||||||
|
|
||||||
var time = document.createElement("td");
|
var time = document.createElement("td");
|
||||||
time.className = "time";
|
time.className = "time";
|
||||||
|
Loading…
Reference in New Issue
Block a user