49:8c5434217ca7
Anton Shestakov <engored@ya.ru>, Sun, 05 Apr 2015 04:01:17 +0800
Update jQuery, Underscore, Backbone, Backbone-localStorage

next change 57:a2b032c7d407
previous change 45:8e83e81fdad9

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 src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone-localstorage.js/1.1.16/backbone.localStorage-min.js"></script>
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
{% assets filters='jsmin', output='bundles/fruitbar.%(version)s.js',
'js/backbone.shard.js',
'js/framework/models.js',
'js/framework/collections.js',
'js/framework/views/base.js',
'js/framework/views/inline.js',
'js/framework/views/workspaces.js',
'js/framework/views/projects.js',
'js/framework/views/tasks.js',
'js/framework/router.js',
'js/ui.js'
%}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
<script>
_.extend(_.templateSettings, {
variable: 'data'
});
</script>
</head>
<body style="opacity: 0;">
<div class="container">
<div class="row">
<div class="span2 ui-sidebar align-right">
<button class="btn btn-mini btn-success btn-new-project">New project</button>
</div>
<div class="span8">
<h3>
<span class="muted">Workspace</span> <span class="workspace-title"></span> <small>(<span class="project-counter"></span>)</small>
</h3>
<hr>
</div>
<div class="span2 ui-sidebar">
<ul class="nav nav-tabs nav-stacked workspace-tabs">
<script id="workspace-tab-template" type="text/template">
<li data-workspace="<%- data.name %>">
<a href="#<%- data.name %>">#<%- data.name %></a>
</li>
</script>
</ul>
</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>
</body>
</html>