From 26e2ec37e4fcf9979b078f9c32ee7d89a53dc939 Mon Sep 17 00:00:00 2001 From: pebosi Date: Tue, 14 Jan 2014 23:45:22 +0100 Subject: [PATCH] fix wishlist templates --- templates/wishlist/modules/wish.html | 2 +- templates/wishlist/wish.html | 86 +++++++--------------------- 2 files changed, 22 insertions(+), 66 deletions(-) diff --git a/templates/wishlist/modules/wish.html b/templates/wishlist/modules/wish.html index 82f3688f..1c9538e0 100644 --- a/templates/wishlist/modules/wish.html +++ b/templates/wishlist/modules/wish.html @@ -22,7 +22,7 @@


- + {{ _("Donate") }}

diff --git a/templates/wishlist/wish.html b/templates/wishlist/wish.html index 82f3688f..fd4bb5b3 100644 --- a/templates/wishlist/wish.html +++ b/templates/wishlist/wish.html @@ -1,73 +1,29 @@ -
  • -
    - {% if not short %} - {% if wish.remaining_days <= 10 and wish.remaining_days >= 0 %} - - {{ _("Only a few days left!") }} - - {% end %} +{% extends "base.html" %} -

    - {{ escape(wish.title) }} -

    +{% block title %}{{ wish.title }} - {{ _("Wish") }}{% end block %} - {% raw wish.description %} -
    - {% end %} +{% block body %} + -
    -
    -
    + {% module Wishlist([wish,], short=True) %} -
    - + {% raw wish.description %} -
    -
    -
    -
    -

    {{ "%d%%" % wish.percentage }}

    -

    {{ _("funded") }}

    -
    +
    -
    -

    {% raw _("%s €") % wish.donated %}

    -

    {{ _("donated") }}

    -
    +

    + + {{ _("Launched: %s") % locale.format_date(wish.date_start, full_format=True) }} -

    - {% if wish.status == "running" %} - {% if wish.remaining_days %} -

    {{ wish.remaining_days }}

    -

    {{ _("day to go", "days to go", wish.remaining_days) }}

    - {% else %} -

    {% raw _("%s €") % (wish.goal - wish.donated) %}

    -

    {{ _("to go") }}

    - {% end %} - {% elif wish.status == "in_progress" %} -

    {{ _("In progress") }}

    - {% elif wish.status == "finished" %} -

    {{ _("Finished") }}

    - {% else %} -

    {{ _("Funding ended") }}

    - {% end %} -
    -
    -
    -
    + • -
    -
    -

    - {{ _("Share this wish with your friends and help us promote it!") }} -

    -
    -
    -
    -
  • + {% if wish.date_end %} + + {{ _("Funding ends: %s") % locale.format_date(wish.date_end, full_format=True) }} + {% else %} + {{ _("This funding runs until the goal is reached.") }} + {% end %} +

    +{% end block %} -- 2.47.3