Commit 4258875b authored by Daniel W Bond's avatar Daniel W Bond

removed 'welcome back' for new people

parent f54c834e
......@@ -266,6 +266,14 @@ class Student(TimeStampedModel):
else:
return self.user.get_full_name()
def is_noob(self):
now = timezone.now()
days = (now - self.created).days
if days > 2: # more than two days
return False
else:
return True
class Meta:
ordering = ['user']
......
......@@ -9,7 +9,12 @@
{% cache 15 landing request.user.username %}
{% load gravatar %}
<h2>Welcome Back {{ me.get_first_name_or_uname }}!</h2>
<h2>Welcome
{% if not me.is_noob %}
Back
{% else %}
{% endif %}
{{ me.get_first_name_or_uname }}!</h2>
<legend></legend>
{% if me.on_campus %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment