Merge pull request #487 from rgarmsen2295/mm-2000
MM-2000 Added links to the teams listed in the 'Find your teams' email
Этот коммит содержится в:
@@ -283,10 +283,10 @@ func emailTeams(c *Context, w http.ResponseWriter, r *http.Request) {
|
|||||||
} else {
|
} else {
|
||||||
teams := result.Data.([]*model.Team)
|
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)
|
props := make(map[string]string)
|
||||||
for _, team := range teams {
|
for _, team := range teams {
|
||||||
props[team.Name] = team.Name
|
props[team.Name] = c.GetTeamURLFromTeam(team)
|
||||||
}
|
}
|
||||||
bodyPage.Props = props
|
bodyPage.Props = props
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
<p>{{ if .Props }}
|
<p>{{ if .Props }}
|
||||||
The following teams were found:<br>
|
The following teams were found:<br>
|
||||||
{{range $index, $element := .Props}}
|
{{range $index, $element := .Props}}
|
||||||
{{ $index }}<br>
|
<a href="{{ $element }}" style="text-decoration: none; color:#2389D7;">{{ $index }}</a><br>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
We could not find any teams for the given email.
|
We could not find any teams for the given email.
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user