[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:
Olivier Lamy 2012-03-20 13:48:14 +00:00
parent 54b65bcb4d
commit 81c26add27
3 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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">&lt;dependency&gt;<br/>&nbsp;&nbsp;&lt;groupId&gt;${groupId}&lt;/groupId&gt;<br/>&nbsp;&nbsp;&lt;artifactId&gt;${artifactId}&lt;/artifactId&gt;<br/>&nbsp;&nbsp;&lt;version&gt;${version}&lt;/version&gt;<br/>&lt;/dependency&gt;</pre>
</div>
</div>