2015-05-04 07:53:29 +00:00
|
|
|
<div class="row ui-content" style="display: none;">
|
2015-09-25 10:55:56 +00:00
|
|
|
<div class="ui-edit-area unselectable">
|
2015-05-04 07:53:29 +00:00
|
|
|
<textarea id="textit"></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="ui-view-area">
|
2015-09-25 10:55:56 +00:00
|
|
|
<div class="ui-infobar container-fluid unselectable hidden-print">
|
2015-07-01 16:10:20 +00:00
|
|
|
<small>
|
2016-01-12 14:01:42 +00:00
|
|
|
<span>
|
2016-03-15 02:45:02 +00:00
|
|
|
<span class="ui-lastchangeuser" style="display: none;"> <i class="ui-user-icon small" data-toggle="tooltip" data-placement="right"></i></span>
|
2016-10-10 12:32:20 +00:00
|
|
|
<span class="ui-no-lastchangeuser"> <i class="fa fa-clock-o fa-fw" style="width: 18px;"></i></span>
|
2016-04-20 10:03:55 +00:00
|
|
|
<span class="text-uppercase ui-status-lastchange"></span>
|
2016-01-12 14:01:42 +00:00
|
|
|
<span class="ui-lastchange text-uppercase"></span>
|
|
|
|
</span>
|
2015-07-01 16:10:20 +00:00
|
|
|
<span class="ui-permission dropdown pull-right">
|
2016-07-30 04:19:42 +00:00
|
|
|
<a id="permissionLabel" class="ui-permission-label text-uppercase" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
2015-07-01 16:10:20 +00:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="permissionLabel">
|
2016-12-21 13:36:54 +00:00
|
|
|
<li class="ui-permission-freely"<% if(!allowAnonymous) { %> style="display: none;"<% } %>><a><i class="fa fa-leaf fa-fw"></i> Freely - Anyone can edit</a></li>
|
2017-04-05 15:07:18 +00:00
|
|
|
<li class="ui-permission-editable"><a><i class="fa fa-shield fa-fw"></i> Editable - Signed-in people can edit</a></li>
|
|
|
|
<li class="ui-permission-limited"><a><i class="fa fa-id-card fa-fw"></i> Limited - Signed-in people can edit (forbid guests)</a></li>
|
2017-01-10 06:13:30 +00:00
|
|
|
<li class="ui-permission-locked"><a><i class="fa fa-lock fa-fw"></i> Locked - Only owner can edit</a></li>
|
2017-04-05 14:16:15 +00:00
|
|
|
<li class="ui-permission-protected"><a><i class="fa fa-umbrella fa-fw"></i> Protected - Only owner can edit (forbid guests)</a></li>
|
2017-01-12 11:04:17 +00:00
|
|
|
<li class="ui-permission-private"><a><i class="fa fa-hand-stop-o fa-fw"></i> Private - Only owner can view & edit</a></li>
|
2016-10-10 13:04:24 +00:00
|
|
|
<li class="divider"></li>
|
|
|
|
<li class="ui-delete-note"><a><i class="fa fa-trash-o fa-fw"></i> Delete this note</a></li>
|
2015-07-01 16:10:20 +00:00
|
|
|
</ul>
|
|
|
|
</span>
|
2016-10-10 12:32:20 +00:00
|
|
|
<br>
|
|
|
|
<span class="ui-owner" style="display: none;">
|
|
|
|
 <i class="ui-user-icon small" data-toggle="tooltip" data-placement="right"></i>
