Created
May 30, 2013 07:14
-
-
Save crosalot/5676203 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% spaceless %} | |
{% load common_tags %} | |
{% load comment_tags %} | |
{% load i18n %} | |
<{% if tag %}{{ tag }}{% else %}li{% endif %} class="notification-item service-{{ notification.service|to_ }}{% if notification.status == notification.STATUS_NEW or notification.status == notification.STATUS_NEW2 %} notification-new{% endif %} clearfix"> | |
{% if notification.service == 'Relationship' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'followed you' %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'Goal' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'created' %} {% trans 'New Goal' %} {% if not no_data %}<a href="{% url goal_view notification.reference_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'GoalSuccess' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'success' %} {% trans 'Goal' %} {% if not no_data %}<a href="{% url goal_view notification.reference_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'Inspiration' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'created' %} {% trans 'New Inspire Goal' %} {% if not no_data %}<a href="{% url inspiration_view notification.reference_id %}">"{% get_inspiration_title notification.reference_id %}"</a> {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'Todo' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'updated' %} {% trans 'To do' %} {% if not no_data and notification.data %}: <a href="{% url goal_view notification.reference_id %}">"{{ notification.data }}"</a>{% endif %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'TodoSuccess' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'success' %} {% trans 'To do' %} {% if not no_data and notification.data %}: <a href="{% url goal_view notification.reference_id %}">"{{ notification.data }}"</a>{% endif %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'ForkGoal' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'forked' context 'notity fork' %} <a href="{% url goal_view notification.reference_id %}">{% trans 'Your Goal' %}</a> {% trans 'to' context 'notity fork' %} <a href="{% url goal_view notification.object_id %}">"{{ notification.data }}"</a>{% if display_time %} <span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'ForkInspiration' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'forked' context 'notity fork' %} <a href="{% url inspiration_view notification.reference_id %}">{% trans 'Your Inspire Goal' %}</a> {% trans 'to' context 'notity fork' %} <a href="{% url goal_view notification.object_id %}">"{{ notification.data }}"</a>{% if display_time %} <span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'CheerGoal' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'cheer in' %} {% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.reference_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'CheerInspiration' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'cheer in' %} {% trans 'Your Inspire Goal' %} {% if not no_data %}<a href="{% url inspiration_view notification.reference_id %}">"{% get_inspiration_title notification.reference_id %}"</a> {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'CheerComment' %} | |
{% get_comment notification.reference_id as comment %} | |
{{ notification.src_user|fullnamelink }} {% trans 'cheer in' %} {% trans 'Your Comment' %} {% if not no_data %}"{{ notification.data }}" {% trans 'on Goal' %} <a href="{% url goal_view comment.goal.id %}">"{% get_goal_title comment.goal.id %}"</a> {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'CheerCommentInspiration' %} | |
{% get_comment notification.reference_id as comment %} | |
{{ notification.src_user|fullnamelink }} {% trans 'cheer in' %} {% trans 'Your Comment' %} {% if not no_data %}"{{ notification.data }}" {% trans 'on Inspire Goal' %} <a href="{% url inspiration_view comment.goal.id %}">"{% get_inspiration_title comment.goal.id %}"</a> {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'ApproveGoal' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'congrats in' %} {% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.reference_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'CommentGoal' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'commented in' %} {% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.reference_id %}">"{% get_goal_title notification.reference_id %}"</a> :<br /> "{{ notification.data }}"{% endif %}{% if display_time %} <span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'CommentInspiration' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'commented in' %} {% trans 'Your Inspire Goal' %} {% if not no_data %}<a href="{% url inspiration_view notification.reference_id %}">"{% get_inspiration_title notification.reference_id %}"</a> :<br /> "{{ notification.data }}"{% endif %}{% if display_time %} <span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'CommentGoalComment' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'commented in' %} {% trans 'Your Comment'%} {% trans 'on Goal' %} {% if not no_data %}<a href="{% url goal_view notification.reference_id %}">"{% get_goal_title notification.reference_id %}"</a> :<br /> "{{ notification.data }}" {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'CommentInspirationComment' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'commented in' %} {% trans 'Your Comment'%} {% trans 'on Inspire Goal' %} {% if not no_data %}<a href="{% url inspiration_view notification.reference_id %}">"{% get_inspiration_title notification.reference_id %}"</a> :<br /> "{{ notification.data }}" {% endif %}{% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'Reward' %} | |
{% trans 'You have earn' %} <a href="{% url account_profile_reward notification.dst_user.username %}">{{ notification.medal.title }}</a>{% if display_time %} <span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'GoalDueDateSixMonth' %} | |
{% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.object_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% trans 'near to due dates in' %} {% trans 'six months' %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'GoalDueDateTreeMonth' %} | |
{% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.object_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% trans 'near to due dates in' %} {% trans 'tree months' %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'GoalDueDateMonth' %} | |
{% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.object_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% trans 'near to due dates in' %} {% trans 'next month' %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'GoalDueDateWeek' %} | |
{% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.object_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% trans 'near to due dates in' %} {% trans 'next week' %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'GoalDueDateTomorrow' %} | |
{% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.object_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% trans 'near to due dates on' %} {% trans 'tomorrow' %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% elif notification.service == 'GoalFail' %} | |
{% trans 'Your Goal' %} {% if not no_data %}<a href="{% url goal_view notification.object_id %}">"{% get_goal_title notification.reference_id %}"</a> {% endif %}{% trans 'fail' %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> | |
{% endif %} | |
</{% if tag %}{{ tag }}{% else %}li{% endif %}> | |
{% endspaceless %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment