From 5bc6dcf4f8e44ed1aa6ad7ce0b30d53068feee4a Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Wed, 12 Oct 2011 15:36:41 -0300 Subject: deleted all the elements that already were migrated to user_macros --- askbot/skins/default/templates/macros/macros.html | 128 ---------------------- 1 file changed, 128 deletions(-) diff --git a/askbot/skins/default/templates/macros/macros.html b/askbot/skins/default/templates/macros/macros.html index 282553e4..73f52975 100644 --- a/askbot/skins/default/templates/macros/macros.html +++ b/askbot/skins/default/templates/macros/macros.html @@ -1,25 +1,3 @@ -{%- macro user_score_and_badge_summary(user) -%} - {{user.reputation}} - {% if user.gold or user.silver or user.bronze %} - - {% if user.gold %} - - {{user.gold}} - {% endif %} - {% if user.silver %} - - {{user.silver}} - {% endif %} - {% if user.bronze %} - - {{user.bronze}} - {% endif %} - - {% endif %} -{%- endmacro -%} - {%- macro share(site = None, site_label = None, icon = False) -%} {%- endmacro -%} -{%- macro follow_user_toggle(visitor = None, subject = None) -%} - {% if visitor.is_anonymous() %} - {{ follow_toggle(True, 'user', subject.username, subject.id) }} - {% else %} - {% if visitor != subject %} - {% if visitor.is_following(subject) %} - {{ follow_toggle(False, 'user', subject.username, subject.id) }} - {% else %} - {{ follow_toggle(True, 'user', subject.username, subject.id) }} - {% endif %} - {% endif %} - {% endif %} -{%- endmacro -%} - -{%- macro user_long_score_and_badge_summary(user) -%} - {% trans %}karma:{% endtrans %} {{user.reputation}} - {%- if user.gold or user.silver or user.bronze %} - {% trans %}badges:{% endtrans %} - {% if user.gold %} - - {{user.gold}} - {% endif %} - {% if user.silver %} - - {{user.silver}} - {% endif %} - {% if user.bronze %} - - {{user.bronze}} - {%- endif -%} - - {%- endif -%} -{%- endmacro -%} - -{%- macro user_country_flag(user) -%} - {% if user.country and user.show_country %} - {% trans 
-                    country=user.country.name 
-                    %}flag of {{country}}{% 
-                endtrans %} - {% endif %} -{%- endmacro -%} - -{%- macro user_country_name_and_flag(user) -%} - {% if user.country and user.show_country %} - {{ user.country.name }} - {{ user_country_flag(user) }} - {% endif %} -{%- endmacro -%} - -{%- macro user_full_location(user) -%} - {% if user.location %} - {{ user.location }}, - {% endif %} - {{ user_country_name_and_flag(user) }} -{%- endmacro -%} - -{%- macro user_list(users, profile_section = None) -%} -
- - - - - -
- {% for user in users %} -
-
    -
  • {{ gravatar(user, 32) }}
  • -
  • {{user.username}}{{ user_country_flag(user) }}
  • -
  • {{ user_score_and_badge_summary(user) }}
  • -
-
- {% if loop.index is divisibleby 7 %} -
- {% endif %} - {% endfor %} -
-
-{%- endmacro -%} - {%- macro paginator(p, position='left') -%}{# p is paginator context dictionary #} {% spaceless %} {% if p.is_paginated %} @@ -213,20 +99,6 @@ {% endspaceless %} {%- endmacro -%} -{%- macro user_website_link(user, max_display_length=25) -%} - {% if user.website %} - - {{user.website|truncate(length=max_display_length, killwords=True, end='...')}} - - {% endif %} -{%- endmacro -%} - {%- macro post_contributor_avatar_and_credentials(post, user) -%} {% if post.is_anonymous %} {% trans %}anonymous user{% endtrans %} -- cgit v1.2.3-1-g7c22