forked from prose/prose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoolbar.html
70 lines (69 loc) · 2.68 KB
/
toolbar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<% if (toolbar.draft) { %>
<a href='#' class='draft-to-post round contain'>
<%= t('actions.draft.toPost') %><span class='ico small checkmark'></span>
<span class='popup round arrow-top'><%= t('actions.draft.toPostInfo') %></span>
</a>
<% } else { %>
<% if (toolbar.metadata && toolbar.metadata.published) { %>
<a href='#' class='publish-flag published round contain' data-state='true'>
<%= t('actions.publishing.published') %><span class='ico small checkmark'></span>
</a>
<% } else if (toolbar.metadata && !toolbar.metadata.published) { %>
<a href='#' class='publish-flag round contain' data-state='false'>
<%= t('actions.publishing.unpublished') %><span class='ico small checkmark'></span>
</a>
<% } %>
<% } %>
<% if (toolbar.markdown) { %>
<div class='options clearfix'>
<ul class='group round clearfix'>
<li><a href='#' title="<%= t('toolbar.heading') %>" data-key='heading' data-snippet='<% print("##\n\n") %>'>h2</a></li>
<li><a href='#' title="<%= t('toolbar.subHeading') %>" data-key='sub-heading' data-snippet='<% print("###\n\n") %>'>h3</a></li>
</ul>
<ul class='group round clearfix'>
<li>
<a title="<%= t('toolbar.link') %>" href='#' data-key='link' data-snippet=false data-dialog=true>
<span class='ico small link'></span>
</a>
</li>
<li>
<a title="<%= t('toolbar.image') %>" href='#' data-key='media' data-snippet=false data-dialog=true>
<span class='ico small picture'></span>
</a>
</li>
</ul>
<ul class='group round clearfix'>
<li><a href='#' title="<%= t('toolbar.bold') %>" data-key='bold' data-snippet='****'>B</a></li>
<li>
<a data-key='italic' href='#' title="<%= t('toolbar.italic') %>" data-snippet='__'>
<span class='ico small italic'></span>
</a>
</li>
</ul>
<ul class='group round clearfix'>
<li>
<a title="<%= t('toolbar.blockquote') %>" href='#' data-key='quote' data-snippet='<% print("> We loved with a love that was more than love\n\n"); %>'>
<span class='ico small quote'></span>
</a>
</li>
<li>
<a href='#' title="<%= t('toolbar.list') %>" data-key='list' data-snippet='-'>
<span class='ico small list'></span>
</a>
</li>
<li>
<a href='#' title="<%= t('toolbar.numberedlist') %>" data-key='numbered-list' data-snippet='1.'>
<span class='ico small numbered-list'></span>
</a>
</li>
</ul>
<ul class='group round clearfix'>
<li>
<a class='round' title="<%= t('toolbar.help') %>" href='#' data-key='help' data-snippet=false data-dialog=true>
<span class='ico small question'></span>
</a>
</li>
</ul>
</div>
<% } %>
<div id='dialog'></div>