Ralfp 12 лет назад
Родитель
Сommit
fccfb03884

+ 0 - 3
static/cranefly/css/cranefly.css

@@ -1006,9 +1006,6 @@ a.btn-link:hover,a.btn-link:active,a.btn-link:focus{opacity:0.9;filter:alpha(opa
 .forum-map-category{background-color:#ffffff;border:1px solid #d5d5d5;border-radius:2px;-webkit-box-shadow:0px 0px 0px 3px #eeeeee;-moz-box-shadow:0px 0px 0px 3px #eeeeee;box-shadow:0px 0px 0px 3px #eeeeee;margin-bottom:20px;}.forum-map-category table{margin:0px;}.forum-map-category table caption{background-color:#fbfbfb;border:1px solid #d5d5d5;border-radius:2px 2px 0px 0px;margin:-1px;padding:3.966666666666667px 9.9px;color:#333333;font-size:11.9px;font-weight:bold;text-align:left;}.forum-map-category table caption small{margin-left:7px;color:#999999;font-size:11.9px;}
 .forum-map-category table .forum-map-forum h3,.forum-map-category table .forum-map-subforum h3{margin:0px;padding:0px;font-size:14px;line-height:20px;}.forum-map-category table .forum-map-forum h3 a:link,.forum-map-category table .forum-map-subforum h3 a:link,.forum-map-category table .forum-map-forum h3 a:visited,.forum-map-category table .forum-map-subforum h3 a:visited{color:#555555;}
 .forum-map-category table .forum-map-forum h3 a:active,.forum-map-category table .forum-map-subforum h3 a:active,.forum-map-category table .forum-map-forum h3 a:hover,.forum-map-category table .forum-map-subforum h3 a:hover{color:#333333;}
-.forum-map-category table .forum-map-forum .forum-details,.forum-map-category table .forum-map-subforum .forum-details{float:right;margin-top:-19px;color:#999999;font-size:11.9px;}.forum-map-category table .forum-map-forum .forum-details strong,.forum-map-category table .forum-map-subforum .forum-details strong,.forum-map-category table .forum-map-forum .forum-details a,.forum-map-category table .forum-map-subforum .forum-details a{color:#555555;font-weight:normal;}
-.forum-map-category table .forum-map-forum .forum-details a:hover,.forum-map-category table .forum-map-subforum .forum-details a:hover,.forum-map-category table .forum-map-forum .forum-details a:active,.forum-map-category table .forum-map-subforum .forum-details a:active{color:#333333;}
-.forum-map-category table .forum-map-forum .forum-details strong.stat-increment,.forum-map-category table .forum-map-subforum .forum-details strong.stat-increment{color:#46a546;}
 .forum-map-category table .forum-map-subforum{padding-left:15px;}.forum-map-category table .forum-map-subforum span.tree-t,.forum-map-category table .forum-map-subforum span.tree-l,.forum-map-category table .forum-map-subforum span.tree-s,.forum-map-category table .forum-map-subforum span.tree-i{display:inline-block;height:20px;width:10px;}
 .forum-map-category table .forum-map-subforum span.tree-t{border-left:1px solid #999999;margin-right:2px;}.forum-map-category table .forum-map-subforum span.tree-t span{border-top:1px solid #999999;display:inline-block;height:1px;width:100%;margin-bottom:3px;}
 .forum-map-category table .forum-map-subforum span.tree-l{margin-right:4px;}.forum-map-category table .forum-map-subforum span.tree-l span{border-left:1px solid #999999;border-bottom:1px solid #999999;display:inline-block;height:10px;width:100%;margin-bottom:3px;}

+ 0 - 21
static/cranefly/css/cranefly/forummap.less

@@ -47,27 +47,6 @@
 			    color: @textColor;
 			  }
       }
-
-      .forum-details {
-        float: right;
-        margin-top: (@baseLineHeight * -1) + 1px;
-
-        color: @grayLight;
-        font-size: @fontSizeSmall;
-
-        strong, a {
-          color: @gray;
-          font-weight: normal
-        }
-
-        a:hover, a:active {
-          color: @textColor;
-        }
-
-        strong.stat-increment {
-          color: @green;
-        }
-      }
     }
 
     .forum-map-subforum {

+ 1 - 40
templates/cranefly/forum_map.html

@@ -57,13 +57,6 @@
     {%- else -%}
     {{ draw_tree(branch ~ 't') }}
     {%- endif %}{% endif %} <a href="{{ forum.type|url(slug=forum.slug, forum=forum.id) }}">{{ forum.name }}</a></h3>
-    <div class="forum-details">
-      {% if forum.type == 'redirect' %}
-      {{ redirect_stats(forum) }}
-      {% else %}
-      {{ forum_stats(forum) }}
-      {% endif %}
-    </div>
 </td>
 </tr>
 {% for subforum in forum.subforums %}
@@ -83,36 +76,4 @@
 {% for item in branch %}
 <span class="tree-{{ item }}"><span></span></span>
 {% endfor %}
-{% endmacro %}
-
-{% macro forum_stats(forum) -%}
-{% if forum.last_thread_id and not forum.attr('hidethread') -%}
-  {% trans count=forum.posts, posts=fancy_number(forum.posts, forum.posts_delta), thread=forum_thread(forum) -%}
-  {{ posts }} post - last in {{ thread }}
-  {%- pluralize -%}
-  {{ posts }} posts - last in {{ thread }}
-  {%- endtrans %}
-{%- else -%}
-  {% trans count=forum.posts, posts=fancy_number(forum.posts, forum.posts_delta) -%}
-  {{ posts }} post
-  {%- pluralize -%}
-  {{ posts }} posts
-  {%- endtrans %}
-{%- endif %}
-{%- endmacro %}
-
-{% macro forum_thread(forum) -%}
-<a href="{% url 'thread' thread=forum.last_thread_id, slug=forum.last_thread_slug %}">{{ forum.last_thread_name }}</a>
-{%- endmacro %}
-
-{% macro redirect_stats(forum) -%}
-{% trans count=forum.redirects, redirects=fancy_number(forum.redirects, forum.redirects_delta) -%}
-{{ redirects }} click
-{%- pluralize -%}
-{{ redirects }} clicks
-{%- endtrans %}
-{%- endmacro %}
-
-{% macro fancy_number(number, delta) -%}
-<strong{% if delta < number %} class="stat-increment"{% endif %}>{{ number|intcomma }}</strong>
-{%- endmacro %}
+{% endmacro %}