diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-08-27 10:02:19 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-08-27 10:02:19 -0400 |
commit | ea4beb7c4545e3ad6c7214a6a15ec66cc784f5ea (patch) | |
tree | dcfed5b3acfa0c5a16a013a3203dd2808ec6d6b0 /api | |
parent | d5e202a4d9b735dca2e3cc54137b8d66cb167580 (diff) | |
parent | 841aef34f507cb75a10dd76c569326dae8483ea7 (diff) | |
download | chat-ea4beb7c4545e3ad6c7214a6a15ec66cc784f5ea.tar.gz chat-ea4beb7c4545e3ad6c7214a6a15ec66cc784f5ea.tar.bz2 chat-ea4beb7c4545e3ad6c7214a6a15ec66cc784f5ea.zip |
Merge pull request #487 from rgarmsen2295/mm-2000
MM-2000 Added links to the teams listed in the 'Find your teams' email
Diffstat (limited to 'api')
-rw-r--r-- | api/team.go | 4 | ||||
-rw-r--r-- | api/templates/find_teams_body.html | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/api/team.go b/api/team.go index a331e9e34..8587a6de4 100644 --- a/api/team.go +++ b/api/team.go @@ -283,10 +283,10 @@ func emailTeams(c *Context, w http.ResponseWriter, r *http.Request) { } else { teams := result.Data.([]*model.Team) - // the template expects Props to be a map with team names as the keys + // the template expects Props to be a map with team names as the keys and the team url as the value props := make(map[string]string) for _, team := range teams { - props[team.Name] = team.Name + props[team.Name] = c.GetTeamURLFromTeam(team) } bodyPage.Props = props diff --git a/api/templates/find_teams_body.html b/api/templates/find_teams_body.html index bd151a819..64bff8126 100644 --- a/api/templates/find_teams_body.html +++ b/api/templates/find_teams_body.html @@ -21,7 +21,7 @@ <p>{{ if .Props }} The following teams were found:<br> {{range $index, $element := .Props}} - {{ $index }}<br> + <a href="{{ $element }}" style="text-decoration: none; color:#2389D7;">{{ $index }}</a><br> {{ end }} {{ else }} We could not find any teams for the given email. |