|
|
|
|
<span class="text-uppercase">owned this note</span>
|
|
|
|
</span>
|
2015-07-01 16:10:20 +00:00
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
<div id="doc" class="markdown-body container-fluid"></div>
|
2015-09-25 10:55:56 +00:00
|
|
|
<div class="ui-toc dropup unselectable hidden-print" style="display:none;">
|
2015-07-01 16:10:20 +00:00
|
|
|
<div class="pull-right dropdown">
|
2016-07-30 04:19:42 +00:00
|
|
|
<a id="tocLabel" class="ui-toc-label btn btn-default" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false" title="Table of content">
|
2015-07-01 16:10:20 +00:00
|
|
|
<i class="fa fa-bars"></i>
|
|
|
|
</a>
|
2016-08-15 03:27:32 +00:00
|
|
|
<ul id="ui-toc" class="ui-toc-dropdown dropdown-menu" aria-labelledby="tocLabel">
|
2015-07-01 16:10:20 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-15 03:27:32 +00:00
|
|
|
<div id="ui-toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:51px;display:none;"></div>
|
2015-05-04 07:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-04-20 10:06:36 +00:00
|
|
|
<!-- clipboard modal -->
|
2015-05-04 07:53:29 +00:00
|
|
|
<div class="modal fade" id="clipboardModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-lg">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2016-08-19 03:49:24 +00:00
|
|
|
<h4 class="modal-title" id="myModalLabel"><%= __('Import from clipboard') %></h4>
|
2015-05-04 07:53:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2016-08-19 03:49:24 +00:00
|
|
|
<div contenteditable data-ph="<%= __('Paste your markdown or webpage here...') %>" id="clipboardModalContent" style="overflow:auto;max-height:50vh"></div>
|
2015-05-04 07:53:29 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-08-19 03:49:24 +00:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-danger" id="clipboardModalClear"><%= __('Clear') %></button>
|
|
|
|
<button type="button" class="btn btn-primary" id="clipboardModalConfirm"><%= __('Import') %></button>
|
2015-05-04 07:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-01 16:10:20 +00:00
|
|
|
</div>
|
|
|
|
<!-- locked modal -->
|
|
|
|
<div class="modal fade locked-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2016-08-19 03:49:24 +00:00
|
|
|
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-lock"></i> <%= __('This note is locked') %></h4>
|
2015-07-01 16:10:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body" style="color:black;">
|
2016-08-19 03:49:24 +00:00
|
|
|
<h5><%= __('Sorry, only owner can edit this note.') %></h5>
|
2015-07-01 16:10:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-08-19 03:49:24 +00:00
|
|
|
<button type="button" class="btn btn-danger" data-dismiss="modal"><%= __('OK') %></button>
|
2015-07-01 16:10:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-16 14:46:06 +00:00
|
|
|
</div>
|
|
|
|
<!-- limit modal -->
|
|
|
|
<div class="modal fade limit-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2016-08-19 03:49:24 +00:00
|
|
|
<h4 class="modal-title" id="myModalLabel"><i class="fa fa-exclamation-triangle"></i> <%= __('Reach the limit') %></h4>
|
2015-07-16 14:46:06 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body" style="color:black;">
|
2016-08-19 03:49:24 +00:00
|
|
|
<h5><%= __("Sorry, you've reached the max length this note can be.") %></h5>
|
|
|
|
<strong><%= __('Please reduce the content or divide it to more notes, thank you!') %></strong>
|
2015-07-16 14:46:06 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-08-19 03:49:24 +00:00
|
|
|
<button type="button" class="btn btn-warning" data-dismiss="modal"><%= __('OK') %></button>
|
2015-07-16 14:46:06 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-04 15:17:35 +00:00
|
|
|
</div>
|
|
|
|
<!-- message modal -->
|
|
|
|
<div class="modal fade message-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
<h4 class="modal-title" id="myModalLabel"></h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body" style="color:black;">
|
|
|
|
<h5></h5>
|
2016-04-20 10:06:36 +00:00
|
|
|
<a target="_blank" style="word-break: break-all;"></a>
|
2016-03-04 15:17:35 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-08-19 03:49:24 +00:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('OK') %></button>
|
2016-03-04 15:17:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-04-20 10:06:36 +00:00
|
|
|
</div>
|
|
|
|
<!-- gist import modal -->
|
|
|
|
<div class="modal fade" id="gistImportModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2016-08-19 03:49:24 +00:00
|
|
|
<h4 class="modal-title" id="myModalLabel"><%= __('Import from Gist') %></h4>
|
2016-04-20 10:06:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2016-08-19 03:49:24 +00:00
|
|
|
<input type="url" class="form-control" placeholder="<%= __('Paste your gist url here...') %> (like: https://gist.github.com/username/gistid)" id="gistImportModalContent">
|
2016-04-20 10:06:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-08-19 03:49:24 +00:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-danger" id="gistImportModalClear"><%= __('Clear') %></button>
|
|
|
|
<button type="button" class="btn btn-primary" id="gistImportModalConfirm"><%= __('Import') %></button>
|
2016-04-20 10:06:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-10 02:37:51 +00:00
|
|
|
<!-- snippet import modal -->
|
|
|
|
<div class="modal fade" id="snippetImportModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2016-08-19 03:49:24 +00:00
|
|
|
<h4 class="modal-title" id="myModalLabel"><%= __('Import from Snippet') %></h4>
|
2016-05-10 02:37:51 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2016-05-11 21:05:53 +00:00
|
|
|
<input type="hidden" id="snippetImportModalAccessToken" />
|
|
|
|
<input type="hidden" id="snippetImportModalBaseURL" />
|
2016-05-12 15:19:14 +00:00
|
|
|
<div class="ui-field-contain" style="display:table;margin-bottom:10px;width:100%;">
|
|
|
|
<div style="display:table-row;margin-bottom:5px;">
|
|
|
|
<label style="display:table-cell;">Project:</label>
|
|
|
|
<select class="form-control" id="snippetImportModalProjects" style="display:table-cell;" disabled="disabled">
|
2016-08-19 03:49:24 +00:00
|
|
|
<option value="init" selected="selected" disabled="disabled"><%= __('Select From Available Projects') %></option>
|
2016-05-12 15:19:14 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div style="display:table-row;">
|
|
|
|
<label style="display:table-cell;">Snippet</label>
|
|
|
|
<select class="form-control" id="snippetImportModalSnippets" style="display:table-cell;" disabled="disabled">
|
2016-08-19 03:49:24 +00:00
|
|
|
<option value="init" selected="selected" disabled="disabled"><%= __('Select From Available Snippets') %></option>
|
2016-05-12 15:19:14 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-19 03:49:24 +00:00
|
|
|
<p class="snippet-import-or"><%= __('OR') %></p>
|
2016-05-12 15:19:14 +00:00
|
|
|
<input type="url" class="form-control" placeholder="/projects/:id/snippets/:snippet_id" id="snippetImportModalContent" disabled="disabled">
|
2016-05-10 02:37:51 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-05-15 05:01:41 +00:00
|
|
|
<span id="snippetImportModalLoading"><i class="fa fa-refresh fa-spin fa-fw"></i></span>
|
2016-08-19 03:49:24 +00:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-danger" id="snippetImportModalClear"><%= __('Clear') %></button>
|
|
|
|
<button type="button" class="btn btn-primary" id="snippetImportModalConfirm" disabled="disabled"><%= __('Import') %></button>
|
2016-05-10 02:37:51 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-12 16:28:08 +00:00
|
|
|
<!-- snippet export modal -->
|
|
|
|
<div class="modal fade" id="snippetExportModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2016-08-19 03:49:24 +00:00
|
|
|
<h4 class="modal-title" id="myModalLabel"><%= __('Export to Snippet') %></h4>
|
2016-05-12 16:28:08 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<input type="hidden" id="snippetExportModalAccessToken" />
|
|
|
|
<input type="hidden" id="snippetExportModalBaseURL" />
|
|
|
|
<div class="ui-field-contain" style="display:table;margin-bottom:10px;width:100%;">
|
|
|
|
<div style="display:table-row;margin-bottom:5px;">
|
|
|
|
<label style="display:table-cell;">Title:</label>
|
|
|
|
<input class="form-control" placeholder="new snippet" type="text" id="snippetExportModalTitle" />
|
|
|
|
</div>
|
|
|
|
<div style="display:table-row;margin-bottom:5px;">
|
|
|
|
<label style="display:table-cell;">File Name:</label>
|
|
|
|
<input class="form-control" placeholder="new_snippet.md" type="text" id="snippetExportModalFileName" />
|
|
|
|
</div>
|
|
|
|
<div style="display:table-row;margin-bottom:5px;">
|
|
|
|
<label style="display:table-cell;">Project:</label>
|
|
|
|
<select class="form-control" id="snippetExportModalProjects" style="display:table-cell;">
|
2016-08-19 03:49:24 +00:00
|
|
|
<option value="init" selected="selected" disabled="disabled"><%= __('Select From Available Projects') %></option>
|
2016-05-12 16:28:08 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div style="display:table-row;margin-bottom:5px;">
|
|
|
|
<label style="display:table-cell;">Visibility:</label>
|
|
|
|
<select class="form-control" id="snippetExportModalVisibility" style="display:table-cell;">
|
2016-08-19 03:49:24 +00:00
|
|
|
<option value="" selected="selected" disabled="disabled"><%= __('Select Visibility Level') %></option>
|
2016-05-12 16:28:08 +00:00
|
|
|
<option value="0">Private</option>
|
|
|
|
<option value="10">Internal</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-05-15 05:01:41 +00:00
|
|
|
<span id="snippetExportModalLoading"><i class="fa fa-refresh fa-spin fa-fw"></i></span>
|
2016-08-19 03:49:24 +00:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-primary" id="snippetExportModalConfirm"><%= __('Export') %></button>
|
2016-05-12 16:28:08 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-10-10 13:04:24 +00:00
|
|
|
<!-- delete modal -->
|
|
|
|
<div class="modal fade delete-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
<h4 class="modal-title" id="myModalLabel"><%= __('Are you sure?') %></h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body" style="color:black;">
|
|
|
|
<h5 class="ui-delete-modal-msg">Do you really want to delete this note?</h5>
|
|
|
|
<strong class="ui-delete-modal-item">All users will lost their connection.</strong>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal"><%= __('Cancel') %></button>
|
|
|
|
<button type="button" class="btn btn-danger ui-delete-modal-confirm"><%= __('Yes, do it!') %></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-01-21 05:08:29 +00:00
|
|
|
<%- include ../shared/refresh-modal %>
|
|
|
|
<%- include ../shared/signin-modal %>
|
|
|
|
<%- include ../shared/help-modal %>
|
|
|
|
<%- include ../shared/revision-modal %>
|