Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
[fix bug 1235984] Add a link to the Alumni page in alumni profiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsoulas committed Jan 8, 2016
1 parent 15dd29f commit 6ef2d10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions remo/profiles/templates/includes/alumni_msg.html
@@ -0,0 +1,5 @@
<div>
Note: You are viewing a profile of a
<a href={{ url('profiles_alumni') }}>former</a> Rep
who is no longer part of the program
</div>
5 changes: 2 additions & 3 deletions remo/profiles/views.py
Expand Up @@ -201,9 +201,8 @@ def view_profile(request, display_name):
messages.warning(request, ('Only mentors can nominate a mentee.'))

if user_is_alumni:
msg = ('Note: You are viewing a profile of a former Rep '
'who is no longer part of the program')
messages.info(request, msg)
msg = render_to_string('includes/alumni_msg.html')
messages.info(request, mark_safe(msg))

today = now().date()

Expand Down

0 comments on commit 6ef2d10

Please sign in to comment.