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-19 06:53:00 +08:00
|
|
|
<style>
|
|
|
|
#texteditor-container {
|
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
|
}
|
2014-11-23 13:58:02 +08:00
|
|
|
|
|
|
|
#filename {
|
|
|
|
font-size: 16pt;
|
|
|
|
display: table;
|
|
|
|
padding: 0px 5px;
|
|
|
|
}
|
2014-11-19 06:53:00 +08:00
|
|
|
</style>
|
2014-11-06 08:11:29 +08:00
|
|
|
|
|
|
|
{{super()}}
|
|
|
|
{% endblock %}
|
|
|
|
|
2014-11-06 06:49:31 +08:00
|
|
|
{% block params %}
|
|
|
|
|
|
|
|
data-base-url="{{base_url}}"
|
2014-11-06 08:11:29 +08:00
|
|
|
data-file-path="{{file_path}}"
|
2014-11-06 06:49:31 +08:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
2014-11-23 13:58:02 +08:00
|
|
|
{% block header %}
|
|
|
|
|
|
|
|
<span id="filename">{{ basename }}</span>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
2014-11-06 06:49:31 +08:00
|
|
|
{% block site %}
|
|
|
|
|
2014-11-06 08:48:23 +08:00
|
|
|
<div id="menubar-container" class="container">
|
|
|
|
<div id="menubar">
|
|
|
|
<div id="menus" class="navbar navbar-default" role="navigation">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<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="save_file"><a href="#">Save</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2014-11-19 06:53:00 +08:00
|
|
|
<div id="texteditor-container" class="container"></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 %}
|