You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
4.2 KiB
122 lines
4.2 KiB
<script type="text/html" id="project-documentation-widget-template"> |
|
<div class="right-pane-widget--container no-top-border project-documentation--container"> |
|
<div class="item-dropdown-widget"> |
|
<div class="item-dropdown--title">{@= name @}</div> |
|
<div class="item--dropdown"> |
|
<div class="item--body"> |
|
<div class="item--body-title"> |
|
<div class="item--left-column">Release</div> |
|
<div class="item--right-column">Documentation</div> |
|
</div> |
|
{@ _.each(releases, function(release) { @} |
|
<div class="item--body--version"> |
|
<div class="item--left-column"> |
|
<p>{@= release.version @}</p> |
|
<div class="spring-icon {@= release.statusIconClass() @}"></div> |
|
</div> |
|
<div class="item--right-column"> |
|
<a href='{@= release.refDocUrl @}' class="docs-link reference-link">Reference</a> |
|
<a href='{@= release.apiDocUrl @}' class="docs-link api-link">API</a> |
|
</div> |
|
</div> |
|
{@ }); @} |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
</script> |
|
|
|
<script type="text/html" id="project-quickstart-controls-template"> |
|
<div class="js-quickstart-selector"> |
|
<select class='selector selectpicker'> |
|
{@ _.each(releases, function(release, index) { @} |
|
<option value="{@= index @}" data-content="<span>{@= release.versionDisplayName @}</span><div class='spring-icon {@= release.statusIconClass() @}'/>"> ()</option> |
|
{@ }); @} |
|
</select> |
|
</div> |
|
|
|
<div class="item-slider-widget js-item-slider--wrapper"> |
|
<div class="item-slider--container"> |
|
<div class="item--slider js-item--slider"></div> |
|
<div class="item js-active js-item" data-snippet-type='maven'> |
|
Maven |
|
</div> |
|
<div class="item js-item" data-snippet-type='gradle'> |
|
Gradle |
|
</div> |
|
<div class="item js-item" data-snippet-type='zip'> |
|
Zip |
|
</div> |
|
</div> |
|
</div> |
|
|
|
</script> |
|
|
|
|
|
{% capture maven_dependency %} |
|
{% include maven_dependency.xml %} |
|
{% endcapture %} |
|
|
|
{%if maven_dependency contains 'not found in _includes directory' %} |
|
{% capture maven_dependency %} |
|
<dependency> |
|
<groupId>{@= groupId @}</groupId> |
|
<artifactId>{@= artifactId @}</artifactId> |
|
<version>{@= version @}</version> |
|
</dependency> |
|
{% endcapture %} |
|
{% endif %} |
|
|
|
<script type="text/html" id="project-quickstart-maven-widget-dependency-template">{{ maven_dependency | escape }}</script> |
|
|
|
{% capture maven_repository %} |
|
{% include maven_repository.xml %} |
|
{% endcapture %} |
|
|
|
{%if maven_repository contains 'not found in _includes directory' %} |
|
{% capture maven_repository %} |
|
<repository> |
|
<id>{@= id @}</id> |
|
<name>{@= name @}</name> |
|
<url>{@= url @}</url> |
|
<snapshots> |
|
<enabled>{@= snapshotsEnabled @}</enabled> |
|
</snapshots> |
|
</repository> |
|
{% endcapture %} |
|
{% endif %} |
|
|
|
<script type="text/html" id="project-quickstart-maven-widget-repository-template">{{ maven_repository | escape }}</script> |
|
|
|
{% capture gradle_dependency %} |
|
{% include gradle_dependency.gradle %} |
|
{% endcapture %} |
|
|
|
{%if gradle_dependency contains 'not found in _includes directory' %} |
|
{% capture gradle_dependency %} |
|
dependencies { |
|
compile '{@= groupId @}:{@= artifactId @}:{@= version @}' |
|
} |
|
{% endcapture %} |
|
{% endif %} |
|
|
|
<script type="text/html" id="project-quickstart-gradle-widget-dependency-template">{{ gradle_dependency | escape }}</script> |
|
|
|
{% capture gradle_repository %} |
|
{% include gradle_repository.gradle %} |
|
{% endcapture %} |
|
|
|
{%if gradle_repository contains 'not found in _includes directory' %} |
|
{% capture gradle_repository %} |
|
repositories { |
|
maven { |
|
url '{@= url @}' |
|
} |
|
} |
|
{% endcapture %} |
|
{% endif %} |
|
|
|
<script type="text/html" id="project-quickstart-gradle-widget-repository-template">{{ gradle_repository | escape }}</script> |
|
<script type="text/html" id="project-quickstart-zip-widget-dependency-template"> |
|
This is a zip url |
|
</script> |