]> git.openstreetmap.org Git - osqa.git/commitdiff
Tags name is included into their classname. Just like on stackoverflow. Jira OSQA...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 23 Dec 2010 01:37:35 +0000 (01:37 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 23 Dec 2010 01:37:35 +0000 (01:37 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@628 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/node/revision.html
forum/skins/default/templates/question.html
forum/skins/default/templates/question_list/item.html
forum/skins/default/templates/question_list/related_tags.html
forum/skins/default/templates/question_list/tag_selector.html
forum/skins/default/templates/question_summary_list_roll.html
forum/skins/default/templates/sidebar/recent_tags.html
forum/skins/default/templates/tag_selector.html
forum/skins/default/templates/tags.html
forum/skins/default/templates/users/stats.html

index c189204659ab4fac8ea93d542be6d0ae1f54c760..d6ac677509e109d3503ac56af1dada9c956c18b3 100644 (file)
@@ -4,7 +4,7 @@
     {% if tags %}\r
         <div class="tags">\r
             {% for tag in tags %}\r
-            <a class="post-tag">{{ tag }}</a>\r
+            <a class="post-tag tag-link-{{ tag }}">{{ tag }}</a>\r
             {% endfor %}\r
         </div>\r
     {% endif %}\r
index 7fdbafbd99cf2b4c34393d57ea85c963e435a61a..efb797b243b37fe22166ddf87ca6b4985355f5c5 100644 (file)
                             </div>\r
                             <div id="question-tags" class="tags-container tags">\r
                                 {% for tag in question.tagname_list %}\r
-                                    <a href="{% url tag_questions tag|urlencode %}" class="post-tag"\r
+                                    <a href="{% url tag_questions tag|urlencode %}" class="post-tag tag-link-{{ tag }}"\r
                                         title="{% blocktrans with tag as tagname %}see questions tagged '{{ tagname }}'{% endblocktrans %}" rel="tag">{{ tag }}</a>\r
                                 {% endfor %}\r
                             </div>\r
     </p>\r
     <p class="tags" >\r
         {% for tag in question.tags.all %}\r
-               <a href="{% url tag_questions tag.name|urlencode %}" \r
-                       title="{% trans "see questions tagged"%}'{{tag.name}}'{% trans "using tags" %}" \r
+               <a href="{% url tag_questions tag.name|urlencode %}"\r
+            class="tag-link-{{ tag.name }}"\r
+                       title="{% trans "see questions tagged"%}'{{tag.name}}'{% trans "using tags" %}"\r
                        rel="tag">{{ tag.name }}</a> <span class="tag-number">&#215;{{ tag.used_count|intcomma }}</span><br/>\r
         {% endfor %}\r
     </p>\r
index b28cdf49d0670a29c1417c6d9fa7feb116b29e8e..4eb3c3bc1c0f70d248a879c210ed3153cc5ac41e 100644 (file)
@@ -28,7 +28,7 @@
         </div>\r
 \r
         <div class="tags">{% for tag in question.tagname_list %}\r
-            <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>{% endfor %}\r
+            <a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}'" rel="tag">{{ tag }}</a>{% endfor %}\r
         </div>\r
     </div>\r
 \r
index 665d2fe87ed69e8011386161b9f0d3e13120a62b..6ec2a75c17d688b2798c456d6409e00879198fed 100644 (file)
@@ -6,7 +6,7 @@
         <h3 class="subtitle">{% trans "Related tags" %}</h3>\r
         <div class="tags" id="recent-tags">\r
             {% for tag in tags %}\r
-                <a rel="tag" title="{% blocktrans with tag.name as tag_name %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"  href="{% url tag_questions tag.name|urlencode %}">{{ tag.name }}</a>\r
+                <a rel="tag" class="tag-link-{{ tag.name }}" title="{% blocktrans with tag.name as tag_name %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"  href="{% url tag_questions tag.name|urlencode %}">{{ tag.name }}</a>\r
                 <span class="tag-number">&#215; {{ tag.used_count|intcomma }}</span>\r
                 <br />\r
             {% endfor %}\r
index 2fa8f1853db27ded7f4f790d259adc3fca90ef56..f507d646efde2994dbe784995a9fb6397961c660 100644 (file)
@@ -9,6 +9,7 @@
         {% spaceless %}
         <span class="deletable-tag" id="interesting-tag-{{tag_name}}">
             <a rel="tag" 
+                class="tag-link-{{ tag_name }}"
                 title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
                 href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
             <img class="delete-icon" 
@@ -26,6 +27,7 @@
         {% spaceless %}
         <span class="deletable-tag" id="ignored-tag-{{tag_name}}">
             <a rel="tag" 
+                class="tag-link-{{ tag_name }}"
                 title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
                 href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
             <img class="delete-icon" 
index f80cef7848263df59f464a54bc42f2133e6c24bf..b2ce45fc76f1afc9dfd1f78b6e006796ef170e3a 100644 (file)
@@ -49,7 +49,7 @@
         
         <div class="tags">
         {% for tag in question.tagname_list %}
-        <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">{{ tag }}</a>
+        <a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">{{ tag }}</a>
         {% endfor %}
         </div>
     </div>
index f5b7e6cb258ae43a1f03d7604c4e41526c825796..6ec6fc870d4ffca33bd87cd40b90e7e0af9757db 100644 (file)
@@ -5,8 +5,7 @@
        <div class="body">\r
          <div class="tags" id="recent-tags">\r
         {% for tag in tags %}\r
-            <a rel="tag"\r
-                               title="{% blocktrans with tag.name as tagname %}see questions tagged '{{tagname}}'{% endblocktrans %}" href="{% url tag_questions tag.name|urlencode %}">{{ tag.name }}</a>\r
+            <a rel="tag" class="tag-link-{{ tag.name }}" title="{% blocktrans with tag.name as tagname %}see questions tagged '{{tagname}}'{% endblocktrans %}" href="{% url tag_questions tag.name|urlencode %}">{{ tag.name }}</a>\r
         {% endfor %}\r
         </div>\r
         <div class="more"><a href="{% url tags %}">{% trans "popular tags" %} </a> </div>\r
index 5e3e2ad8b224c63308caad1c14fe046a2fcb3872..91967b229e9595a0abb926ca7827a0ab5ca6a32c 100644 (file)
@@ -5,7 +5,7 @@
     <div class="tags interesting marked-tags">
     {% for tag_name in interesting_tag_names %}
         {% spaceless %}
-        <span class="deletable-tag" id="interesting-tag-{{tag_name}}">
+        <span class="deletable-tag tag-link-{{ tag }}" id="interesting-tag-{{tag_name}}">
             <a rel="tag" 
                 title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
                 href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
@@ -22,7 +22,7 @@
     <div class="tags ignored marked-tags">
     {% for tag_name in ignored_tag_names %}
         {% spaceless %}
-        <span class="deletable-tag" id="ignored-tag-{{tag_name}}">
+        <span class="deletable-tag tag-link-{{ tag }}" id="ignored-tag-{{tag_name}}">
             <a rel="tag" 
                 title="{% blocktrans with tag as tagname %}see questions tagged '{{ tag_name }}'{% endblocktrans %}"
                 href="{% url tag_questions tag_name|urlencode %}">{{tag_name}}</a>
index ec5d88886623b09b664053889c95e19fdea795c1..56062c554e6c3d85580d5673c23d13eb5d3afae9 100644 (file)
@@ -42,7 +42,7 @@
 <ul class="tagsList tags">
 {% for tag in tags.paginator.page %}
    <li>
-    <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">
+    <a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %}'{{ tag }}'{% trans "using tags" %}" rel="tag">
         {{ tag }}
     </a>&nbsp;
     <span class="tag-number">&#215; {{ tag.used_count|intcomma }}</span>
index b2659ca661f8c2b576d28f279ade4f241a411ad3..8fb67f921b68a7d7819c922a960790bee65350fe 100644 (file)
                     <td valign="top" style="padding-right: 20px;">
                         {% for tag in user_tags%}
                         <a rel="tag" 
-                                                       title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}" 
+                            class="tag-link-{{ tag.name }}"
+                                                       title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
                                                        href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
                         <span class="tag-number">&#215; {{ tag.user_tag_usage_count|intcomma }}</span><br/>
                             {% if forloop.counter|divisibleby:"10" %}