|
@@ -50,42 +50,55 @@
|
|
|
{{/errorMessage}}
|
|
{{/errorMessage}}
|
|
|
|
|
|
|
|
<div class="details-div">
|
|
<div class="details-div">
|
|
|
- <section id="details-repo" class="inline-block">
|
|
|
|
|
- {{#repo}}
|
|
|
|
|
- <strong>{{_.collection}} </strong><span>{{title}}</span>
|
|
|
|
|
- {{/repo}}
|
|
|
|
|
- </section>
|
|
|
|
|
- <section id="add-repo" class="inline-block">
|
|
|
|
|
- <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 class="inline-block left">
|
|
|
|
|
+ <section id="shortcut-repo"{{#repo}} class="hidden"{{/repo}}>
|
|
|
|
|
+ <div class="bold">{{_.exampleCollections}}</div><ul>{{#menuRepo}}
|
|
|
|
|
+ <li><a href="/{{slug}}">{{title}}</a></li>{{/menuRepo}}
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </section>
|
|
|
|
|
+ <section id="details-repo" class="inline-block">
|
|
|
|
|
+ {{#repo}}
|
|
|
|
|
+ <span class="bold">{{_.collection}} </span><span>{{title}}</span>
|
|
|
|
|
+ {{/repo}}
|
|
|
|
|
+ </section>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div id="add-repo" class="btn-form inline-block">
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div>
|
|
|
|
|
- <section id="details-example" class="inline-block">
|
|
|
|
|
- {{#example}}
|
|
|
|
|
- <strong>{{_.example}} </strong><span>{{title}}</span>
|
|
|
|
|
- {{/example}}
|
|
|
|
|
- </section>
|
|
|
|
|
- <section id="add-example" class="inline-block">
|
|
|
|
|
- <button class="add-btn inline-block h-collapsed light-gray fast{{#repo}} in{{/repo}}"><span class="icon-plus"> {{_.addExample}}</span></button>
|
|
|
|
|
|
|
+ <div class="details-div">
|
|
|
|
|
+ <div class="inline-block left">
|
|
|
|
|
+ <section id="shortcut-example"{{#example}} class="hidden"{{/example}}>
|
|
|
|
|
+ <div class="bold">{{_.examplesInCollection}}</div>{{#menuExample}}
|
|
|
|
|
+ <span class="cat-title">{{category.title}}</span>
|
|
|
|
|
+ <ul data-id="{{category.slug}}">{{#examples}}
|
|
|
|
|
+ <li><a href="/{{{slug}}}">{{title}}</a></li>{{/examples}}</ul>
|
|
|
|
|
+ {{/menuExample}}
|
|
|
|
|
+ </section>
|
|
|
|
|
+ <section id="details-example" class="inline-block">
|
|
|
|
|
+ {{#example}}
|
|
|
|
|
+ <strong>{{_.example}} </strong><span>{{title}}</span>
|
|
|
|
|
+ {{/example}}
|
|
|
|
|
+ </section>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div id="add-example" class="btn-form inline-block">
|
|
|
|
|
+ <button class="add-btn inline-block h-collapsed light-gray fast{{#repo}} in{{/repo}}"><span class="icon-plus"></span> {{_.addExample}}</button>
|
|
|
<form class="inline-block h-collapsed">
|
|
<form class="inline-block h-collapsed">
|
|
|
<input type="text" name="title" class="input-sm" value="" placeholder="{{_.exampleName}}" required />
|
|
<input type="text" name="title" class="input-sm" value="" placeholder="{{_.exampleName}}" required />
|
|
|
<button type="button" id="add-example-cancel" class="icon-cross rounded"></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>
|
|
--><button type="submit" id="add-example-save" class="icon-checkmark rounded"></button>
|
|
|
</form>
|
|
</form>
|
|
|
- </section>
|
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<!-- <button id="save-changes" class="icon-cloud-upload green"></button> -->
|
|
<!-- <button id="save-changes" class="icon-cloud-upload green"></button> -->
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -155,11 +168,18 @@
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<script data-tmpl-for="shortcut-repo" type="text/x-mustache-tmpl">
|
|
<script data-tmpl-for="shortcut-repo" type="text/x-mustache-tmpl">
|
|
|
- <h3>{{_.exampleCollections}}</h3><ul>{{#repos}}
|
|
|
|
|
|
|
+ <div class="bold">{{_.exampleCollections}}</div><ul>{{#repos}}
|
|
|
<li><a href="/{{slug}}">{{title}}</a></li>{{/repos}}
|
|
<li><a href="/{{slug}}">{{title}}</a></li>{{/repos}}
|
|
|
</ul>
|
|
</ul>
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
|
|
+<script data-tmpl-for="shortcut-example" type="text/x-mustache-tmpl">
|
|
|
|
|
+ <div class="bold">{{_.examplesInCollection}}</div>{{#menuExample}}
|
|
|
|
|
+ <span class="cat-title">{{category.title}}</span>
|
|
|
|
|
+ <ul data-id="{{category.slug}}">{{#examples}}
|
|
|
|
|
+ <li><a href="/{{{slug}}}">{{title}}</a></li>{{/examples}}</ul>
|
|
|
|
|
+ {{/menuExample}}
|
|
|
|
|
+</script>
|
|
|
<%={{ }}=%>
|
|
<%={{ }}=%>
|
|
|
|
|
|
|
|
<!-- Vendor scripts -->
|
|
<!-- Vendor scripts -->
|