mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-01 07:38:33 -04:00
Update to support showing owner on the infobar
This commit is contained in:
parent
7a85d62b77
commit
3175616573
6 changed files with 55 additions and 8 deletions
|
@ -54,12 +54,19 @@
|
|||
<% if(lastchangeuserprofile) { %>
|
||||
<span class="ui-lastchangeuser"> <i class="ui-user-icon small" style="background-image: url(<%- lastchangeuserprofile.photo %>);" data-toggle="tooltip" data-placement="right" title="<%- lastchangeuserprofile.name %>"></i></span>
|
||||
<% } else { %>
|
||||
<span class="ui-no-lastchangeuser"> <i class="fa fa-clock-o"></i></span>
|
||||
<span class="ui-no-lastchangeuser"> <i class="fa fa-clock-o fa-fw" style="width: 18px;"></i></span>
|
||||
<% } %>
|
||||
<span class="text-uppercase ui-status-lastchange"></span>
|
||||
<span class="ui-lastchange text-uppercase" data-createtime="<%- createtime %>" data-updatetime="<%- updatetime %>"></span>
|
||||
</span>
|
||||
<span class="pull-right"><%- viewcount %> views <a href="#" class="ui-edit" title="Edit this note"><i class="fa fa-fw fa-pencil"></i></a></span>
|
||||
<br>
|
||||
<% if(ownerprofile && owner !== lastchangeuser) { %>
|
||||
<span class="ui-owner">
|
||||
 <i class="ui-user-icon small" style="background-image: url(<%- ownerprofile.photo %>);" data-toggle="tooltip" data-placement="right" title="<%- ownerprofile.name %>"></i>
|
||||
<span class="text-uppercase">owned this note</span>
|
||||
</span>
|
||||
<% } %>
|
||||
</small>
|
||||
</div>
|
||||
<div id="doc" class="container markdown-body"><%- body %></div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue