mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
fix a bit the UI (identifier on bill's list)
This commit is contained in:
parent
c54fac69c9
commit
d9c7977a59
5 changed files with 6 additions and 8 deletions
|
@ -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():
|
||||
|
|
|
@ -95,7 +95,7 @@ div.topbar ul.secondary-nav { padding-right: 75px; }
|
|||
}
|
||||
|
||||
.identifier{
|
||||
text-align: right;
|
||||
float: right;
|
||||
margin-top: -15px;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue