Download:
child 46:14d6c0a48023
parent 44:26cb6352ac2c
45:8e83e81fdad9
Anton Shestakov <engored@ya.ru>, Sun, 05 Apr 2015 02:51:05 +0800
Remove trailing whitespaces.

3 файлов изменено, 22 вставок(+), 23 удалений(-) [+]
README.rst file | annotate | diff | comparison | revisions
app.py file | annotate | diff | comparison | revisions
templates/index.html file | annotate | diff | comparison | revisions
--- a/README.rst Fri Nov 08 09:39:11 2013 +0000
+++ b/README.rst Sun Apr 05 02:51:05 2015 +0800
@@ -6,16 +6,16 @@
Overview
========
-Just another todo app. Well, maybe not quite, because it can track
-projects, tasks and notes for tasks in multiple different workspaces. It
-looks nice because it's built with Bootstrap and is, to some extent,
-elegant code-wise because it was built with Backbone, Flask and CodernityDB.
+Just another todo app. Well, maybe not quite, because it can track projects,
+tasks and notes for tasks in multiple different workspaces. It looks nice
+because it's built with Bootstrap and is, to some extent, elegant code-wise
+because it was built with Backbone, Flask and CodernityDB.
Reason of Existence
===================
-This is my way to try out some new technologies in a project slightly more
+This is my way to try out some new technologies in a project slightly more
sophisticated than Hello World. Currently these technologies are:
- Flask
@@ -32,12 +32,11 @@
Security and Privacy
====================
-If you have tried Fruitbar via the link above or have read the source code,
-you may now be wondering, "isn't not having passwords a bit insecure?" And
-the answer is no. As in "no, it's a *whole lot* insecure to not have
-passwords." But this is a research project and it isn't pretending to be
-secure. Keep in mind that everything you put in it everyone else may read
-or edit.
+If you have tried Fruitbar via the link above or have read the source code, you
+may now be wondering, "isn't not having passwords a bit insecure?" And the
+answer is no. As in "no, it's a *whole lot* insecure to not have passwords."
+But this is a research project and it isn't pretending to be secure. Keep in
+mind that everything you put in it everyone else may read or edit.
What's New
--- a/app.py Fri Nov 08 09:39:11 2013 +0000
+++ b/app.py Sun Apr 05 02:51:05 2015 +0800
@@ -26,7 +26,7 @@
@app.before_first_request
def init_db():
global cdb
-
+
db_path = os.path.join(os.path.dirname(__file__), app.config['DATABASE'])
cdb = ThreadSafeDatabase(db_path)
@@ -35,7 +35,7 @@
cdb.reindex()
else:
cdb.create()
-
+
cdb.add_index(ProjectIndex(cdb.path, 'project'))
cdb.add_index(TaskIndex(cdb.path, 'task'))
@@ -57,10 +57,10 @@
class Project(CRUDResource):
safe_fields = ('name', 'color')
-
+
def delete(self, workspace, resource_id):
g.db.run('task', 'delete_for_project', workspace, resource_id)
-
+
return super(Project, self).delete(workspace, resource_id)
--- a/templates/index.html Fri Nov 08 09:39:11 2013 +0000
+++ b/templates/index.html Sun Apr 05 02:51:05 2015 +0800
@@ -3,10 +3,10 @@
<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.0.0/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
@@ -26,7 +26,7 @@
%}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
-
+
<script>
_.extend(_.templateSettings, {
variable: 'data'
@@ -55,7 +55,7 @@
</ul>
</div>
</div>
-
+
<section class="projects">
<script id="project-template" type="text/template">
<div class="project">
@@ -72,18 +72,18 @@
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">
@@ -92,7 +92,7 @@
</div>
<div class="span4">
<input type="checkbox" <% if (data.done) print('checked') %>>
- <span class="inline-editable"
+ <span class="inline-editable"
data-input-type="input"
data-model="task"
data-model-attribute="name"><%- data.name %></span>