MDL-50851 tag: fix whitespace errors
authorDan Poltawski <dan@moodle.com>
Tue, 12 Jan 2016 16:34:58 +0000 (16:34 +0000)
committerDan Poltawski <dan@moodle.com>
Tue, 12 Jan 2016 16:34:58 +0000 (16:34 +0000)
tag/templates/tagcloud.mustache
tag/templates/tagfeed.mustache
tag/templates/taglist.mustache

index def25d7..276f5cd 100644 (file)
 
     Example context (json):
     {
-       "tags": [
-               {"id":1,"name":"Cats","viewurl":"http://moodle.org/tag/index.php?tag=Cats","tagtype":"official","count":12,"size":20,"flag":0},
-               {"id":1,"name":"Dogs","viewurl":"http://moodle.org/tag/index.php?tag=Dogs","tagtype":"default","size":2,"flag":1},
-               {"id":1,"name":"Mice","viewurl":"http://moodle.org/tag/index.php?tag=Mice","tagtype":"default","count":4,"size":8,"flag":0}
-       ],
+    "tags": [
+        {"id":1,"name":"Cats","viewurl":"http://moodle.org/tag/index.php?tag=Cats","tagtype":"official","count":12,"size":20,"flag":0},
+        {"id":1,"name":"Dogs","viewurl":"http://moodle.org/tag/index.php?tag=Dogs","tagtype":"default","size":2,"flag":1},
+        {"id":1,"name":"Mice","viewurl":"http://moodle.org/tag/index.php?tag=Mice","tagtype":"default","count":4,"size":8,"flag":0}
+    ],
         "tagscount": 3,
         "totalcount": 5,
         "overflow": 1
index 6f67e7a..bea8dba 100644 (file)
 
     Example context (json):
     {
-       "items": [
+    "items": [
             {"img":"<img class=\"smallicon\" src=\"https://moodle.org/pix/i/siteevent.png\">","heading":"<a href=\"#\">First post</a>","details":"Posted by user 1"},
             {"img":"<img class=\"smallicon\" src=\"https://moodle.org/pix/i/siteevent.png\">","heading":"<a href=\"#\">Second post without details</a>"},
             {"heading":"<a href=\"#\">Third post without image</a>","details":"Posted by <a href=\"#\">user 3</a>"}
-       ]
+    ]
     }
 
 }}
index 77054b2..7353296 100644 (file)
 
     Example context (json):
     {
-       "tags": [
-               {"id":1,"name":"Cats","viewurl":"http://moodle.org/tag/index.php?tag=Cats","tagtype":"official","flag":0},
-               {"id":1,"name":"Dogs","viewurl":"http://moodle.org/tag/index.php?tag=Dogs","tagtype":"default","flag":1},
-               {"id":1,"name":"Mice","viewurl":"http://moodle.org/tag/index.php?tag=Mice","tagtype":"default","flag":0}
-       ],
+    "tags": [
+        {"id":1,"name":"Cats","viewurl":"http://moodle.org/tag/index.php?tag=Cats","tagtype":"official","flag":0},
+        {"id":1,"name":"Dogs","viewurl":"http://moodle.org/tag/index.php?tag=Dogs","tagtype":"default","flag":1},
+        {"id":1,"name":"Mice","viewurl":"http://moodle.org/tag/index.php?tag=Mice","tagtype":"default","flag":0}
+    ],
         "label": "Tags",
         "tagscount": 3,
         "overflow": 1,
@@ -82,4 +82,4 @@ require(['jquery'], function($) {
         $(this).closest('.tag_list').addClass('hideoverlimit');
     });
 });
-{{/js}}
\ No newline at end of file
+{{/js}}