Changes for page Tags

Last modified by Thomas Mortagne on 2020/01/28 17:18

From version < 9.1 >
edited by Marius Dumitru Florea
on 2013/07/15 10:04
To version < 12.1 >
edited by Vincent Massol
on 2014/10/21 14:37
< >
Change comment: Install extension [org.xwiki.platform:xwiki-platform-tag-ui-6.2.2]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.mflorea
1 +xwiki:XWiki.VincentMassol
Content
... ... @@ -45,13 +45,17 @@
45 45   (% class="xapp" %)
46 46   === $services.localization.render('xe.tag.alldocs', ["//${tag}//"]) ===
47 47  
48 - {{html}}#displayDocumentList($list true $blacklistedSpaces){{/html}}
48 + #if ($list.size()> 0)
49 + {{html}}#displayDocumentList($list true $blacklistedSpaces){{/html}}
50 + #else
51 + (% class='noitems' %)$services.localization.render('xe.tag.notags')
52 + #end
49 49   )))
50 50   (((
51 51   (% class="xapp" %)
52 52   === $services.localization.render('xe.tag.activity', ["//${tag}//"]) ===
53 53  
54 - {{activity tags="$tag" /}}
58 + {{activity tags="$tag" rss='true'/}}
55 55   )))
56 56   {{/container}}
57 57  #elseif ($do == 'prepareRename')
... ... @@ -65,7 +65,7 @@
65 65   <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
66 66   <input name="do" type="hidden" value="renameTag" />
67 67   <input name="tag" type="hidden" value="$htmlEscapedTag" />
68 - $services.localization.render('xe.tag.rename.renameto', [$htmlEscapedTag]) <input type="text" name="renameTo" /> <span class="buttonwrapper"><input type="submit" value="$services.localization.render('xe.tag.rename')" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">Cancel</a></span>
72 + $services.localization.render('xe.tag.rename.renameto', [$htmlEscapedTag]) <input type="text" name="renameTo" /> <span class="buttonwrapper"><input type="submit" value="$services.localization.render('xe.tag.rename')" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">$services.localization.render('cancel')</a></span>
69 69   </div>
70 70   </form>
71 71  {{/html}}
... ... @@ -95,7 +95,7 @@
95 95   <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
96 96   <input name="do" type="hidden" value="deleteTag" />
97 97   <input name="tag" type="hidden" value="$htmlEscapedTag" />
98 - <span class="buttonwrapper"><input type="submit" value="$services.localization.render('xe.tag.delete', [$htmlEscapedTag])" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">Cancel</a></span>
102 + <span class="buttonwrapper"><input type="submit" value="$services.localization.render('xe.tag.delete', [$htmlEscapedTag])" class="button"/></span><span class="buttonwrapper"><a href="$doc.getURL('view', "do=viewTag&tag=${urlEscapedTag}")" class="secondary button">$services.localization.render('cancel')</a></span>
99 99   </div>
100 100   </form>
101 101  {{/html}}
XWiki.StyleSheetExtension[0]
Code
... ... @@ -1,5 +1,7 @@
1 +#template('colorThemeInit.vm')
2 +
1 1  h1.xapp {
2 - border-bottom: 0px none;
4 + border-bottom: 0 none;
3 3   margin: 0;
4 4  }
5 5  
... ... @@ -12,8 +12,8 @@
12 12  }
13 13  
14 14  h1.xapp .highlight {
15 - background: url("$xwiki.getSkinFile('icons/silk/tag_blue.png')") no-repeat 5px 50% #FFC;
16 - border: solid 1px #DDD;
17 + background: url("$xwiki.getSkinFile('icons/silk/tag_blue.png')") no-repeat 5px 50% $theme.backgroundSecondaryColor;
18 + border: solid 1px $theme.borderColor;
17 17   border-radius: 10px;
18 18   display: inline-block;
19 19   font-weight: bold;
... ... @@ -22,9 +22,10 @@
22 22  }
23 23  
24 24  h1.xapp .button {
25 - background: no-repeat 3px 50% #FFD;
26 - border: solid 1px #DDD;
27 + background: no-repeat 3px 50% $theme.pageContentBackgroundColor;
28 + border: solid 1px $theme.borderColor;
27 27   border-radius: 7px;
30 + color: $theme.linkColor;
28 28   display : inline-block;
29 29   font-size: 50%;
30 30   font-weight: normal;
... ... @@ -41,6 +41,6 @@
41 41  }
42 42  
43 43  h1.xapp .button:hover {
44 - background-color: #EEF;
47 + background-color: $theme.highlightColor;
45 45   text-decoration: none;
46 46  }

Get Connected