Первый фоллен на хелле (wildkin) wrote in changelog,
Первый фоллен на хелле
wildkin
changelog

[livejournal] r19147: LJSUP-8895: When editing read by tags on...

Committer: dnikolaev
LJSUP-8895: When editing read by tags on page add.bml after removal new tags from the list tags are transferred to mail list of tags

U   trunk/htdocs/friends/add.bml
Modified: trunk/htdocs/friends/add.bml
===================================================================
--- trunk/htdocs/friends/add.bml	2011-05-27 03:02:23 UTC (rev 19146)
+++ trunk/htdocs/friends/add.bml	2011-05-27 03:05:55 UTC (rev 19147)
@@ -266,7 +266,7 @@
          $to_lower_case->($_->{name}) => (
              $_->{uses} < 2 ?
                  '' :
-                 ($_->{uses} > 999 ? '999+' : $_->{uses})
+                 ($_->{uses} > 999 ? '(999+)' : "($_->{uses})")
          )
      }
      grep { $_->{display} }
@@ -298,7 +298,7 @@
  {
      my $not_last = scalar(@$friend_tags_list);
      foreach (@$friend_tags_list) {
-         $body .= '<li><span><a target="_blank" href="#">' . LJ::ehtml($_) . '</a> ' . ($user_tags_map->{$_} ? "($user_tags_map->{$_})" : "") . '<i title="Remove tag from list" class="i-pending-close"></i></span>' . (--$not_last ? ',' : '') . '</li>';
+         $body .= '<li><span><a target="_blank" href="#">' . LJ::ehtml($_) . '</a> ' . (exists $user_tags_map->{$_} ? $user_tags_map->{$_} : '(-)') . '<i title="Remove tag from list" class="i-pending-close"></i></span>' . (--$not_last ? ',' : '') . '</li>';
          $friend_tags_map->{$_} = 1;
      }
  }
@@ -315,7 +315,7 @@
      my @tags = sort grep { !$friend_tags_map->{$_} } keys %$user_tags_map;
      my $not_last = scalar(@tags);
      foreach my $tag (@tags) {
-         $body .= '<li><span><a target="_blank" href="#">' . LJ::ehtml($tag) . '</a> ' . ($user_tags_map->{$tag} ? "($user_tags_map->{$tag})" : "") . '<i title="Remove tag from list" class="i-pending-close"></i></span>' . (--$not_last ? ',' : '') . '</li>';
+         $body .= '<li><span><a target="_blank" href="#">' . LJ::ehtml($tag) . '</a> ' . (exists $user_tags_map->{$tag} ? $user_tags_map->{$tag} : '(-)') . '<i title="Remove tag from list" class="i-pending-close"></i></span>' . (--$not_last ? ',' : '') . '</li>';
      }
  }
 

Tags: bml, livejournal, wildkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments