artifact.detail.tab.header.dependency.tree=Dependency Tree
artifact.detail.tab.header.used.by=Used By
browse.artifact.version=Version
+browse.artifact.pom.snippet=POM Snippet
#login
login.username.placehoder=Username
type: "GET",
dataType: 'json',
success: function(data) {
- mainContent.find("#selected_repository" ).html($("#selected_repository_tmpl" ).tmpl({repositories:data}));
+ mainContent.find("#selected_repository" ).html($("#selected_repository_tmpl" ).tmpl({repositories:data,selected:""}));
var url="restServices/archivaServices/browseService/rootGroups"
$.ajax(url, {
type: "GET",
}
var selectedRepo=getSelectedBrowsingRepository();
if (selectedRepo){
- url+="?repositoryId="+selectedRepo;
+ url+="?repositoryId="+encodeURIComponent(selectedRepo);
}
$( "#main-content #browse-autocomplete" ).autocomplete({
minLength: 2,
var browseUrl="restServices/archivaServices/browseService/browseGroupId/"+encodeURIComponent(query);
var selectedRepo=getSelectedBrowsingRepository();
if (selectedRepo){
- browseUrl+="?repositoryId="+selectedRepo;
+ browseUrl+="?repositoryId="+encodeURIComponent(selectedRepo);
}
$.get(browseUrl,
function(data) {
<div class="tab-content">
<div id="artifact-details-info-content" class="tab-pane active">
<blockquote>${projectVersionMetadata.description}</blockquote>
- <div class="row span4">
+ <div class="row span6">
<table class="table">
<tbody>
<tr>
<a href="#" data-bind="click: displayParent">
${projectVersionMetadata.mavenFacet.parent.groupId}:${projectVersionMetadata.mavenFacet.parent.artifactId}:${projectVersionMetadata.mavenFacet.parent.version}
</a>
-
</td>
</tr>
{{/if}}
</tbody>
</table>
</div>
+ <div class="row span5">
+ <h4>${$.i18n.prop('browse.artifact.pom.snippet')}</h4>
+ <pre class="prettyprint"><dependency><br/> <groupId>${groupId}</groupId><br/> <artifactId>${artifactId}</artifactId><br/> <version>${version}</version><br/></dependency></pre>
+ </div>
</div>