|
23 | 23 |
|
24 | 24 | <link href="/Styles/userpage.css" rel="stylesheet"> |
25 | 25 |
|
26 | | - int badge_width = 60; |
| 26 | + int badge_width = 69; |
27 | 27 | int padding = 10; |
28 | 28 | <style> |
29 | 29 | #levelrank { |
|
63 | 63 | } |
64 | 64 | @if (!Model.IsDeleted || Global.IsModerator) |
65 | 65 | { |
| 66 | + <div class="user_buttons"> |
| 67 | + <table> |
| 68 | + <tr> |
| 69 | + <td> |
| 70 | + @if (Model.AccountID != Global.AccountID) |
| 71 | + { |
| 72 | + <a href="@Html.PrintSpringLink("chat/user/" + Model.Name)" nicetitle="Chat with @Model.Name in the lobby"><img src="/img/chat.png" height="32" /></a><br /> |
| 73 | + } |
| 74 | + </td> |
| 75 | + <td> |
| 76 | + @if (Model.AccountID == Global.AccountID) |
| 77 | + { |
| 78 | + <a href="@Url.Action("ReportToAdmin", "Users", new { id = Model.AccountID })" nicetitle="Contact administrators"><img src="/img/help.png" height="32" /></a> |
| 79 | + } |
| 80 | + else |
| 81 | + { |
| 82 | + <a href="@Url.Action("ReportToAdmin", "Users", new { id = Model.AccountID })" nicetitle="Report abuse to administrators"><img src="/img/abuse.png" height="32" /></a> |
| 83 | + } |
| 84 | + </td> |
| 85 | + <td> |
| 86 | + <a href="/Wiki/CodeOfConduct" nicetitle="Code of Conduct"><b><img src="/img/conduct.png" height="32" /></b></a> |
| 87 | + </td> |
| 88 | + </tr> |
| 89 | + </table> |
| 90 | + </div> |
66 | 91 | <h1 class="username"> |
67 | 92 | @if (Model.Country != "??") |
68 | 93 | { |
|
73 | 98 |
|
74 | 99 | <div id="usr_info" style="background-image: url('/img/rankbg/@(backgroundImages[Model.Rank]).png')"> |
75 | 100 | <div class="ranks"> |
76 | | - <div class="user_buttons"> |
77 | | - <table> |
78 | | - <tr> |
79 | | - <td> |
80 | | - @if (Model.AccountID != Global.AccountID) |
81 | | - { |
82 | | - <a href="@Html.PrintSpringLink("chat/user/" + Model.Name)" nicetitle="Chat with @Model.Name in the lobby"><img src="/img/chat.png" height="32" /></a><br /> |
83 | | - } |
84 | | - </td> |
85 | | - </tr> |
86 | | - <tr> |
87 | | - <td> |
88 | | - @if (Model.AccountID == Global.AccountID) |
89 | | - { |
90 | | - <a href="@Url.Action("ReportToAdmin", "Users", new { id = Model.AccountID })" nicetitle="Contact administrators"><img src="/img/help.png" height="32" /></a> |
91 | | - } |
92 | | - else |
93 | | - { |
94 | | - <a href="@Url.Action("ReportToAdmin", "Users", new { id = Model.AccountID })" nicetitle="Report abuse to administrators"><img src="/img/abuse.png" height="32" /></a> |
95 | | - } |
96 | | - </td> |
97 | | - </tr> |
98 | | - <tr> |
99 | | - <td> |
100 | | - <a href="/Wiki/CodeOfConduct" nicetitle="Code of Conduct"><b><img src="/img/conduct.png" height="32" /></b></a> |
101 | | - </td> |
102 | | - </tr> |
103 | | - </table> |
| 101 | + |
| 102 | + <div id="badges"> |
| 103 | + @Html.PrintBadges(Model, 64, false) |
104 | 104 | </div> |
| 105 | + |
105 | 106 |
|
106 | | - <div id="avatar"> |
107 | | - @Html.AccountAvatar(Model)<br /> |
108 | | - @if (Model.Faction != null) { Html.PrintFaction(Model.Faction, true); }<br /> |
109 | | - @if (Model.Clan != null) { Html.PrintClan(Model.Clan, true, true); }<br /> |
| 107 | + <div id="avatarwrap"> |
| 108 | + <div id="avatar"> |
| 109 | + <table> |
| 110 | + <tr> |
| 111 | + <td> |
| 112 | + <div class="avatarbg"> |
| 113 | + @Html.AccountAvatar(Model) |
| 114 | + </div> |
| 115 | + </td> |
| 116 | + </tr> |
| 117 | + <tr> |
| 118 | + <td> |
| 119 | + <div class="avatarbg"> |
| 120 | + @Html.AccountAvatar(Model) |
| 121 | + @if (Model.Clan != null) { Html.PrintClan(Model.Clan, true, true); } |
| 122 | + else if (Model.Faction != null) { Html.PrintFaction(Model.Faction, true); } |
| 123 | + </div> |
| 124 | + </td> |
| 125 | + </tr> |
| 126 | + </table> |
| 127 | + </div> |
110 | 128 | </div> |
111 | 129 |
|
112 | | - @if (!Global.IsLobbyAccess) |
| 130 | + @if (!Global.IsLobbyAccess) |
113 | 131 | { |
114 | 132 | int star = 0; |
115 | 133 | int chev = 0; |
116 | 134 | int bars = 0; |
117 | | - <div id="badge"> |
118 | | - <div id="badges"> |
119 | | - @Html.PrintBadges(Model, 64, false) |
120 | | - </div> |
121 | | - <div id="levelrank" title="This is a graphical representation of your level. Play more games to gain more rank!"> |
122 | | - <div id="velvet"><img src="../../img/ranks/level-elo/velvetbacking.jpg" width="100%" height="100%" /></div> |
123 | | - <div id="badge-center"> |
124 | | - @if (Model.Level > 125) |
125 | | - { |
126 | | - star = 125; |
127 | | - <div id="badge-star"> |
128 | | - <img src="../../img/ranks/level-elo/star.png" class="rank star" /> |
129 | | - </div> |
130 | | - } |
131 | | - <div id="badge-chevrons"> |
132 | | - @for (int i = 0; i < (Model.Level - star) / 25; i++) |
| 135 | + <div id="badge"> |
| 136 | + <div id="levelrank" title="This is a graphical representation of your level. Play more games to gain more rank!"> |
| 137 | + <div id="velvet"><img src="../../img/ranks/level-elo/velvetbacking.jpg" width="100%" height="100%" /></div> |
| 138 | + <div id="badge-center"> |
| 139 | + @if (Model.Level > 125) |
133 | 140 | { |
134 | | - <img src="../../img/ranks/level-elo/chevron_gold.png" class="rank chev chev-@(i + 1)" /> |
135 | | - chev += 25; |
| 141 | + star = 125; |
| 142 | + <div id="badge-star"> |
| 143 | + <img src="../../img/ranks/level-elo/star.png" class="rank star" /> |
| 144 | + </div> |
136 | 145 | } |
137 | | - </div> |
138 | | - <div id="badge-bars"> |
139 | | - @for (int i = 0; i < (Model.Level - star - chev) / 5; i++) |
140 | | - { |
141 | | - <img src="../../img/ranks/level-elo/bar_gold.png" class="rank bar bar-@(i + 1)" /> |
142 | | - bars += 1; |
143 | | - } |
144 | | - <div class="rank dotline bar-@(bars + 1)"> |
145 | | - @for (int i = 0; i < (Model.Level - star - chev) % 5; i++) |
| 146 | + <div id="badge-chevrons"> |
| 147 | + @for (int i = 0; i < (Model.Level - star) / 25; i++) |
146 | 148 | { |
147 | | - <img src="../../img/ranks/level-elo/dot_gold.png" class="dot" /> |
| 149 | + <img src="../../img/ranks/level-elo/chevron_gold.png" class="rank chev chev-@(i + 1)" /> |
| 150 | + chev += 25; |
148 | 151 | } |
149 | 152 | </div> |
| 153 | + <div id="badge-bars"> |
| 154 | + @for (int i = 0; i < (Model.Level - star - chev) / 5; i++) |
| 155 | + { |
| 156 | + <img src="../../img/ranks/level-elo/bar_gold.png" class="rank bar bar-@(i + 1)" /> |
| 157 | + bars += 1; |
| 158 | + } |
| 159 | + <div class="rank dotline bar-@(bars + 1)"> |
| 160 | + @for (int i = 0; i < (Model.Level - star - chev) % 5; i++) |
| 161 | + { |
| 162 | + <img src="../../img/ranks/level-elo/dot_gold.png" class="dot" /> |
| 163 | + } |
| 164 | + </div> |
| 165 | + </div> |
150 | 166 | </div> |
151 | 167 | </div> |
152 | 168 | </div> |
153 | | - </div> |
154 | | - } |
155 | | - </div> |
| 169 | + } |
| 170 | + </div> |
156 | 171 | <br /> |
157 | 172 | @foreach (Punishment p in Model.PunishmentsByAccountID.Where(x => x.BanExpires > DateTime.UtcNow)) |
158 | 173 | { |
|
0 commit comments