| ... |
... |
@@ -1,13 +1,10 @@ |
| 1 |
1 |
{{include reference="Help.Code.VelocityMacros" /}} |
| 2 |
2 |
|
| 3 |
3 |
{{velocity output="false"}} |
| 4 |
|
-#set ($featuresPrefix = 'https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features') |
| 5 |
|
-#set ($exoPrefix = 'https://extensions.xwiki.org/xwiki/bin/view/Extension') |
| 6 |
6 |
#set ($actionCards = [{ |
| 7 |
7 |
'title': $services.localization.render('help.templates.useTemplates.title'), |
| 8 |
8 |
'description': $services.localization.render('help.templates.useTemplates.description'), |
| 9 |
|
- 'tip': $services.localization.render('help.templates.useTemplates.tip', |
| 10 |
|
- ["<a href='$featuresPrefix/DocumentLifecycle#HCreate' class='wikiexternallink'>",'</a>']), |
|
7 |
+ 'tip': $services.localization.render('help.templates.useTemplates.tip', ["<a href='http://platform.xwiki.org/xwiki/bin/view/Features/DocumentLifecycle#HCreate' class='wikiexternallink'>",'</a>']), |
| 11 |
11 |
'thumbnail': 'Template', |
| 12 |
12 |
'actions': [{ |
| 13 |
13 |
'label': $services.localization.render('help.try.label'), |
| ... |
... |
@@ -19,12 +19,11 @@ |
| 19 |
19 |
}, { |
| 20 |
20 |
'title': $services.localization.render('help.templates.create.title'), |
| 21 |
21 |
'description': $services.localization.render('help.templates.create.description'), |
| 22 |
|
- 'tip': $services.localization.render('help.templates.create.tip', |
| 23 |
|
- ["<a href='$exoPrefix/Administration+Application#HCreatetheTemplateProvider' class='wikiexternallink'>",'</a>']), |
|
19 |
+ 'tip': $services.localization.render('help.templates.create.tip', ["<a href='http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HCreatetheTemplateProvider' class='wikiexternallink'>",'</a>']), |
| 24 |
24 |
'thumbnail': 'Administration', |
| 25 |
25 |
'actions': [{ |
| 26 |
26 |
'label': $services.localization.render('help.more.label'), |
| 27 |
|
- 'url': "$exoPrefix/Administration+Application#HCreatetheTemplateProvider" |
|
23 |
+ 'url': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Administration+Application#HCreatetheTemplateProvider' |
| 28 |
28 |
}] |
| 29 |
29 |
}]) |
| 30 |
30 |
|
| ... |
... |
@@ -41,7 +41,7 @@ |
| 41 |
41 |
#set ($outputCard = { |
| 42 |
42 |
'title': $inputCard.title, |
| 43 |
43 |
'description': $inputCard.description, |
| 44 |
|
- 'documentation': "$exoPrefix/Templates+Application/", |
|
40 |
+ 'documentation': 'http://extensions.xwiki.org/xwiki/bin/view/Extension/Templates+Application/', |
| 45 |
45 |
'thumbnail': $inputCard.thumbnail |
| 46 |
46 |
}) |
| 47 |
47 |
#else |
| ... |
... |
@@ -79,24 +79,38 @@ |
| 79 |
79 |
|
| 80 |
80 |
{{velocity}} |
| 81 |
81 |
{{html clean="false"}} |
| 82 |
|
-<ul class="card-list two-cols"> |
|
78 |
+<div class="row"> |
| 83 |
83 |
#foreach ($card in $actionCards) |
| 84 |
|
- <li class="card"> |
|
80 |
+ ## See http://getbootstrap.com/css/#grid-responsive-resets . |
|
81 |
+ #if ($foreach.index > 0 && $foreach.index % 2 == 0) |
|
82 |
+ <div class="clearfix visible-sm-block visible-md-block visible-lg-block"></div> |
|
83 |
+ #end |
|
84 |
+ <div class="col-xs-12 col-sm-6"> |
| 85 |
85 |
#helpActionCard($card) |
| 86 |
|
- </li> |
|
86 |
+ </div> |
| 87 |
87 |
#end |
| 88 |
|
-</ul> |
|
88 |
+</div> |
| 89 |
89 |
<h3 id="HExamples">$services.localization.render('help.templates.examples.title')</h3> |
| 90 |
90 |
<p>$services.localization.render('help.templates.examples.description')</p> |
| 91 |
|
-<ul class="card-list"> |
|
91 |
+<div class="row"> |
| 92 |
92 |
#foreach ($card in $exampleCards) |
| 93 |
|
- <li class="card"> |
|
93 |
+ ## See http://getbootstrap.com/css/#grid-responsive-resets . |
|
94 |
+ #if ($foreach.index > 0 && $foreach.index % 2 == 0) |
|
95 |
+ <div class="clearfix visible-sm-block "></div> |
|
96 |
+ #end |
|
97 |
+ #if ($foreach.index > 0 && $foreach.index % 3 == 0) |
|
98 |
+ <div class="clearfix visible-md-block"></div> |
|
99 |
+ #end |
|
100 |
+ #if ($foreach.index > 0 && $foreach.index % 4 == 0) |
|
101 |
+ <div class="clearfix visible-lg-block"></div> |
|
102 |
+ #end |
|
103 |
+ <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> |
| 94 |
94 |
#set ($outputCard = {}) |
| 95 |
95 |
#getTemplateExample($card $outputCard) |
| 96 |
96 |
#helpExampleCard($outputCard) |
| 97 |
|
- </li> |
|
107 |
+ </div> |
| 98 |
98 |
#end |
| 99 |
|
-</ul> |
| 100 |
|
-<p><a href="$exoPrefix/Templates+Application/" class="wikiexternallink">$services.localization.render('help.templates.more')</a></p> |
|
109 |
+</div> |
|
110 |
+<p><a href="http://extensions.xwiki.org/xwiki/bin/view/Extension/Templates+Application/" class="wikiexternallink">$services.localization.render('help.templates.more')</a></p> |
| 101 |
101 |
{{/html}} |
| 102 |
102 |
{{/velocity}} |