[MRM-1684] feeds link behaviour seems not coherent

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1424433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-20 12:29:14 +00:00
parent 8447215c1f
commit 6d3d28eb21
2 changed files with 27 additions and 25 deletions

View File

@ -1008,6 +1008,7 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","choosen","knockout","kno
mainContent.find("#selected_repository" ).html($("#selected_repository_tmpl" )
.tmpl({repositories:data,selected:repositoryId,feedsUrl:feedsUrl}));
}else{
feedsUrl+="/feeds";
mainContent.find("#selected_repository" ).html($("#selected_repository_tmpl" )
.tmpl({repositories:data,selected:"",feedsUrl:null}));
}

View File

@ -51,32 +51,33 @@
{{/if}}
{{each(i,browseResultEntry) browseResultEntries}}
{{if browseResultEntry.project}}
{{if deleteKarma}}
<li class="browse-list-project">
<img class="cursor-hand" id="delete-${browseResultEntry.name}" src="images/trash.png"
data-bind="click:function(){deleteProject(groupId,displayEntry(browseResultEntry.name))}"/>
<a href="#" data-bind="click:function(){displayProjectEntry(browseResultEntry.name)}">${displayEntry(browseResultEntry.name)}</a>
</li>
{{if deleteKarma}}
<li class="browse-list-project">
<img class="cursor-hand" id="delete-${browseResultEntry.name}" src="images/trash.png"
data-bind="click:function(){deleteProject(groupId,displayEntry(browseResultEntry.name))}"/>
<a href="#" data-bind="click:function(){displayProjectEntry(browseResultEntry.name)}">${displayEntry(browseResultEntry.name)}</a>
<a href="${$root.feedsUrl}/${$root.groupId}/${browseResultEntry.name}"><img src="images/atom.gif"/></a>
</li>
{{else}}
<li class="browse-list-project">
<a href="#" data-bind="click:function(){displayProjectEntry(browseResultEntry.name)}">${displayEntry(browseResultEntry.name)}</a>
<a href="${$root.feedsUrl}/${$root.groupId}/${browseResultEntry.name}"><img src="images/atom.gif"/></a>
</li>
{{/if}}
{{else}}
<li class="browse-list-project">
<a href="#" data-bind="click:function(){displayProjectEntry(browseResultEntry.name)}">${displayEntry(browseResultEntry.name)}</a>
<a href="${$root.feedsUrl}/${$root.groupId}/${browseResultEntry.name}"><img src="images/atom.gif"></img></a>
</li>
{{/if}}
{{else}}
{{if deleteKarma}}
<li class="browse-list">
<img class="cursor-hand" id="delete-${browseResultEntry.name}" src="images/trash.png"
data-bind="click:function(){deleteGroupId(browseResultEntry.name)}"/>
<a data-bind="click:function(){displayGroupId(browseResultEntry.name)}" href="#"
title="folder ${displayEntry(browseResultEntry.name)}">${displayEntry(browseResultEntry.name)}</a>
</li>
{{else}}
<li class="browse-list">
<a href="#" title="folder ${displayEntry(browseResultEntry.name)}"
data-bind="click:function(){displayGroupId(browseResultEntry.name)}">${displayEntry(browseResultEntry.name)}</a>
</li>
{{/if}}
{{if deleteKarma}}
<li class="browse-list">
<img class="cursor-hand" id="delete-${browseResultEntry.name}" src="images/trash.png"
data-bind="click:function(){deleteGroupId(browseResultEntry.name)}"/>
<a data-bind="click:function(){displayGroupId(browseResultEntry.name)}" href="#"
title="folder ${displayEntry(browseResultEntry.name)}">${displayEntry(browseResultEntry.name)}</a>
</li>
{{else}}
<li class="browse-list">
<a href="#" title="folder ${displayEntry(browseResultEntry.name)}"
data-bind="click:function(){displayGroupId(browseResultEntry.name)}">${displayEntry(browseResultEntry.name)}</a>
</li>
{{/if}}
{{/if}}
{{/each}}