diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-15 02:24:02 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-15 02:24:02 +0200 |
| commit | d9c7977a59acc55342cb2dbf7f9649df9cc56472 (patch) | |
| tree | e587115d71ed59dad57d36aa2ed461706e3b6a87 | |
| parent | c54fac69c948cca1515ee2e9883beffb5bc1318e (diff) | |
| download | ihatemoney-mirror-d9c7977a59acc55342cb2dbf7f9649df9cc56472.zip ihatemoney-mirror-d9c7977a59acc55342cb2dbf7f9649df9cc56472.tar.gz ihatemoney-mirror-d9c7977a59acc55342cb2dbf7f9649df9cc56472.tar.bz2 | |
fix a bit the UI (identifier on bill's list)
| -rw-r--r-- | budget/run.py | 5 | ||||
| -rw-r--r-- | budget/static/main.css | 2 | ||||
| -rw-r--r-- | budget/templates/invitation_mail.fr | 2 | ||||
| -rw-r--r-- | budget/templates/list_bills.html | 1 | ||||
| -rw-r--r-- | budget/web.py | 4 |
5 files changed, 6 insertions, 8 deletions
diff --git a/budget/run.py b/budget/run.py index 9bb07f4..da1d453 100644 --- a/budget/run.py +++ b/budget/run.py @@ -1,8 +1,9 @@ -from web import main, db, mail, babel +from web import main, db, mail from api import api import os from flask import * +from flaskext.babel import Babel app = Flask(__name__) app.config.from_object("default_settings") @@ -19,7 +20,7 @@ db.create_all() mail.init_app(app) # translations -babel.init_app(app) +babel = Babel(app) @babel.localeselector def get_locale(): diff --git a/budget/static/main.css b/budget/static/main.css index 9726e47..c4c7c9b 100644 --- a/budget/static/main.css +++ b/budget/static/main.css @@ -95,7 +95,7 @@ div.topbar ul.secondary-nav { padding-right: 75px; } } .identifier{ - text-align: right; + float: right; margin-top: -15px; } diff --git a/budget/templates/invitation_mail.fr b/budget/templates/invitation_mail.fr index 3a2b956..a46f0a0 100644 --- a/budget/templates/invitation_mail.fr +++ b/budget/templates/invitation_mail.fr @@ -1,6 +1,6 @@ Salut, -Quelqu'un avec l'addresse email "{{ g.project.contact_email }}" vuos à invité à partager vos dépenses pour "{{ g.project.name }}". +Quelqu'un avec l'addresse email "{{ g.project.contact_email }}" vous à invité à partager vos dépenses pour "{{ g.project.name }}". C'est aussi simple que de dire qui à payé pour quoi, pour qui, et combien celà à coûté, on s'occuppe du reste. diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index 0325a94..0a221db 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -66,7 +66,6 @@ {% block content %} <div class="identifier">{{ _("The project identifier is") }} <a href="{{ url_for(".list_bills") }}">{{ g.project.id }}</a>, {{ _("remember it or add this page to you bookmarks!") }}</div> -<br /><br /> <a id="new-bill" href="{{ url_for(".add_bill") }}" class="primary">{{ _("Add a new bill") }}</a> <form id="bill-form" action="{{ url_for(".add_bill") }}" method="post" style="display: none"> <a id="hide-bill-form" href="#">{{ _("hide this form") }}</a> diff --git a/budget/web.py b/budget/web.py index 263c1db..1daecd7 100644 --- a/budget/web.py +++ b/budget/web.py @@ -2,7 +2,7 @@ from collections import defaultdict from flask import * from flaskext.mail import Mail, Message -from flaskext.babel import Babel, get_locale, gettext as _ +from flaskext.babel import get_locale, gettext as _ import werkzeug # local modules @@ -23,8 +23,6 @@ and `add_project_id` for a quick overview main = Blueprint("main", __name__) mail = Mail() -babel = Babel() - @main.url_defaults def add_project_id(endpoint, values): |
