[MRM-1615] Artifact detail view

mailing lists tabs

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1303421 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-03-21 15:03:55 +00:00
parent 08f98d5369
commit ea76547ec4
2 changed files with 33 additions and 3 deletions

View File

@ -691,13 +691,11 @@ $(function() {
this.version=version;
this.crumbEntries=function(){
$.log("Dependency#calculateCrumbEntries");
var splitted = self.groupId.split(".");
var breadCrumbEntries=[];
var curGroupId="";
for (var i=0;i<splitted.length;i++){
curGroupId+=splitted[i];
$.log("splitted[i]:"+i+":"+splitted[i]);
breadCrumbEntries.push(new BreadCrumbEntry(curGroupId,splitted[i]));
curGroupId+="."
}

View File

@ -612,7 +612,39 @@
</div>
<div id="artifact-details-mailing-list-content" class="tab-pane">
mailing list
{{if projectVersionMetadata.mailingLists}}
<div id="accordion_mailing_lists" class="accordion">
{{each(i,mailingList) projectVersionMetadata.mailingLists}}
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" href="#ml_collapse_${i}" data-parent="#accordion_mailing_lists" data-toggle="collapse">${mailingList.name}</a>
</div>
{{if i==0}}
<div id="ml_collapse_${i}" class="accordion-body collapse in">
{{else}}
<div id="ml_collapse_${i}" class="accordion-body collapse">
{{/if}}
<div class="accordion-inner">
<div>${$.i18n.prop('browse.artifact.mailingList.subscribe')}: <a href="mailto:${mailingList.subscribeAddress}">${mailingList.subscribeAddress}</a></div>
<div>${$.i18n.prop('browse.artifact.mailingList.post')}: <a href="mailto:${mailingList.postAddress}">${mailingList.postAddress}</a></div>
<div>${$.i18n.prop('browse.artifact.mailingList.unsubscribe')}: <a href="mailto:${mailingList.unsubscribeAddress}">${mailingList.unsubscribeAddress}</a></div>
<div>${$.i18n.prop('browse.artifact.mailingList.mainArchiveUrl')}: <a href="${mailingList.mainArchiveUrl}" target="_blank">${mailingList.mainArchiveUrl}</a></div>
{{if mailingList.otherArchives}}
<div>
${$.i18n.prop('browse.artifact.mailingList.otherArchivesUrls')}:
<ul>
{{each(j,otherArchive) mailingList.otherArchives}}
<li>${$.i18n.prop('browse.artifact.mailingList.otherArchiveUrl')}: <a href="${otherArchive}" target="_blank">${otherArchive}</a></li>
{{/each}}
</ul>
</div>
{{/if}}
</div>
</div>
</div>
{{/each}}
</div>
{{/if}}
</div>
<div id="artifact-details-metadatas-content" class="tab-pane">