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): ...@@ -266,6 +266,14 @@ class Student(TimeStampedModel):
else: else:
return self.user.get_full_name() 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: class Meta:
ordering = ['user'] ordering = ['user']
......
...@@ -9,7 +9,12 @@ ...@@ -9,7 +9,12 @@
{% cache 15 landing request.user.username %} {% cache 15 landing request.user.username %}
{% load gravatar %} {% 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> <legend></legend>
{% if me.on_campus %} {% 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