Spring Framework
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.
 
 

132 lines
4.3 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.versionDisplayName @}</p>
{@ if(release.current) { @}
<div class="spring-icon spring-icon-current-version"></div>
{@ } @}
<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-download-widget-controls-template">
<div class="js-download-widget-selector">
<select class='selector selectpicker'>
{@ _.each(releases, function(release, index) { @}
<option value="{@= index @}"
data-content="
<span>{@= release.versionDisplayName @}</span>
{@ if(release.current) { @}
<div class='spring-icon spring-icon-current-version'></div>
{@ } @}
<div class='spring-icon {@= release.statusIconClass() @}'/>"
data-current="{@= release.current @}">
()
</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>
</div>
</script>
{% if site.custom_pom_template %}
{% capture maven_pom_template %}
{% include pom.xml %}
{% endcapture %}
{% else %}
{% capture maven_pom_template %}
<dependencies>
<dependency>
<groupId>{@= groupId @}</groupId>
<artifactId>{@= artifactId @}</artifactId>
<version>{@= version @}</version>
</dependency>
</dependencies>
{% endcapture %}
{% endif %}
<script type="text/html" id="project-download-maven-widget-template">
{% highlight xml %}
{{ maven_pom_template }}
{% endhighlight %}
</script>
<script type="text/html" id="project-repository-maven-widget-template">
{% highlight xml %}
<repositories>
<repository>
<id>{@= repository.id @}</id>
<name>{@= repository.name @}</name>
<url>{@= repository.url @}</url>
<snapshots>
<enabled>{@= repository.snapshotsEnabled @}</enabled>
</snapshots>
</repository>
</repositories>
{% endhighlight %}
</script>
{% if site.custom_gradle_template %}
{% capture gradle_template %}
{% include build.gradle %}
{% endcapture %}
{% else %}
{% capture gradle_template %}
dependencies {
compile '{@= groupId @}:{@= artifactId @}:{@= version @}'
}
{% endcapture %}
{% endif %}
<script type="text/html" id="project-download-gradle-widget-template">
{% highlight groovy %}
{{ gradle_template }}
{% endhighlight %}
</script>
<script type="text/html" id="project-repository-gradle-widget-template">
{% highlight groovy %}
repositories {
maven {
url '{@= repository.url @}'
}
}
{% endhighlight %}
</script>
<script type="text/html" id="project-download-zip-widget-template">
This is a zip url
</script>