2014-11-06 06:49:31 +08:00
|
|
|
{% extends "page.html" %}
|
|
|
|
|
|
|
|
{% block title %}{{page_title}}{% endblock %}
|
|
|
|
|
2014-11-06 08:11:29 +08:00
|
|
|
{% block stylesheet %}
|
|
|
|
<link rel="stylesheet" href="{{ static_url('components/codemirror/lib/codemirror.css') }}">
|
2014-11-06 09:31:08 +08:00
|
|
|
<link rel="stylesheet" href="{{ static_url('components/codemirror/addon/dialog/dialog.css') }}">
|
2014-11-06 08:11:29 +08:00
|
|
|
{{super()}}
|
|
|
|
{% endblock %}
|
|
|
|
|
2015-01-09 07:41:50 +08:00
|
|
|
{% block bodyclasses %}edit_app {{super()}}{% endblock %}
|
2014-11-06 06:49:31 +08:00
|
|
|
|
2015-01-09 07:41:50 +08:00
|
|
|
{% block params %}
|
2014-11-06 06:49:31 +08:00
|
|
|
data-base-url="{{base_url}}"
|
2014-11-06 08:11:29 +08:00
|
|
|
data-file-path="{{file_path}}"
|
2015-01-09 07:41:50 +08:00
|
|
|
{{super()}}
|
2014-11-06 06:49:31 +08:00
|
|
|
{% endblock %}
|
|
|
|
|
2014-12-08 05:39:58 +08:00
|
|
|
{% block headercontainer %}
|
2014-11-23 13:58:02 +08:00
|
|
|
|
2014-12-08 05:39:58 +08:00
|
|
|
<span id="save_widget" class="pull-left save_widget">
|
2014-12-05 09:01:30 +08:00
|
|
|
<span class="filename"></span>
|
|
|
|
<span class="last_modified"></span>
|
|
|
|
</span>
|
2014-11-23 13:58:02 +08:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
2014-12-08 05:39:58 +08:00
|
|
|
{% block header %}
|
2014-11-06 06:49:31 +08:00
|
|
|
|
2014-11-06 08:48:23 +08:00
|
|
|
<div id="menubar-container" class="container">
|
2014-11-27 05:05:02 +08:00
|
|
|
<div id="menubar">
|
2014-11-06 08:48:23 +08:00
|
|
|
<div id="menus" class="navbar navbar-default" role="navigation">
|
2014-11-27 05:05:02 +08:00
|
|
|
<div class="container-fluid">
|
2015-01-26 02:55:34 +08:00
|
|
|
<p class="navbar-text indicator_area">
|
|
|
|
<span id="current-mode" >current mode</span>
|
|
|
|
</p>
|
2014-11-27 05:05:02 +08:00
|
|
|
<button type="button" class="btn btn-default navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
|
|
<i class="fa fa-bars"></i>
|
|
|
|
<span class="navbar-text">Menu</span>
|
|
|
|
</button>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li id="notification_area"></li>
|
|
|
|
</ul>
|
|
|
|
<div class="navbar-collapse collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">File</a>
|
|
|
|
<ul id="file-menu" class="dropdown-menu">
|
|
|
|
<li id="new-file"><a href="#">New</a></li>
|
|
|
|
<li id="save-file"><a href="#">Save</a></li>
|
2014-12-05 09:09:06 +08:00
|
|
|
<li id="rename-file"><a href="#">Rename</a></li>
|
2015-02-03 08:35:24 +08:00
|
|
|
<li id="download-file"><a href="#">Download</a></li>
|
2014-11-06 08:48:23 +08:00
|
|
|
</ul>
|
2014-11-27 05:05:02 +08:00
|
|
|
</li>
|
|
|
|
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Edit</a>
|
|
|
|
<ul id="edit-menu" class="dropdown-menu">
|
|
|
|
<li id="menu-find"><a href="#">Find</a></li>
|
|
|
|
<li id="menu-replace"><a href="#">Find & Replace</a></li>
|
2014-12-03 04:15:04 +08:00
|
|
|
<li class="divider"></li>
|
2014-12-03 04:55:49 +08:00
|
|
|
<li class="dropdown-header">Key Map</li>
|
2014-12-03 04:15:04 +08:00
|
|
|
<li id="menu-keymap-default"><a href="#">Default<i class="fa"></i></a></li>
|
|
|
|
<li id="menu-keymap-sublime"><a href="#">Sublime Text<i class="fa"></i></a></li>
|
|
|
|
<li id="menu-keymap-vim"><a href="#">Vim<i class="fa"></i></a></li>
|
|
|
|
<li id="menu-keymap-emacs"><a href="#">emacs<i class="fa"></i></a></li>
|
2014-11-27 05:05:02 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">View</a>
|
|
|
|
<ul id="view-menu" class="dropdown-menu">
|
2014-12-08 05:55:06 +08:00
|
|
|
<li id="menu-line-numbers"><a href="#">Toggle Line Numbers</a></li>
|
2014-11-27 05:05:02 +08:00
|
|
|
</ul>
|
|
|
|
</li>
|
2014-12-09 03:37:01 +08:00
|
|
|
<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Language</a>
|
2014-12-08 05:40:42 +08:00
|
|
|
<ul id="mode-menu" class="dropdown-menu">
|
|
|
|
</ul>
|
|
|
|
</li>
|
2014-11-27 05:05:02 +08:00
|
|
|
</ul>
|
2014-11-06 08:48:23 +08:00
|
|
|
</div>
|
2014-11-27 05:05:02 +08:00
|
|
|
</div>
|
2014-11-06 08:48:23 +08:00
|
|
|
</div>
|
2014-11-27 05:05:02 +08:00
|
|
|
</div>
|
2014-11-06 08:48:23 +08:00
|
|
|
</div>
|
|
|
|
|
2014-12-18 06:00:28 +08:00
|
|
|
<div class="lower-header-bar"></div>
|
|
|
|
|
2014-12-08 05:39:58 +08:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block site %}
|
|
|
|
|
2014-12-18 06:00:28 +08:00
|
|
|
<div id="texteditor-backdrop">
|
2014-11-19 06:53:00 +08:00
|
|
|
<div id="texteditor-container" class="container"></div>
|
2014-12-18 06:00:28 +08:00
|
|
|
</div>
|
2014-11-06 06:49:31 +08:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block script %}
|
|
|
|
|
|
|
|
{{super()}}
|
|
|
|
|
2014-11-26 02:07:52 +08:00
|
|
|
<script src="{{ static_url("edit/js/main.js") }}" type="text/javascript" charset="utf-8"></script>
|
2014-11-06 06:49:31 +08:00
|
|
|
{% endblock %}
|