Tweaked the phrases for the actions to make them flow better, we still need to localise these.
This commit is contained in:
parent
60bf821f8a
commit
17892ba906
|
@ -161,19 +161,19 @@ func ViewTopic(w http.ResponseWriter, r *http.Request, user common.User, urlBit
|
|||
if replyItem.ActionType != "" {
|
||||
switch replyItem.ActionType {
|
||||
case "lock":
|
||||
replyItem.ActionType = "This topic has been locked by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionType = "This topic was locked by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionIcon = "🔒︎"
|
||||
case "unlock":
|
||||
replyItem.ActionType = "This topic has been reopened by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionType = "This topic was reopened by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionIcon = "🔓︎"
|
||||
case "stick":
|
||||
replyItem.ActionType = "This topic has been pinned by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionType = "This topic was pinned by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionIcon = "📌︎"
|
||||
case "unstick":
|
||||
replyItem.ActionType = "This topic has been unpinned by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionType = "This topic was unpinned by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionIcon = "📌︎"
|
||||
case "move":
|
||||
replyItem.ActionType = "This topic has been moved by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
replyItem.ActionType = "This topic was moved by <a href='" + replyItem.UserLink + "'>" + replyItem.CreatedByName + "</a>"
|
||||
default:
|
||||
replyItem.ActionType = replyItem.ActionType + " has happened"
|
||||
replyItem.ActionIcon = ""
|
||||
|
|
Loading…
Reference in New Issue