Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperlink Smack's Maven coordinates #238

Merged
merged 2 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/main/webapp/includes/download-box-smack.jspf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
<% String path = request.getContextPath();
String buildsPath = application.getInitParameter("builds-path");

String mavenCoordinates = "unknown";
String mavenCoordinates = "<a href='https://search.maven.org/search?q=g:org.igniterealtime.smack'>org.igniterealtime.smack</a>"
+ ":<a href='https://search.maven.org/artifact/org.igniterealtime.smack/smack-java8-full'>smack-java8-full</a>:";

String version = Versions.getVersion("smack");
if (version != null) {
mavenCoordinates = "org.igniterealtime.smack:smack-java8-full:" + version;
mavenCoordinates += version;
} else {
mavenCoordinates += "[version]";
}
%>

Expand All @@ -28,7 +32,7 @@
</span>

<h2>Smack <%= version %></h2>
<p>Easy to use Java XMPP client library.</p>
<p>Modular, portable and easy to use XMPP client library for Android and Java.</p>

<span class="ignite_download_choose">Maven Coordinates: <%= mavenCoordinates %></span>

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/projects/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<div class="ignite_project_content">
<a href="smack/" class="ignite_project_smack">
<h1>Smack <span><%= Versions.getVersion("smack") %></span></h1></a>
<p>Easy to use Java XMPP client library.</p>
<p>Modular, portable and easy to use XMPP client library for Android and Java.</p>
<p><a href="smack/" class="ignite_link_arrow"><strong>Learn More</strong></a></p>
</div>
</div>
Expand Down
Loading