|
199 | 199 | %h4 HTML code
|
200 | 200 | =text_area_tag 'HTML', html_embed_code_with_count
|
201 | 201 |
|
202 |
| - -if is_admin? |
203 |
| - .hint-box |
204 |
| - %ul.hint |
205 |
| - %li=mail_to(@user.email) |
206 |
| - %li |
207 |
| - ==Total Views: #{@user.total_views} |
208 |
| - %li |
209 |
| - ==Last Request: #{time_ago_in_words(@user.last_request_at || Time.at(0))} ago |
210 |
| - %li |
211 |
| - ==Login Count: #{@user.login_count} |
212 |
| - %li |
213 |
| - ==Achievements last reviewed #{time_ago_in_words(@user.achievements_checked_at)} ago |
214 |
| - %li |
215 |
| - ==Score: #{@user.score} |
216 |
| - - if @user.banned? |
217 |
| - %li |
218 |
| - Banned: |
219 |
| - = @user.banned_at.to_s(:long) |
220 |
| - %li.admin-action |
221 |
| - =link_to("Impersonate", "/sessions/force?username=#{@user.username}") |
222 |
| - %li.admin-action |
223 |
| - - if @user.banned? |
224 |
| - =link_to("Unban this user", user_unbans_path(@user), method: :post) |
225 |
| - - else |
226 |
| - =link_to("Ban this user", user_bans_path(@user), method: :post) |
227 |
| - -if @user.twitter |
228 |
| - %li.admin-action |
229 |
| - =link_to('Clear Twitter!', clear_provider_path(@user, :provider => 'twitter'), :confirm => 'Are you sure?') |
230 |
| - -if @user.github |
231 |
| - %li.admin-action |
232 |
| - =link_to('Clear GitHub!', clear_provider_path(@user, :provider => 'github'), :confirm => 'Are you sure?') |
233 |
| - -if @user.linkedin || @user.linkedin_id |
234 |
| - %li.admin-action |
235 |
| - =link_to('Clear LinkedIn!', clear_provider_path(@user, :provider => 'linkedin'), :confirm => 'Are you sure?') |
236 |
| - |
237 |
| - %li.admin-action |
238 |
| - =link_to('Delete Facts', clear_provider_path(@user, :provider => 'facts'),:confirm => 'Are you sure?', :method => :delete) |
239 |
| - %li.admin-action |
240 |
| - =link_to('Delete User', user_path(@user),:confirm => 'Are you sure?', :method => :delete) |
| 202 | + = render('show_admin_panel', user: @user) if is_admin? |
0 commit comments