mirror of https://github.com/apache/archiva.git
[MRM-1615] Artifact detail view
other details and scm. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1302894 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
81c26add27
commit
a29e07f77a
|
@ -260,6 +260,15 @@ artifact.detail.tab.header.dependency.tree=Dependency Tree
|
||||||
artifact.detail.tab.header.used.by=Used By
|
artifact.detail.tab.header.used.by=Used By
|
||||||
browse.artifact.version=Version
|
browse.artifact.version=Version
|
||||||
browse.artifact.pom.snippet=POM Snippet
|
browse.artifact.pom.snippet=POM Snippet
|
||||||
|
browse.artifact.parent=Parent
|
||||||
|
browse.artifact.other.details=Other details
|
||||||
|
browse.artifact.organization.ciManagement=Continuous Integration
|
||||||
|
browse.artifact.url=Url
|
||||||
|
browse.artifact.license=License
|
||||||
|
browse.artifact.scm=SCM
|
||||||
|
browse.artifact.scm.connection=Connection
|
||||||
|
browse.artifact.scm.devconnection=Dev. Connection
|
||||||
|
browse.artifact.scm.viewer=Viewer
|
||||||
|
|
||||||
#login
|
#login
|
||||||
login.username.placehoder=Username
|
login.username.placehoder=Username
|
||||||
|
|
|
@ -499,11 +499,10 @@ $(function() {
|
||||||
projectVersionMetadata.ciManagement=new CiManagement(data.ciManagement.system,data.ciManagement.url);
|
projectVersionMetadata.ciManagement=new CiManagement(data.ciManagement.system,data.ciManagement.url);
|
||||||
}
|
}
|
||||||
if (data.licenses){
|
if (data.licenses){
|
||||||
var licenses =
|
projectVersionMetadata.licenses=
|
||||||
$.isArray(data.licenses) ? $.map(data.licenses,function(item){
|
$.isArray(data.licenses) ? $.map(data.licenses,function(item){
|
||||||
return new License(item.name,item.url);
|
return new License(item.name,item.url);
|
||||||
}):[data.licenses];
|
}):[data.licenses];
|
||||||
projectVersionMetadata.licenses=licenses;
|
|
||||||
}
|
}
|
||||||
if (data.mailingLists){
|
if (data.mailingLists){
|
||||||
var mailingLists =
|
var mailingLists =
|
||||||
|
|
|
@ -430,42 +430,142 @@
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div id="artifact-details-info-content" class="tab-pane active">
|
<div id="artifact-details-info-content" class="tab-pane active">
|
||||||
<blockquote>${projectVersionMetadata.description}</blockquote>
|
<blockquote>${projectVersionMetadata.description}</blockquote>
|
||||||
<div class="row span6">
|
<div class="row-fluid">
|
||||||
<table class="table">
|
<div class="span6">
|
||||||
<tbody>
|
<table class="table">
|
||||||
<tr>
|
<tbody>
|
||||||
<th>${$.i18n.prop('browse.artifact.groupId')}</th>
|
<tr>
|
||||||
<td>${groupId}</td>
|
<th>${$.i18n.prop('browse.artifact.groupId')}</th>
|
||||||
</tr>
|
<td>${groupId}</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th>${$.i18n.prop('browse.artifact.artifactId')}</th>
|
<tr>
|
||||||
<td>${artifactId}</td>
|
<th>${$.i18n.prop('browse.artifact.artifactId')}</th>
|
||||||
</tr>
|
<td>${artifactId}</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th>${$.i18n.prop('browse.artifact.version')}</th>
|
<tr>
|
||||||
<td>${version}</td>
|
<th>${$.i18n.prop('browse.artifact.version')}</th>
|
||||||
</tr>
|
<td>${version}</td>
|
||||||
<tr>
|
</tr>
|
||||||
<th>${$.i18n.prop('browse.artifact.packaging')}</th>
|
<tr>
|
||||||
<td>${projectVersionMetadata.mavenFacet.packaging}</td>
|
<th>${$.i18n.prop('browse.artifact.packaging')}</th>
|
||||||
</tr>
|
<td>${projectVersionMetadata.mavenFacet.packaging}</td>
|
||||||
{{if projectVersionMetadata.mavenFacet.parent }}
|
</tr>
|
||||||
<tr>
|
{{if projectVersionMetadata.mavenFacet.parent }}
|
||||||
<th>${$.i18n.prop('browse.artifact.parent')}</th>
|
<tr>
|
||||||
<td>
|
<th>${$.i18n.prop('browse.artifact.parent')}</th>
|
||||||
<a href="#" data-bind="click: displayParent">
|
<td>
|
||||||
${projectVersionMetadata.mavenFacet.parent.groupId}:${projectVersionMetadata.mavenFacet.parent.artifactId}:${projectVersionMetadata.mavenFacet.parent.version}
|
<a href="#" data-bind="click: displayParent">
|
||||||
</a>
|
${projectVersionMetadata.mavenFacet.parent.groupId}:${projectVersionMetadata.mavenFacet.parent.artifactId}:${projectVersionMetadata.mavenFacet.parent.version}
|
||||||
</td>
|
</a>
|
||||||
</tr>
|
</td>
|
||||||
{{/if}}
|
</tr>
|
||||||
</tbody>
|
{{/if}}
|
||||||
</table>
|
</tbody>
|
||||||
</div>
|
</table>
|
||||||
<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>
|
||||||
|
<div class="span6">
|
||||||
|
<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>
|
||||||
|
<div>
|
||||||
|
<div class="page-header">
|
||||||
|
<h4>${$.i18n.prop('browse.artifact.other.details')}</h4>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span9">
|
||||||
|
<table class="table">
|
||||||
|
<tbody>
|
||||||
|
{{if projectVersionMetadata.url}}
|
||||||
|
<tr>
|
||||||
|
<th>${$.i18n.prop('browse.artifact.url')}</th>
|
||||||
|
<td><a href="${projectVersionMetadata.url}" target="_blank">${projectVersionMetadata.url}</a></td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
{{if projectVersionMetadata.organization}}
|
||||||
|
<tr>
|
||||||
|
<th>${$.i18n.prop('browse.artifact.organization.name')}</th>
|
||||||
|
{{if projectVersionMetadata.organization.url}}
|
||||||
|
<td>
|
||||||
|
<a href="${projectVersionMetadata.organization.url}" target="_blank">
|
||||||
|
<img src="images/internet-web-browser.png" alt=""/>${projectVersionMetadata.organization.name}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
{{else}}
|
||||||
|
<td>${projectVersionMetadata.organization.name}</td>
|
||||||
|
{{/if}}
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
{{each(i,license) projectVersionMetadata.licenses}}
|
||||||
|
<tr>
|
||||||
|
<th>${$.i18n.prop('browse.artifact.license')}</th>
|
||||||
|
{{if license.url}}
|
||||||
|
<td>
|
||||||
|
<a href="${license.url}" target="_blank">
|
||||||
|
<img src="images/internet-web-browser.png" alt=""/>${license.name}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
{{else}}
|
||||||
|
<td>${license.name}</td>
|
||||||
|
{{/if}}
|
||||||
|
</tr>
|
||||||
|
{{/each}}
|
||||||
|
{{if projectVersionMetadata.issueManagement}}
|
||||||
|
<tr>
|
||||||
|
<th>${$.i18n.prop('browse.artifact.organization.issueManagement')}</th>
|
||||||
|
<td>
|
||||||
|
<a href="${projectVersionMetadata.issueManagement.url}" target="_blank">
|
||||||
|
<img src="images/internet-web-browser.png" alt=""/>${projectVersionMetadata.issueManagement.system}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
{{if projectVersionMetadata.ciManagement}}
|
||||||
|
<tr>
|
||||||
|
<th>${$.i18n.prop('browse.artifact.organization.ciManagement')}</th>
|
||||||
|
<td>
|
||||||
|
<a href="${projectVersionMetadata.ciManagement.url}" target="_blank">
|
||||||
|
<img src="images/internet-web-browser.png" alt=""/>${projectVersionMetadata.ciManagement.system}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{{/if}}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{if projectVersionMetadata.scm}}
|
||||||
|
<div>
|
||||||
|
<div class="page-header">
|
||||||
|
<h4>${$.i18n.prop('browse.artifact.scm')}</h4>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span12">
|
||||||
|
<table class="table">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>${$.i18n.prop('browse.artifact.scm.connection')}</th>
|
||||||
|
<td>${projectVersionMetadata.scm.connection}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>${$.i18n.prop('browse.artifact.scm.devconnection')}</th>
|
||||||
|
<td>${projectVersionMetadata.scm.developerConnection}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>${$.i18n.prop('browse.artifact.scm.viewer')}</th>
|
||||||
|
<td>${projectVersionMetadata.scm.url}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue