summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-08-26 15:02:34 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-08-26 15:02:34 -0700
commit841aef34f507cb75a10dd76c569326dae8483ea7 (patch)
tree2a5f0e147c1d9f743337daff8449b371d856a605 /api/team.go
parent378f0b52c10d3b9dc670da34a0043b7e05f3e93c (diff)
downloadchat-841aef34f507cb75a10dd76c569326dae8483ea7.tar.gz
chat-841aef34f507cb75a10dd76c569326dae8483ea7.tar.bz2
chat-841aef34f507cb75a10dd76c569326dae8483ea7.zip
Added links to the teams listed in the 'Find your teams' email
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go4
1 files changed, 2 insertions, 2 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