trilium/src/views/title.ejs

78 lines
4.9 KiB
Text
Raw Normal View History

<div class="note-title-row">
2019-05-01 15:52:45 +08:00
<div style="display: flex; align-items: center;">
<div class="dropdown hide-toggle">
2019-05-02 05:06:18 +08:00
<button class="btn btn-sm dropdown-toggle note-path-list-button" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="note-path-count">1 path</span>
2019-05-01 15:52:45 +08:00
<span class="caret"></span>
</button>
2019-05-02 05:06:18 +08:00
<ul class="note-path-list dropdown-menu" aria-labelledby="note-path-list-button">
2019-05-01 15:52:45 +08:00
</ul>
</div>
2019-05-02 05:06:18 +08:00
<input autocomplete="off" value="" class="note-title" tabindex="1">
2019-05-01 15:52:45 +08:00
2019-05-02 05:06:18 +08:00
<span class="saved-indicator jam jam-check" title="All changes have been saved"></span>
2019-05-01 15:52:45 +08:00
<div class="hide-toggle" style="display: flex; align-items: center;">
2019-05-02 05:06:18 +08:00
<button class="btn btn-sm icon-button jam jam-play render-button"
2019-05-01 15:52:45 +08:00
style="display: none; margin-right: 10px;"
2019-05-02 05:06:18 +08:00
title="Render"></button>
2019-05-01 15:52:45 +08:00
2019-05-02 05:06:18 +08:00
<button class="btn btn-sm icon-button jam jam-play execute-script-button"
2019-05-01 15:52:45 +08:00
style="display: none; margin-right: 10px;"
2019-05-02 05:06:18 +08:00
title="Execute (Ctrl+Enter)"></button>
2019-05-01 15:52:45 +08:00
<div class="btn-group btn-group-xs">
<button type="button"
2019-05-02 05:06:18 +08:00
class="btn btn-sm icon-button jam jam-shield-check protect-button"
2019-05-01 15:52:45 +08:00
title="Protected note can be viewed and edited only after entering password">
</button>
<button type="button"
2019-05-02 05:06:18 +08:00
class="btn btn-sm icon-button jam jam-shield-close unprotect-button"
2019-05-01 15:52:45 +08:00
title="Not protected note can be viewed without entering password">
</button>
</div>
&nbsp; &nbsp;
2019-05-02 05:06:18 +08:00
<div class="note-type-wrapper" style="display: flex;">
<div class="dropdown note-type">
2019-05-01 15:52:45 +08:00
<button data-bind="disable: isDisabled()" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle">
Type: <span data-bind="text: typeString()"></span>
<span class="caret"></span>
</button>
2019-05-02 05:06:18 +08:00
<div class="note-type-dropdown dropdown-menu dropdown-menu-right">
2019-05-01 15:52:45 +08:00
<a class="dropdown-item" data-bind="click: selectText, css: { selected: type() == 'text' }"><span class="check">&check;</span> <strong>Text</strong></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" data-bind="click: selectRelationMap, css: { selected: type() == 'relation-map' && mime() == '' }"><span class="check">&check;</span> <strong>Relation Map</strong></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" data-bind="click: selectRender, css: { selected: type() == 'render' && mime() == '' }"><span class="check">&check;</span> <strong>Render HTML note</strong></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" data-bind="click: selectCode, css: { selected: type() == 'code' && mime() == '' }"><span class="check">&check;</span> <strong>Code</strong></a>
<!-- ko foreach: codeMimeTypes -->
<a class="dropdown-item" data-bind="click: $parent.selectCodeMime, css: { selected: $parent.type() == 'code' && $parent.mime() == mime }"><span class="check">&check;</span> <span data-bind="text: title"></span></a>
<!-- /ko -->
</div>
</div>
2019-05-02 05:06:18 +08:00
<div class="dropdown note-actions">
2019-05-01 15:52:45 +08:00
<button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-sm dropdown-toggle">
Note actions
<span class="caret"></span>
</button>
<div class="dropdown-menu dropdown-menu-right">
2019-05-02 05:06:18 +08:00
<a class="dropdown-item show-note-revisions-button" data-bind="css: { disabled: type() == 'file' || type() == 'image' }">Revisions</a>
2019-05-01 15:52:45 +08:00
<a class="dropdown-item show-attributes-button"><kbd>Alt+A</kbd> Attributes</a>
2019-06-02 21:35:57 +08:00
<a class="dropdown-item show-link-map-button">Link map</a>
2019-05-02 05:06:18 +08:00
<a class="dropdown-item show-source-button" data-bind="css: { disabled: type() != 'text' && type() != 'code' && type() != 'relation-map' && type() != 'search' }">Note source</a>
<a class="dropdown-item import-files-button">Import files</a>
<a class="dropdown-item export-note-button" data-bind="css: { disabled: type() != 'text' }">Export note</a>
<a class="dropdown-item show-note-info-button">Note info</a>
2019-05-01 15:52:45 +08:00
</div>
</div>
</div>
</div>
</div>
</div>