afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-01 03:01 pm

[dw-free] Add total number of tags

[commit: http://hg.dwscoalition.org/dw-free/rev/93abaa71d878]

http://bugs.dwscoalition.org/show_bug.cgi?id=1257

Print out the current and maximum number of tags on manage/tags

Patch by [personal profile] kareila.

Files modified:
  • htdocs/manage/tags.bml
  • htdocs/manage/tags.bml.text
--------------------------------------------------------------------------------
diff -r 592c1bfd1ae8 -r 93abaa71d878 htdocs/manage/tags.bml
--- a/htdocs/manage/tags.bml	Mon Jun 01 14:01:04 2009 +0000
+++ b/htdocs/manage/tags.bml	Mon Jun 01 14:59:25 2009 +0000
@@ -180,9 +180,9 @@ HEAD
     <table id="table_managetags" cellpadding="0" cellspacing="0" align="center">
     <tr><td valign="top">
         <fieldset>
-            <legend>$ML{'.label.yours'}</legend>
-            <div style="padding-top: 6px;">
-    };
+            <legend>};
+    $ret .= BML::ml( '.label.yours', { tagnum => $tagcount, tagmax => $u->get_cap('tags_max') } );
+    $ret .= qq(</legend>\n            <div style="padding-top: 6px;">);
 
     my $tagsort = sub {
         $GET{sort} eq 'use' ?
@@ -203,7 +203,7 @@ HEAD
             $ret .= "<option class='level$tag->{histogram_group}' ";
             $ret .= "value='$value'>$etag</option>";
         }
-        $ret .= "</select>";
+        $ret .= "</select>\n                ";
         $ret .= "<div class='tagsort'>";
         $ret .= $GET{sort} eq 'use' ? BML::ml('.sort.a', { aopts => "href='$LJ::SITEROOT/manage/tags.bml?authas=$u->{user}&sort=alpha'" }) :
                                       BML::ml('.sort.b', { aopts => "href='$LJ::SITEROOT/manage/tags.bml?authas=$u->{user}&sort=use'" });
@@ -229,8 +229,8 @@ HEAD
                     onClick='return validate_input(this, \"add_field\", \"$add_text\")'>";
 
     $ret .= '
-        </div>
-        </div>
+                </div>
+            </div>
         </fieldset>
     </td>
     <td valign="top">';
diff -r 592c1bfd1ae8 -r 93abaa71d878 htdocs/manage/tags.bml.text
--- a/htdocs/manage/tags.bml.text	Mon Jun 01 14:01:04 2009 +0000
+++ b/htdocs/manage/tags.bml.text	Mon Jun 01 14:59:25 2009 +0000
@@ -45,7 +45,7 @@
 
 .label.trusted=trusted
 
-.label.yours=Your Tags
+.label.yours=Your Tags ([[tagnum]] defined, [[tagmax]] maximum)
 
 .none=You haven't created any tags yet.
 
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org