mirror of https://github.com/apache/archiva.git
[MRM-1615] Artifact detail view
pom snippet. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1302893 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54b65bcb4d
commit
81c26add27
|
@ -259,6 +259,7 @@ artifact.detail.tab.header.info=Info
|
|||
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
|
||||
|
|
|
@ -273,7 +273,7 @@ $(function() {
|
|||
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",
|
||||
|
@ -314,7 +314,7 @@ $(function() {
|
|||
}
|
||||
var selectedRepo=getSelectedBrowsingRepository();
|
||||
if (selectedRepo){
|
||||
url+="?repositoryId="+selectedRepo;
|
||||
url+="?repositoryId="+encodeURIComponent(selectedRepo);
|
||||
}
|
||||
$( "#main-content #browse-autocomplete" ).autocomplete({
|
||||
minLength: 2,
|
||||
|
@ -362,7 +362,7 @@ $(function() {
|
|||
var browseUrl="restServices/archivaServices/browseService/browseGroupId/"+encodeURIComponent(query);
|
||||
var selectedRepo=getSelectedBrowsingRepository();
|
||||
if (selectedRepo){
|
||||
browseUrl+="?repositoryId="+selectedRepo;
|
||||
browseUrl+="?repositoryId="+encodeURIComponent(selectedRepo);
|
||||
}
|
||||
$.get(browseUrl,
|
||||
function(data) {
|
||||
|
|
|
@ -430,7 +430,7 @@
|
|||
<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>
|
||||
|
@ -456,13 +456,16 @@
|
|||
<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>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue