diff --git a/ofu_app/ofu_app/settings.py b/ofu_app/ofu_app/settings.py index fd83d91..d9bdb17 100755 --- a/ofu_app/ofu_app/settings.py +++ b/ofu_app/ofu_app/settings.py @@ -147,10 +147,10 @@ TIME_FORMAT = "H:i" # https://docs.djangoproject.com/en/1.11/howto/static-files/ STATIC_URL = '/static/' -STATIC_ROOT = os.path.join(BASE_DIR, "static") -# STATICFILES_DIRS = [ -# os.path.join(BASE_DIR, "static"), -# ] +# STATIC_ROOT = os.path.join(BASE_DIR, "static") +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, "static"), +] # Setup support for proxy headers USE_X_FORWARDED_HOST = True diff --git a/ofu_app/templates/macros/food_macros.jinja b/ofu_app/templates/macros/food_macros.jinja index 5930817..388165a 100644 --- a/ofu_app/templates/macros/food_macros.jinja +++ b/ofu_app/templates/macros/food_macros.jinja @@ -35,8 +35,17 @@ {% for single_food in menu %}
  • - -
    {{ single_food.price_student}}
    +
    + {% if single_food.price_student %} + +

    {{ single_food.name }}

    + {% else %} +

    {{ single_food.name }}

    + {% endif %} +
    + {% if single_food.price_student %} +
    {{ single_food.price_student }}
    + {% endif %} {#
    #}