|
|
@@ -27,7 +27,7 @@
|
|
|
<div id="nav-menus">
|
|
|
<div id="menu-repo" class="pure-g">
|
|
|
<div class="pure-u-1">
|
|
|
- <span class="cat-title">Collections d'exemples</span>
|
|
|
+ <span class="cat-title">{{_.exampleCollections}}</span>
|
|
|
<ul class="nav-menu">{{#menuRepo}}
|
|
|
<li><a href="/{{slug}}">{{title}}</a></li>{{/menuRepo}}
|
|
|
</ul>
|
|
|
@@ -56,13 +56,18 @@
|
|
|
{{/repo}}
|
|
|
</section>
|
|
|
<section id="add-repo" class="inline-block">
|
|
|
- <button class="add-btn inline-block h-collapsed fast in"><span class="icon-plus rounded"></span></button>
|
|
|
+ <button class="add-btn inline-block h-collapsed light-gray fast in"><span class="icon-plus"></span> {{_.addCollection}}</button>
|
|
|
<form class="inline-block h-collapsed">
|
|
|
<input type="text" name="title" class="input-sm" value="" placeholder="{{_.collectionName}}" required />
|
|
|
<button type="button" class="icon-cross rounded"></button><!--
|
|
|
--><button type="submit" class="icon-checkmark rounded"></button>
|
|
|
</form>
|
|
|
</section>
|
|
|
+ <section id="shortcut-repo"{{#repo}} class="hidden"{{/repo}}>
|
|
|
+ <h3>{{_.exampleCollections}}</h3><ul>{{#menuRepo}}
|
|
|
+ <li><a href="/{{slug}}">{{title}}</a></li>{{/menuRepo}}
|
|
|
+ </ul>
|
|
|
+ </section>
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
@@ -72,11 +77,11 @@
|
|
|
{{/example}}
|
|
|
</section>
|
|
|
<section id="add-example" class="inline-block">
|
|
|
- <button class="add-btn inline-block h-collapsed fast{{#repo}} in{{/repo}}"><span class="icon-plus rounded"></span></button>
|
|
|
+ <button class="add-btn inline-block h-collapsed light-gray fast{{#repo}} in{{/repo}}"><span class="icon-plus"> {{_.addExample}}</span></button>
|
|
|
<form class="inline-block h-collapsed">
|
|
|
<input type="text" name="title" class="input-sm" value="" placeholder="{{_.exampleName}}" required />
|
|
|
- <button type="button" id="add-example-cancel" class="icon-cross rounded red"></button><!--
|
|
|
- --><button type="submit" id="add-example-save" class="icon-checkmark rounded green"></button>
|
|
|
+ <button type="button" id="add-example-cancel" class="icon-cross rounded"></button><!--
|
|
|
+ --><button type="submit" id="add-example-save" class="icon-checkmark rounded"></button>
|
|
|
</form>
|
|
|
</section>
|
|
|
</div>
|
|
|
@@ -148,6 +153,13 @@
|
|
|
<strong>{{_.collection}} </strong><span>{{title}}</span>
|
|
|
{{/repo}}
|
|
|
</script>
|
|
|
+
|
|
|
+<script data-tmpl-for="shortcut-repo" type="text/x-mustache-tmpl">
|
|
|
+ <h3>{{_.exampleCollections}}</h3><ul>{{#repos}}
|
|
|
+ <li><a href="/{{slug}}">{{title}}</a></li>{{/repos}}
|
|
|
+ </ul>
|
|
|
+</script>
|
|
|
+
|
|
|
<%={{ }}=%>
|
|
|
|
|
|
<!-- Vendor scripts -->
|
|
|
@@ -167,6 +179,8 @@
|
|
|
window._ws = {
|
|
|
files: {{{filesJSON}}},
|
|
|
repo: {{{repoJSON}}},
|
|
|
+ repos: {{{reposJSON}}},
|
|
|
+ _: {{{_JSON}}},
|
|
|
example: {{{exampleJSON}}}
|
|
|
};
|
|
|
</script>
|