Browse Source

Remove gravatar.

develop
Sam Black 4 years ago
parent
commit
b2fd572d44
  1. 1
      requirements.txt
  2. 7
      vowel/templates/layout/menu.html
  3. 8
      vowel/templates/users/profile.html
  4. 3
      vowel/web.py

1
requirements.txt

@ -8,7 +8,6 @@ Flask-WTF
Flask-Login
Flask-Security
raven[flask]
Flask-Gravatar
Flask-DebugToolbar
redis
Flask-Cache

7
vowel/templates/layout/menu.html

@ -123,11 +123,10 @@
{% endif %}
<li>
<a href="#">
<div class="uk-position-relative">
<img src="{{ current_user.email | gravatar(size=50) }}"
class="uk-visible@m uk-align-center uk-margin-remove-bottom uk-border-rounded" alt="User Image" />
<div>
<i class="fas fa-user fa-3x" style="width: 100%;"></i>
<div class="uk-navbar-subtitle uk-text-capitalize">
{{ current_user.fullname }}
{{ current_user.username }}
</div>
</div>
</a>

8
vowel/templates/users/profile.html

@ -25,11 +25,7 @@
{% block content %}
<div class="uk-margin uk-margin" data-uk-grid>
<div class="uk-width-1-4 uk-visible@m">
<img src="{{ user.email | gravatar(size=250) }}" class="uk-border-rounded" alt="User Image" />
</div>
<div class="uk-width-1-2@l uk-width-3-4@m">
<div class="uk-width-3-4@l">
<h3>Username</h3>
{{ user.username }}
@ -37,7 +33,7 @@
{{ user.bio | safe | default("No biography", True) }}
</div>
<div id="userEditSidemenu" class="uk-width-1-4 uk-visible@l sidebar">
<div id="userEditSidemenu" class="uk-width-1-4@l uk-visible@l sidebar">
<ul class="uk-nav uk-nav-default"
data-uk-sticky="offset: 100;"
data-uk-scrollspy-nav="closest: li; scroll: true; offset: 90">

3
vowel/web.py

@ -27,7 +27,6 @@ from flask import request
from flask import url_for
from flask_assets import Environment
from flask_babel import Babel
from flask_gravatar import Gravatar
from flask_migrate import Migrate
from flask_principal import identity_loaded
from flask_security import Security
@ -194,8 +193,6 @@ def setup_infrastructure(app):
setup_webassets(app)
Gravatar(app, size=160)
app.config.setdefault("CACHE_REDIS_URL", app.config["REDIS_DEFAULT_URI"])
cache.init_app(app)
# There maybe cached items that need to be flushed

Loading…
Cancel
Save