Skip to content

Commit 8183233

Browse files
committed
user page tooltip improvements #1992
1 parent 7ca8434 commit 8183233

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

Zero-K.info/Views/Shared/UserDetail.cshtml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090
<h1 class="username">
9191
@if (Model.Country != "??")
9292
{
93-
<img src='/img/flags/@(Model.Country).png' class='flag' height='11' width='16' alt='@Model.Country' />
93+
<img nicetitle="Your last known login location. <br /> <br />Contact the administrators if you would like it not to be shown publicly." src='/img/flags/@(Model.Country).png' class='flag' height='11' width='16' alt='@Model.Country' />
9494
}
95-
@Model.Name <img src="/img/ranks/@(Model.GetIconLevel())_@(Model.Rank).png" class="icon16" alt="rank" />
95+
@Model.Name <img nicetitle="Your combined rank/level icon. <br /><br />Rank is represented by the icon's color. Ranks range from red to purple, grey represents inactive players or players below red. The profile background adjusts based on rank. <br /><br />Level is represented by the icon's shape. It ranges from a single chevron for level 0 to a star for level 100+." src="/img/ranks/@(Model.GetIconLevel())_@(Model.Rank).png" class="icon16" alt="rank" />
9696
</h1>
9797

9898
<div id="usr_info" style="background-image: url('@Ratings.Ranks.GetRankBackgroundImagePath(Model)')">
@@ -108,18 +108,24 @@
108108
<table>
109109
<tr>
110110
<td>
111-
<div class="avatarbg">
111+
<div class="avatarbg" nicetitle="Your avatar was chosen randomly upon registering">
112112
@Html.AccountAvatar(Model)
113113
</div>
114114
</td>
115115
</tr>
116116
<tr>
117117
<td>
118-
<div class="avatarbg">
119-
<!-- @Html.AccountAvatar(Model) -->
120-
@if (Model.Clan != null) { @Html.PrintClan(Model.Clan, true, true); }
121-
else if (Model.Faction != null) { @Html.PrintFaction(Model.Faction, true); }
122-
</div>
118+
<a @if (Model.Clan == null && Model.Faction == null) {
119+
@:href ="/Clans"
120+
}>
121+
<div class="avatarbg" @if (Model.Clan == null && Model.Faction == null) {
122+
@:nicetitle="Click to find a clan!"
123+
}>
124+
<!-- @Html.AccountAvatar(Model) -->
125+
@if (Model.Clan != null) { @Html.PrintClan(Model.Clan, true, true); }
126+
else if (Model.Faction != null) { @Html.PrintFaction(Model.Faction, true); }
127+
</div>
128+
</a>
123129
</td>
124130
</tr>
125131
</table>
@@ -132,7 +138,7 @@
132138
int chev = 0;
133139
int bars = 0;
134140
<div id="badge">
135-
<div id="levelrank" title="This is a graphical representation of your level. Play more games to increase your level!">
141+
<div id="levelrank" title="This is a graphical representation of your exact level. <br /> <br />Play more games to increase your level!">
136142
<!--<div id="velvet"><img src="../../img/ranks/level-elo/velvetbacking.jpg" width="100%" height="100%" /></div>-->
137143
<div id="badge-center">
138144
@if (Model.Level > 125)
@@ -176,7 +182,7 @@
176182

177183
<br class="clearfloat" />
178184
@{ double ratio = Model.GetLevelUpRatio(); }
179-
<div title='Your level: <img src="/img/ranks/@(Model.GetIconLevel())_@(Model.Rank).png" class="icon16" alt="rank" /> Level @(Model.Level) <br /> Progress to next level: @((int)(ratio*100))% <br />XP remaining for level @(Model.Level + 1): @(Account.GetXpForLevel(Model.Level + 1) - Model.Xp)<br />Play more games to increase your level!'>
185+
<div title='Your level: <img src="/img/ranks/@(Model.GetIconLevel())_@(Model.Rank).png" class="icon16" alt="rank" /> Level @(Model.Level) <br /> <br /> Your progress to the next level: @((int)(ratio*100))% <br /> <br />XP remaining for level @(Model.Level + 1): @(Account.GetXpForLevel(Model.Level + 1) - Model.Xp)<br /> <br />Play more games to increase your level!'>
180186

181187
<div class="progress_wrapper_left">
182188
<div class="progress_text"> Level @Model.Level </div>
@@ -193,7 +199,7 @@
193199
</div>
194200
<br class="clearfloat" />
195201
@{ ratio = Ratings.Ranks.GetRankProgress(Model); }
196-
<div title='Your rank: <img src="/img/ranks/@(Model.GetIconLevel())_@(Model.Rank).png" class="icon16" alt="rank" /> @(Ratings.Ranks.RankNames[Model.Rank]) <br /> Your progress to next rank: @((int)Math.Round(ratio*100))%<br />Win more games to improve your rank!'>
202+
<div title='Your rank: <img src="/img/ranks/@(Model.GetIconLevel())_@(Model.Rank).png" class="icon16" alt="rank" /> @(Ratings.Ranks.RankNames[Model.Rank]) <br /> <br /> Your progress to the next rank: @((int)Math.Round(ratio*100))%<br /> <br />Win more games to improve your rank!'>
197203
<div class="progress_wrapper_left">
198204
<div class="progress_text"> @Ratings.Ranks.RankNames[Model.Rank] </div>
199205
<div class="progress_begin"></div>

0 commit comments

Comments
 (0)