diff --git a/app/admin/routes.py b/app/admin/routes.py index f894cd0..b96b81a 100644 --- a/app/admin/routes.py +++ b/app/admin/routes.py @@ -42,7 +42,7 @@ def list_items(): @login_required @admin_required def list_users(): - allusers = User.query.order_by(User.pid.asc()).all() + allusers = User.query.order_by(User.last_seen.desc()).all() return render_template('admin/list_users.html', users=allusers) @admin.route("/charge/", methods=['GET', 'POST']) diff --git a/app/news/routes.py b/app/news/routes.py index fb53be6..5e914d7 100644 --- a/app/news/routes.py +++ b/app/news/routes.py @@ -31,7 +31,7 @@ def all(): def latest(): graph = GraphAPI(get_fb_token()) page_id = current_app.config['FB_PAGE_ID'] - latest = graph.get(page_id+'/posts?limit=1&fields=id,message,created_time,link', page=True, retry=3) + latest = graph.get(page_id+'/posts?limit=2&fields=id,message,created_time,link', page=True, retry=3) posts = [] for data in latest: posts.append(data) diff --git a/app/static/css/style.css b/app/static/css/style.css index 0b8df70..e933c57 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -17,7 +17,7 @@ body { } .page_wrap { - width: 1140px; + width: 70%; margin: 0 auto; } @@ -30,13 +30,16 @@ body { margin-top: 40px; } -.one_four { - float: left; - width: 210px; - margin-right: 84px; +.clear{ + clear:both; } -.one_four h4 { +.footerblock { + max-width: 420px; + margin-right: 0px; +} + +.footerblock h4 { font-size: 18px; color: #FFF; background: url(/static/images/footer_cols_divider.png) no-repeat bottom center; @@ -263,8 +266,30 @@ a:active { border-top-right-radius: 3px; } -.tooltip-inner { - max-width: 350px; - /* If max-width does not work, try using width instead */ - width: 350px; +.rrd + .tooltip > .tooltip-inner { + background-color: #73AD21; + color: #FFFFFF; + border: 1px solid green; + padding: 15px; + font-size: 20px; +} + +/* Tooltip on top */ +.rrd + .tooltip.top > .tooltip-arrow { + border-top: 5px solid green; +} + +/* Tooltip on bottom */ +.rrd + .tooltip.bottom > .tooltip-arrow { + border-bottom: 5px solid blue; +} + +/* Tooltip on left */ +.rrd + .tooltip.left > .tooltip-arrow { + border-left: 5px solid red; +} + +/* Tooltip on right */ +.rrd + .tooltip.right > .tooltip-arrow { + border-right: 5px solid black; } diff --git a/app/static/images/fb.png b/app/static/images/fb.png new file mode 100644 index 0000000..edf4393 Binary files /dev/null and b/app/static/images/fb.png differ diff --git a/app/templates/admin/list_items.html b/app/templates/admin/list_items.html index bd11ace..e5d648d 100644 --- a/app/templates/admin/list_items.html +++ b/app/templates/admin/list_items.html @@ -62,7 +62,7 @@ {{ service.description }} {{ service.price }} {{ service.period }} - {{ moment(service.date_last_charge).fromNow() }} + {{ moment(service.date_last_charge).format('lll') }} {{ service.owner.email }} {% endfor %} diff --git a/app/templates/admin/list_transactions.html b/app/templates/admin/list_transactions.html index 2d86ede..c51cf76 100644 --- a/app/templates/admin/list_transactions.html +++ b/app/templates/admin/list_transactions.html @@ -29,14 +29,14 @@ {{ transaction.description }} {{ transaction.value }} {{ transaction.currency }} - {{ transaction.date_created.strftime('%d %b %Y - %H:%m') }} + {{ moment(transaction.date_created).format('lll') }} {{ transaction.owner.email }} {% else %} {{ transaction.description }} {{ transaction.value }} {{ transaction.currency }} - {{ transaction.date_created.strftime('%d %b %Y - %H:%m') }} + {{ moment(transaction.date_created).format('lll') }} {{ transaction.owner.email }} {% endif %} diff --git a/app/templates/admin/list_users.html b/app/templates/admin/list_users.html index 6b95483..f49bca9 100644 --- a/app/templates/admin/list_users.html +++ b/app/templates/admin/list_users.html @@ -24,7 +24,7 @@ {{ usr.pid }} {{ usr.email }} - {{ moment(usr.last_seen).fromNow()}} + {{ moment(usr.last_seen).format('lll') }} {{ usr.last_ip }} {{ usr.wallet }} Dashboard diff --git a/app/templates/errors/403.html b/app/templates/errors/403.html index 0769eec..0b99580 100644 --- a/app/templates/errors/403.html +++ b/app/templates/errors/403.html @@ -6,11 +6,21 @@ +
-  ooo,    .---.
- o`  o   /    |\________________
-o`   'oooo()  | ________   _   _)
-`oo   o` \    |/        | | | |
-  `ooo'   `---'         "-" |_|                           
+     .-------.
+    / .-----. \
+   / /       \ \
+   | |       | |
+  _| |_______| |_
+.' |_|       |_| '.
+'._____ ___ _____.'
+|     .'___'.     |
+'.__.'.'   '.'.__.'
+'.__  | 403 |  __.'
+|   '.'.___.'.'   |
+'.____'.___.'____.'
+'._______________.'
 
+
{% endblock %} diff --git a/app/templates/errors/404.html b/app/templates/errors/404.html index e5c08e5..c0872c8 100644 --- a/app/templates/errors/404.html +++ b/app/templates/errors/404.html @@ -4,31 +4,29 @@ {% block page_content %} - +
-        \          SORRY            /
-         \                         /
-          \    This page does     /
-           ]   not exist yet.    [    ,'|
-           ]                     [   /  |
-           ]___               ___[ ,'   |
-           ]  ]\             /[  [ |:   |
-           ]  ] \           / [  [ |:   |
-           ]  ]  ]         [  [  [ |:   |
-           ]  ]  ]__     __[  [  [ |:   |
-           ]  ]  ] ]\ _ /[ [  [  [ |:   |
-           ]  ]  ] ] (#) [ [  [  [ :===='
-           ]  ]  ]_].nHn.[_[  [  [
-           ]  ]  ]  HHHHH. [  [  [
-           ]  ] /   `HH("N  \ [  [
-           ]__]/     HHH  "  \[__[
-           ]         NNN         [
-           ]         N/"         [
-           ]         N H         [
-          /          N            \
-         /           q,            \
-        /                           \
+                     %%%%
+                    %%%%-(
+                  _%%%%%_/                        \ ' /
+                _%%%%%%%%                        - (_) -
+              _%%%%%%%/ \%                        / , \
+             %%%%%%%%%\\ \_
+               %%%%%%   \ \\
+                   )    /\_/
+                 /(___. \
+                 '----' (
+                /       )
+    ---....____/        (_____ __ _ ___ ___ __ _ _ _____ _ _ ___
+              /         )---...___ =-= = -_= -=_= _-=_-_ -=- =-_
+            ,'          (         ```--.._= -_= -_= _-=- -_= _=-
+         ,-'            )                 ``--._=-_ =-=_-= _-= _
+         '-._    '-..___(                       ``-._=_-=_- =_-=
+             ``---....__)                            `-._-=_-_=-
+                   )|)|                                  `-._=-_
+        gnv       '-'-.\_                                    `-.
 
+
{% endblock %} diff --git a/app/templates/errors/500.html b/app/templates/errors/500.html index 3f9a273..b6299e4 100644 --- a/app/templates/errors/500.html +++ b/app/templates/errors/500.html @@ -6,6 +6,7 @@ +
         .--.       .--.
     _  `    \     /    `  _
@@ -22,5 +23,5 @@
        .'             `.
     _,'                 `,_
 
- +
{% endblock %} diff --git a/app/templates/errors/csrf_error.html b/app/templates/errors/csrf_error.html index 6ad0624..9fa91b8 100644 --- a/app/templates/errors/csrf_error.html +++ b/app/templates/errors/csrf_error.html @@ -6,11 +6,17 @@ +
-  ooo,    .---.
- o`  o   /    |\________________
-o`   'oooo()  | ________   _   _)
-`oo   o` \    |/        | | | |
-  `ooo'   `---'         "-" |_|                           
+ ad8888888888ba
+dP'         `"8b,
+8  ,aaa,       "Y888a     ,aaaa,     ,aaa,  ,aa,
+8  8' `8           "8baaaad""""baaaad""""baad""8b
+8  8   8              """"      """"      ""    8b
+8  8, ,8         ,aaaaaaaaaaaaaaaaaaaaaaaaddddd88P
+8  `"""'       ,d8""
+Yb,         ,ad8"     nv
+ "Y8888888888P"                       
 
+
{% endblock %} diff --git a/app/templates/footer_colored.html b/app/templates/footer_colored.html index ef26376..e7daed7 100644 --- a/app/templates/footer_colored.html +++ b/app/templates/footer_colored.html @@ -1,6 +1,8 @@ diff --git a/app/templates/footer_index.html b/app/templates/footer_index.html index 592eb48..dd4ddd8 100644 --- a/app/templates/footer_index.html +++ b/app/templates/footer_index.html @@ -1,26 +1,20 @@ diff --git a/app/templates/footer_simple.html b/app/templates/footer_simple.html index 59256aa..50984b0 100644 --- a/app/templates/footer_simple.html +++ b/app/templates/footer_simple.html @@ -1,4 +1,4 @@
- -

Design by _sys

+ +

diff --git a/app/templates/nav.html b/app/templates/nav.html index 494535f..d18be09 100644 --- a/app/templates/nav.html +++ b/app/templates/nav.html @@ -20,7 +20,7 @@