User references appearance improved

main
Inga 🏳‍🌈 13 years ago
parent 7e0e55b9c1
commit c32ac15925
  1. 2
      FLocal.Common/BBCodes/helpers/UserMentionProcessor.cs
  2. 4
      Resources/FLocal/static/css/modern/global.css

@ -14,7 +14,7 @@ namespace FLocal.Common.BBCodes {
var user = dataobjects.User.LoadByName(username); var user = dataobjects.User.LoadByName(username);
context.OnUserMention(user); context.OnUserMention(user);
var url = new URL.users.user.Info(user.id.ToString(), null); var url = new URL.users.user.Info(user.id.ToString(), null);
return String.Format("<a class=\"separate UG_{0}\" href=\"{1}\">{2}</a>", Safe(user.userGroup.name), url.canonical, Safe(user.name)); return String.Format("<a class=\"separate userreference UG_{0}\" href=\"{1}\">{2}</a>", Safe(user.userGroup.name), url.canonical, Safe(user.name));
} }
} }

@ -284,3 +284,7 @@ a.external {
margin-left:0.5em; margin-left:0.5em;
margin-right:0.5em; margin-right:0.5em;
} }
.userreference:before {
content: "@";
}

Loading…
Cancel
Save