2:cc1e5f212e6c
Anton Shestakov <engored@ya.ru>, Tue, 25 Dec 2012 17:09:32 +0900
Since CodernityDB 0.4.0 get_many is not limited to 1 item by default, so omit limit=-1.

next change 7:5c5d433b3a14
previous change 0:a02e94c5b96b

templates/index.html

Permissions: -rw-r--r--

Other formats: Feeds:
<!DOCTYPE html>
<html>
<head>
<title>Fruit Bar Progress Tracker</title>
<link type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}" rel="shortcut icon">
<link type="text/css" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap-combined.min.css" rel="stylesheet">
<link type="text/css" href="{{ url_for('static', filename='css/custom.css') }}" rel="stylesheet">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="//underscorejs.org/underscore-min.js"></script>
<script type="text/javascript" src="//backbonejs.org/backbone-min.js"></script>
<script type="text/javascript" src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/backbone.shard.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/framework/models.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/framework/collections.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/framework/views/base.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/framework/views/inline.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/framework/views/projects.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/framework/views/tasks.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/ui.js') }}"></script>
<script type="text/javascript">
_.extend(_.templateSettings, {
variable: 'data'
});
</script>
</head>
<body>
<div class="container">
<div class="row">
<div class="span2">
<h3 class="align-right">
<button class="btn btn-mini btn-success btn-new-project">New project</button>
</h3>
</div>
<div class="span8">
<h3 class="muted">
All projects <small>(<span class="project-counter"></span>)</small>
</h3>
<hr>
</div>
</div>
<section class="projects">
<script id="project-template" type="text/template">
<div class="project">
<div class="row">
<div class="span2 align-right ondemand">
<button class="btn btn-mini btn-danger btn-delete-project">Delete</button>
<button class="btn btn-mini btn-success btn-new-task">New task</button>
</div>
<div class="span4">
<h4>
<span class="inline-editable"
data-input-type="input"
data-model="project"
data-model-attribute="name"><%- data.name %></span>
</h4>
</div>
<div class="span4">
<div class="progress progress-striped">
<div class="bar"></div>
</div>
</div>
</div>
<div class="tasks"></div>
</div>
</script>
<script id="task-template" type="text/template">
<div class="task">
<div class="row">
<div class="span2 align-right ondemand">
<button class="btn btn-mini btn-danger btn-delete-task">Delete</button>
</div>
<div class="span4">
<input type="checkbox" <% if (data.done) print('checked') %>>
<span class="inline-editable"
data-input-type="input"
data-model="task"
data-model-attribute="name"><%- data.name %></span>
</div>
<div class="span4">
<div class="task-note">
<span class="inline-editable"
data-input-type="textarea"
data-model="task"
data-model-attribute="note"></span>
</div>
</div>
</div>
</div>
</script>
</section>
</div>
<script type="text/javascript">
var data = {{ data|tojson|safe }};
</script>
</body>
</html>