Display favicon in details view

fixes #537
This commit is contained in:
Marcel Klehr 2018-12-31 15:45:52 +01:00
parent 9ce3fa8f10
commit 1bb3b61af0
2 changed files with 6 additions and 1 deletions

View File

@ -564,6 +564,10 @@ button span,
font-size: 23px;
line-height: 1.2;
cursor: text;
background-position: 0px 0px;
background-size: 24px 24px;
background-repeat: no-repeat;
padding-left: 42px;
}
.bookmark-detail h1.empty {

View File

@ -10,11 +10,12 @@
data-attribute="title"
class="<%- !title.trim()? 'empty' : '' %>"
title="<%- t('bookmarks', 'Click to edit title') %>"
style="background-image: url('bookmark/<%- id %>/favicon');"
>
<%- title.trim()? title : t('bookmarks', 'Add a title...') %>
</h1>
<h3><%- t('bookmarks', 'Date added') %></h3>
<span class="icon-calendar-dark" style="display: inline-block"></span><%- new
<span class="icon-calendar-dark" style="display: inline-block"></span> <%- new
Date(Number(added)*1000).toLocaleDateString() %>
<h3><%- t('bookmarks', 'Link') %></h3>
<h2 data-attribute="url">